Makefile revision 200
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#
200N/A# Copyright (c) 2011, 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
200N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
200N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
200N/ACOMPONENT_ARCHIVE_HASH= sha1:78ad516a1de79d00de720bf2a7c9afea2c896b09
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
200N/ACOMPONENT_ARCHIVE_HASH_1 = sha1:074c31b6f6f7c8ee98b4f0b893dfefcba6fd926f
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
200N/ACOMPONENT_ARCHIVE_HASH_2 = sha1:42f01c79cfbd226a9d4b327017e49b5fd4856f94
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
200N/ACOMPONENT_ARCHIVE_HASH_3 = sha1:906c1db4ff9efc3f36b913651c6e9b05256d25ec
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
200N/ACOMPONENT_ARCHIVE_HASH_4 = sha1:b5a036d6249ebbbad04e80bd7d203cbb5b31f0de
200N/ACOMPONENT_ARCHIVE_URL_4 = http://www.libpng.org/pub/mng/spec/jng-1.0-20010209-pdg.html
200N/ACOMPONENT_ARCHIVE_5 = index.html
200N/ACOMPONENT_ARCHIVE_HASH_5 = sha1:074c31b6f6f7c8ee98b4f0b893dfefcba6fd926f
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
200N/ACFLAGS += -Xc $(CC_BITS)
200N/ACFLAGS += $(studio_C99_ENABLE) $(CPP_POSIX)
200N/ACFLAGS += `pkg-config --cflags lcms`
200N/ACPPFLAGS += $(CPP_LARGEFILES) $(CPP_POSIX)
200N/ACPPFLAGS += `pkg-config --cflags lcms`
200N/ALDFLAGS += `pkg-config --libs lcms`
200N/A
200N/ACONFIGURE_ENV += CC="$(CC)"
200N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
200N/ACONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
200N/ACONFIGURE_ENV += CPP="$(CC) $(CPPFLAGS) $(CFLAGS) -E"
200N/ACONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
200N/ACONFIGURE_ENV += LD="$(CC) $(CFLAGS) $(LDFLAGS)"
200N/ACONFIGURE_ENV += CCLD="$(CC) $(CFLAGS) $(LDFLAGS)"
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/AGSED = /usr/gnu/bin/sed
200N/A
200N/APROTOUSRSHAREDOCDIR = $(PROTOUSRSHAREDIR)/doc/libmng/html
200N/APROTOUSRLIBPKGCONFIGDIR = $(PROTOUSRLIBDIR)/pkgconfig
200N/APROTOUSRLIB64PKGCONFIGDIR = $(PROTOUSRLIBDIR64)/pkgconfig
200N/A
200N/AHTMLDOCLIST = index.html \
200N/A mng-1.0-20010209-pdg.html \
200N/A mng-lc-1.0-20010209-pdg.html \
200N/A mng-vlc-1.0-20010209-pdg.html \
200N/A jng-1.0-20010209-pdg.html
200N/A
200N/APNGLIST = Plan1.png Plan2.png
200N/A
200N/ACOMPONENT_PREP_ACTION = \
200N/A ( cd $(@D) ; \
200N/A $(CP) makefiles/configure.in makefiles/Makefile.am . ; \
200N/A libtoolize --force --copy ; aclocal-1.10 ; \
200N/A automake-1.10 --add-missing --copy ; autoconf )
200N/A
200N/A# common targets
200N/Abuild: $(BUILD_32_and_64)
200N/A
200N/Ainstall: $(INSTALL_32_and_64)
200N/A $(MKDIR) $(PROTOUSRSHAREDOCDIR) ; \
200N/A $(MKDIR) $(PROTOUSRLIBPKGCONFIGDIR) ; \
200N/A $(MKDIR) $(PROTOUSRLIB64PKGCONFIGDIR) ; \
200N/A list1='$(HTMLDOCLIST)' ; for f in $$list1; do \
200N/A $(INSTALL) -m 0644 $(COMPONENT_DIR)/$$f \
200N/A $(PROTOUSRSHAREDOCDIR)/ ; \
200N/A done
200N/A list2='$(PNGLIST)' ; for f in $$list2 ; do \
200N/A $(INSTALL) -m 0644 $(COMPONENT_DIR)/$(COMPONENT_SRC)/doc/$$f \
200N/A $(PROTOUSRSHAREDOCDIR)/ ; \
200N/A done
200N/A $(INSTALL) -m 0644 $(COMPONENT_DIR)/Solaris/libmng.pc \
200N/A $(PROTOUSRLIBPKGCONFIGDIR)/
200N/A $(GSED) -e "s#MACH64#$(MACH64)#g" \
200N/A $(COMPONENT_DIR)/Solaris/libmng-64.pc > \
200N/A $(COMPONENT_DIR)/libmng.pc
200N/A $(INSTALL) -m 0644 $(COMPONENT_DIR)/libmng.pc \
200N/A $(PROTOUSRLIB64PKGCONFIGDIR)/
200N/A $(RM) $(COMPONENT_DIR)/libmng.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