Makefile revision 919
200N/A#
200N/A# CDDL HEADER START
200N/A#
200N/A# The contents of this file are subject to the terms of the
200N/A# Common Development and Distribution License (the "License").
200N/A# You may not use this file except in compliance with the License.
200N/A#
200N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
200N/A# or http://www.opensolaris.org/os/licensing.
200N/A# See the License for the specific language governing permissions
200N/A# and limitations under the License.
200N/A#
200N/A# When distributing Covered Code, include this CDDL HEADER in each
200N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
200N/A# If applicable, add the following below this CDDL HEADER, with the
200N/A# fields enclosed by brackets "[]" replaced with your own identifying
200N/A# information: Portions Copyright [yyyy] [name of copyright owner]
200N/A#
200N/A# CDDL HEADER END
200N/A#
200N/A
200N/A#
690N/A# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
200N/A#
200N/A
200N/Ainclude ../../make-rules/shared-macros.mk
200N/A
200N/ACOMPONENT_NAME= libmng
200N/ACOMPONENT_VERSION= 1.0.10
618N/ACOMPONENT_PROJECT_URL= http://www.libmng.com/
200N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
200N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:03a79dac9b9316d37227057614a248a946f997c4d1a3437fb569e9a63897f911
200N/ACOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/libmng/files/libmng-devel/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
200N/ACOMPONENT_ARCHIVE_1 = mng-1.0-20010209-pdg.html
844N/ACOMPONENT_ARCHIVE_HASH_1 = \
844N/A sha256:fe8e0a7aa7371c4c1369b56485fdbd96699e53f0078d7369162c883bb7dac1ca
200N/ACOMPONENT_ARCHIVE_URL_1 = http://www.libpng.org/pub/mng/spec/mng-1.0-20010209-pdg.html
200N/ACOMPONENT_ARCHIVE_2 = mng-lc-1.0-20010209-pdg.html
844N/ACOMPONENT_ARCHIVE_HASH_2 = \
844N/A sha256:6b6a463b50e38e89006c68e629444a6154d70ee34f5d64056c4910346a07b623
200N/ACOMPONENT_ARCHIVE_URL_2 = http://www.libpng.org/pub/mng/spec/mng-lc-1.0-20010209-pdg.html
200N/ACOMPONENT_ARCHIVE_3 = mng-vlc-1.0-20010209-pdg.html
844N/ACOMPONENT_ARCHIVE_HASH_3 = \
844N/A sha256:77340f6f922c8c2daf2cc120812bbebb26c825e4a08c3c8be6567ef8c34e2ad0
200N/ACOMPONENT_ARCHIVE_URL_3 = http://www.libpng.org/pub/mng/spec/mng-vlc-1.0-20010209-pdg.html
200N/ACOMPONENT_ARCHIVE_4 = jng-1.0-20010209-pdg.html
844N/ACOMPONENT_ARCHIVE_HASH_4 = \
844N/A sha256:9e5f458dadfdc32bce34dd005f76ee3592cf2cea79d6100691a5d20603f54d05
200N/ACOMPONENT_ARCHIVE_URL_4 = http://www.libpng.org/pub/mng/spec/jng-1.0-20010209-pdg.html
200N/ACOMPONENT_ARCHIVE_5 = index.html
844N/ACOMPONENT_ARCHIVE_HASH_5 = \
844N/A sha256:fe8e0a7aa7371c4c1369b56485fdbd96699e53f0078d7369162c883bb7dac1ca
200N/ACOMPONENT_ARCHIVE_URL_5 = http://www.libpng.org/pub/mng/spec/index.html
200N/A
200N/Ainclude ../../make-rules/prep.mk
200N/Ainclude ../../make-rules/configure.mk
200N/Ainclude ../../make-rules/ips.mk
200N/Ainclude ../../make-rules/lint-libraries.mk
200N/A
206N/A# because Solaris installed the lcms headers elsewhere
200N/ACFLAGS += `pkg-config --cflags lcms`
206N/A# because it's unclear that --enable-largefile works properly
206N/ACFLAGS += $(CPP_LARGEFILES)
200N/A
206N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
200N/A
200N/ACONFIGURE_OPTIONS += --includedir=/usr/include/libmng
200N/ACONFIGURE_OPTIONS += --disable-static
200N/ACONFIGURE_OPTIONS += --with-pic
200N/ACONFIGURE_OPTIONS += --enable-shared
200N/ACONFIGURE_OPTIONS += --disable-static
200N/ACONFIGURE_OPTIONS += --disable-libtool-lock
200N/ACONFIGURE_OPTIONS += --enable-largefile
200N/ACONFIGURE_OPTIONS += --enable-buildso
200N/ACONFIGURE_OPTIONS += --enable-read
200N/ACONFIGURE_OPTIONS += --enable-write
200N/ACONFIGURE_OPTIONS += --enable-display
200N/ACONFIGURE_OPTIONS += --enable-dynamic
200N/ACONFIGURE_OPTIONS += --enable-chunks
200N/ACONFIGURE_OPTIONS += --enable-storechunks
200N/ACONFIGURE_OPTIONS += --with-lcms
200N/ACONFIGURE_OPTIONS += --with-zlib
200N/ACONFIGURE_OPTIONS += --with-jpeg
200N/A
200N/ACOMPONENT_PREP_ACTION = \
200N/A ( cd $(@D) ; \
200N/A $(CP) makefiles/configure.in makefiles/Makefile.am . ; \
690N/A libtoolize --force --copy ; aclocal ; \
690N/A automake --add-missing --copy ; autoconf )
200N/A
206N/A$(BUILD_DIR)/libmng-64.pc: Solaris/libmng-64.pc
206N/A /bin/sed -e "s#MACH64#$(MACH64)#g" <$< >$@
206N/A
200N/A# common targets
200N/Abuild: $(BUILD_32_and_64)
200N/A
206N/Ainstall: $(INSTALL_32_and_64) $(BUILD_DIR)/libmng-64.pc
200N/A
200N/Atest: $(NO_TESTS)
200N/A
200N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
200N/A
200N/Ainclude ../../make-rules/depend.mk
200N/A