Makefile revision 4947
333fe280eb574439ef3f828d8755dd9e243ec855Andreas Gustafsson#
a6a23642eaf383add7a0be045c01e7dd8278ccafAndreas Gustafsson# CDDL HEADER START
a6a23642eaf383add7a0be045c01e7dd8278ccafAndreas Gustafsson#
250ed9e230b3903b1b264dd1ed2f691fc7cd2f8fAndreas Gustafsson# The contents of this file are subject to the terms of the
250ed9e230b3903b1b264dd1ed2f691fc7cd2f8fAndreas Gustafsson# Common Development and Distribution License (the "License").
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson# You may not use this file except in compliance with the License.
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson#
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson# or http://www.opensolaris.org/os/licensing.
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson# See the License for the specific language governing permissions
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson# and limitations under the License.
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson#
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson# When distributing Covered Code, include this CDDL HEADER in each
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson# If applicable, add the following below this CDDL HEADER, with the
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson# fields enclosed by brackets "[]" replaced with your own identifying
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson# information: Portions Copyright [yyyy] [name of copyright owner]
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson#
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson# CDDL HEADER END
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson#
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson#
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson#
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafssoninclude ../../make-rules/shared-macros.mk
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCOMPONENT_NAME= libmng
8cccaeaee13993c49009d3915806c1d0bd03743bAndreas GustafssonCOMPONENT_VERSION= 1.0.10
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCOMPONENT_PROJECT_URL= http://www.libmng.com/
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCOMPONENT_ARCHIVE_HASH= \
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson sha256:03a79dac9b9316d37227057614a248a946f997c4d1a3437fb569e9a63897f911
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/libmng/files/libmng-devel/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCOMPONENT_ARCHIVE_1 = mng-1.0-20010209-pdg.html
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCOMPONENT_ARCHIVE_HASH_1 = \
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson sha256:fe8e0a7aa7371c4c1369b56485fdbd96699e53f0078d7369162c883bb7dac1ca
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCOMPONENT_ARCHIVE_URL_1 = http://www.libpng.org/pub/mng/spec/mng-1.0-20010209-pdg.html
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCOMPONENT_ARCHIVE_2 = mng-lc-1.0-20010209-pdg.html
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCOMPONENT_ARCHIVE_HASH_2 = \
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson sha256:6b6a463b50e38e89006c68e629444a6154d70ee34f5d64056c4910346a07b623
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCOMPONENT_ARCHIVE_URL_2 = http://www.libpng.org/pub/mng/spec/mng-lc-1.0-20010209-pdg.html
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCOMPONENT_ARCHIVE_3 = mng-vlc-1.0-20010209-pdg.html
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCOMPONENT_ARCHIVE_HASH_3 = \
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson sha256:77340f6f922c8c2daf2cc120812bbebb26c825e4a08c3c8be6567ef8c34e2ad0
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCOMPONENT_ARCHIVE_URL_3 = http://www.libpng.org/pub/mng/spec/mng-vlc-1.0-20010209-pdg.html
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCOMPONENT_ARCHIVE_4 = jng-1.0-20010209-pdg.html
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCOMPONENT_ARCHIVE_HASH_4 = \
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson sha256:9e5f458dadfdc32bce34dd005f76ee3592cf2cea79d6100691a5d20603f54d05
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCOMPONENT_ARCHIVE_URL_4 = http://www.libpng.org/pub/mng/spec/jng-1.0-20010209-pdg.html
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCOMPONENT_ARCHIVE_5 = index.html
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCOMPONENT_ARCHIVE_HASH_5 = \
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson sha256:fe8e0a7aa7371c4c1369b56485fdbd96699e53f0078d7369162c883bb7dac1ca
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCOMPONENT_ARCHIVE_URL_5 = http://www.libpng.org/pub/mng/spec/index.html
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson
8cccaeaee13993c49009d3915806c1d0bd03743bAndreas GustafssonCOMPONENT_BUGDB= library/libmng
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonTPNO= 5583
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafssoninclude $(WS_MAKE_RULES)/prep.mk
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafssoninclude $(WS_MAKE_RULES)/configure.mk
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafssoninclude $(WS_MAKE_RULES)/ips.mk
a6a23642eaf383add7a0be045c01e7dd8278ccafAndreas Gustafssoninclude $(WS_MAKE_RULES)/lint-libraries.mk
a6a23642eaf383add7a0be045c01e7dd8278ccafAndreas Gustafsson
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson# because Solaris installed the lcms headers elsewhere
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCFLAGS += `pkg-config --cflags lcms`
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson# because it's unclear that --enable-largefile works properly
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCFLAGS += $(CPP_LARGEFILES)
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCONFIGURE_OPTIONS += --includedir=/usr/include/libmng
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCONFIGURE_OPTIONS += --disable-static
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCONFIGURE_OPTIONS += --with-pic
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCONFIGURE_OPTIONS += --enable-shared
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCONFIGURE_OPTIONS += --disable-static
a6a23642eaf383add7a0be045c01e7dd8278ccafAndreas GustafssonCONFIGURE_OPTIONS += --disable-libtool-lock
a6a23642eaf383add7a0be045c01e7dd8278ccafAndreas GustafssonCONFIGURE_OPTIONS += --enable-largefile
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCONFIGURE_OPTIONS += --enable-buildso
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCONFIGURE_OPTIONS += --enable-read
a6a23642eaf383add7a0be045c01e7dd8278ccafAndreas GustafssonCONFIGURE_OPTIONS += --enable-write
a6a23642eaf383add7a0be045c01e7dd8278ccafAndreas GustafssonCONFIGURE_OPTIONS += --enable-display
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCONFIGURE_OPTIONS += --enable-dynamic
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCONFIGURE_OPTIONS += --enable-chunks
a6a23642eaf383add7a0be045c01e7dd8278ccafAndreas GustafssonCONFIGURE_OPTIONS += --enable-storechunks
a6a23642eaf383add7a0be045c01e7dd8278ccafAndreas GustafssonCONFIGURE_OPTIONS += --with-lcms
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCONFIGURE_OPTIONS += --with-zlib
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCONFIGURE_OPTIONS += --with-jpeg
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson# requires an older automake to reconfigure.
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonCOMPONENT_PREP_ACTION = \
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson ( cd $(@D) ; \
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson $(CP) makefiles/configure.in makefiles/Makefile.am . ; \
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson ACLOCAL=aclocal-1.11 AUTOMAKE=automake-1.11 autoreconf -fiv)
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonASLR_MODE = $(ASLR_NOT_APPLICABLE)
250ed9e230b3903b1b264dd1ed2f691fc7cd2f8fAndreas Gustafsson
250ed9e230b3903b1b264dd1ed2f691fc7cd2f8fAndreas Gustafsson$(BUILD_DIR)/libmng-64.pc: Solaris/libmng-64.pc
4034406393893f4d07ab07b56da3541155493855Andreas Gustafsson /bin/sed -e "s#MACH64#$(MACH64)#g" <$< >$@
a6a23642eaf383add7a0be045c01e7dd8278ccafAndreas Gustafsson
a6a23642eaf383add7a0be045c01e7dd8278ccafAndreas Gustafsson# common targets
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafssonconfigure: $(CONFIGURE_32_and_64)
c011a692803976aa5100f7a4e6a1fa8a1ea2c3f3Andreas Gustafsson
250ed9e230b3903b1b264dd1ed2f691fc7cd2f8fAndreas Gustafssonbuild: $(BUILD_32_and_64)
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson
250ed9e230b3903b1b264dd1ed2f691fc7cd2f8fAndreas Gustafssoninstall: $(INSTALL_32_and_64) $(BUILD_DIR)/libmng-64.pc
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafssontest: $(NO_TESTS)
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafssonsystem-test: $(NO_TESTS)
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonREQUIRED_PACKAGES += image/library/libjpeg
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonREQUIRED_PACKAGES += library/lcms
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonREQUIRED_PACKAGES += library/zlib
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonREQUIRED_PACKAGES += system/library
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas GustafssonREQUIRED_PACKAGES += system/library/math
22f0b13f28a7df3b348b18848d0ccd745ea88c3cAndreas Gustafsson