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