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