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