Makefile revision 200
835N/A#
835N/A# CDDL HEADER START
1301N/A#
835N/A# The contents of this file are subject to the terms of the
1301N/A# Common Development and Distribution License (the "License").
835N/A# You may not use this file except in compliance with the License.
835N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A
919N/A#
919N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
919N/A#
835N/A
835N/Ainclude ../../make-rules/shared-macros.mk
835N/A
835N/ACOMPONENT_NAME= libmng
835N/ACOMPONENT_VERSION= 1.0.10
835N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
835N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
1301N/ACOMPONENT_ARCHIVE_HASH= sha1:78ad516a1de79d00de720bf2a7c9afea2c896b09
835N/ACOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/libmng/files/libmng-devel/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
911N/ACOMPONENT_ARCHIVE_1 = mng-1.0-20010209-pdg.html
1301N/ACOMPONENT_ARCHIVE_HASH_1 = sha1:074c31b6f6f7c8ee98b4f0b893dfefcba6fd926f
1301N/ACOMPONENT_ARCHIVE_URL_1 = http://www.libpng.org/pub/mng/spec/mng-1.0-20010209-pdg.html
1301N/ACOMPONENT_ARCHIVE_2 = mng-lc-1.0-20010209-pdg.html
835N/ACOMPONENT_ARCHIVE_HASH_2 = sha1:42f01c79cfbd226a9d4b327017e49b5fd4856f94
835N/ACOMPONENT_ARCHIVE_URL_2 = http://www.libpng.org/pub/mng/spec/mng-lc-1.0-20010209-pdg.html
1301N/ACOMPONENT_ARCHIVE_3 = mng-vlc-1.0-20010209-pdg.html
835N/ACOMPONENT_ARCHIVE_HASH_3 = sha1:906c1db4ff9efc3f36b913651c6e9b05256d25ec
835N/ACOMPONENT_ARCHIVE_URL_3 = http://www.libpng.org/pub/mng/spec/mng-vlc-1.0-20010209-pdg.html
835N/ACOMPONENT_ARCHIVE_4 = jng-1.0-20010209-pdg.html
COMPONENT_ARCHIVE_HASH_4 = sha1:b5a036d6249ebbbad04e80bd7d203cbb5b31f0de
COMPONENT_ARCHIVE_URL_4 = http://www.libpng.org/pub/mng/spec/jng-1.0-20010209-pdg.html
COMPONENT_ARCHIVE_5 = index.html
COMPONENT_ARCHIVE_HASH_5 = sha1:074c31b6f6f7c8ee98b4f0b893dfefcba6fd926f
COMPONENT_ARCHIVE_URL_5 = http://www.libpng.org/pub/mng/spec/index.html
include ../../make-rules/prep.mk
include ../../make-rules/configure.mk
include ../../make-rules/ips.mk
include ../../make-rules/lint-libraries.mk
CFLAGS += -Xc $(CC_BITS)
CFLAGS += $(studio_C99_ENABLE) $(CPP_POSIX)
CFLAGS += `pkg-config --cflags lcms`
CPPFLAGS += $(CPP_LARGEFILES) $(CPP_POSIX)
CPPFLAGS += `pkg-config --cflags lcms`
LDFLAGS += `pkg-config --libs lcms`
CONFIGURE_ENV += CC="$(CC)"
CONFIGURE_ENV += CFLAGS="$(CFLAGS)"
CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
CONFIGURE_ENV += CPP="$(CC) $(CPPFLAGS) $(CFLAGS) -E"
CONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
CONFIGURE_ENV += LD="$(CC) $(CFLAGS) $(LDFLAGS)"
CONFIGURE_ENV += CCLD="$(CC) $(CFLAGS) $(LDFLAGS)"
CONFIGURE_OPTIONS += --includedir=/usr/include/libmng
CONFIGURE_OPTIONS += --disable-static
CONFIGURE_OPTIONS += --with-pic
CONFIGURE_OPTIONS += --enable-shared
CONFIGURE_OPTIONS += --disable-static
CONFIGURE_OPTIONS += --disable-libtool-lock
CONFIGURE_OPTIONS += --enable-largefile
CONFIGURE_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
GSED = /usr/gnu/bin/sed
PROTOUSRSHAREDOCDIR = $(PROTOUSRSHAREDIR)/doc/libmng/html
PROTOUSRLIBPKGCONFIGDIR = $(PROTOUSRLIBDIR)/pkgconfig
PROTOUSRLIB64PKGCONFIGDIR = $(PROTOUSRLIBDIR64)/pkgconfig
HTMLDOCLIST = index.html \
mng-1.0-20010209-pdg.html \
mng-lc-1.0-20010209-pdg.html \
mng-vlc-1.0-20010209-pdg.html \
jng-1.0-20010209-pdg.html
PNGLIST = Plan1.png Plan2.png
COMPONENT_PREP_ACTION = \
( cd $(@D) ; \
$(CP) makefiles/configure.in makefiles/Makefile.am . ; \
libtoolize --force --copy ; aclocal-1.10 ; \
automake-1.10 --add-missing --copy ; autoconf )
# common targets
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
$(MKDIR) $(PROTOUSRSHAREDOCDIR) ; \
$(MKDIR) $(PROTOUSRLIBPKGCONFIGDIR) ; \
$(MKDIR) $(PROTOUSRLIB64PKGCONFIGDIR) ; \
list1='$(HTMLDOCLIST)' ; for f in $$list1; do \
$(INSTALL) -m 0644 $(COMPONENT_DIR)/$$f \
$(PROTOUSRSHAREDOCDIR)/ ; \
done
list2='$(PNGLIST)' ; for f in $$list2 ; do \
$(INSTALL) -m 0644 $(COMPONENT_DIR)/$(COMPONENT_SRC)/doc/$$f \
$(PROTOUSRSHAREDOCDIR)/ ; \
done
$(INSTALL) -m 0644 $(COMPONENT_DIR)/Solaris/libmng.pc \
$(PROTOUSRLIBPKGCONFIGDIR)/
$(GSED) -e "s#MACH64#$(MACH64)#g" \
$(COMPONENT_DIR)/Solaris/libmng-64.pc > \
$(COMPONENT_DIR)/libmng.pc
$(INSTALL) -m 0644 $(COMPONENT_DIR)/libmng.pc \
$(PROTOUSRLIB64PKGCONFIGDIR)/
$(RM) $(COMPONENT_DIR)/libmng.pc
test: $(NO_TESTS)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk