Makefile revision 618
253N/A#
253N/A# CDDL HEADER START
253N/A#
253N/A# The contents of this file are subject to the terms of the
253N/A# Common Development and Distribution License (the "License").
253N/A# You may not use this file except in compliance with the License.
253N/A#
253N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
253N/A# or http://www.opensolaris.org/os/licensing.
253N/A# See the License for the specific language governing permissions
253N/A# and limitations under the License.
253N/A#
253N/A# When distributing Covered Code, include this CDDL HEADER in each
253N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
253N/A# If applicable, add the following below this CDDL HEADER, with the
253N/A# fields enclosed by brackets "[]" replaced with your own identifying
253N/A# information: Portions Copyright [yyyy] [name of copyright owner]
253N/A#
253N/A# CDDL HEADER END
253N/A#
253N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
253N/A#
253N/Ainclude ../../make-rules/shared-macros.mk
253N/A
253N/APATH=$(dir $(CC)):/usr/bin:/usr/gnu/bin
253N/A
253N/ACOMPONENT_NAME= libidn
253N/ACOMPONENT_VERSION= 1.19
253N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
253N/ACOMPONENT_PROJECT_URL= http://www.gnu.org/software/libidn/
253N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
253N/ACOMPONENT_ARCHIVE_HASH= sha1:2b6dcb500e8135a9444a250d7df76f545915f25f
253N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/libidn/$(COMPONENT_ARCHIVE)
253N/A
253N/ACOMPONENT_ARCHIVE_1 = tld-0.7.tar.gz
253N/ACOMPONENT_ARCHIVE_HASH_1 = sha1:da1aa69757f040c8e89ce0933e67463979a64555
253N/ACOMPONENT_ARCHIVE_URL_1 = http://download.berlios.de/tldchk/$(COMPONENT_ARCHIVE_1)
253N/A
253N/Ainclude ../../make-rules/prep.mk
253N/Ainclude ../../make-rules/configure.mk
253N/Ainclude ../../make-rules/ips.mk
253N/Ainclude ../../make-rules/lint-libraries.mk
253N/A
253N/APATCH_LEVEL = 0
253N/ALINT_FLAGS += -I$(PROTOUSRINCDIR)/idn
253N/A
253N/A# Enable C99 mode + -Xc for its additional warnings.
253N/Astudio_C99MODE = -Xc $(studio_C99_ENABLE)
253N/A
253N/A# -xinline=%auto -- we like inlining where appropriate
253N/ACFLAGS += -xinline=%auto
253N/A
253N/A# -xbuiltin=%none -- builtins have been known to be buggy
253N/ACFLAGS += -xbuiltin=%none
253N/A
253N/ACFLAGS += $(CPP_LARGEFILES)
253N/ACFLAGS += $(XPG6MODE)
253N/ACFLAGS += $(CPP_POSIX)
253N/ACFLAGS += $(CPP_C99_EXTENDED_MATH)
253N/ACFLAGS += $(studio_PIC)
253N/A
253N/AGUNZIP = /usr/bin/gunzip
253N/ATAR = /usr/bin/tar
253N/AFIND = /usr/bin/find
253N/A
253N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
253N/ACONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
253N/ACONFIGURE_ENV += INSTALL="$(INSTALL)"
253N/A
253N/ACONFIGURE_OPTIONS += --includedir=/usr/include/idn
253N/ACONFIGURE_OPTIONS += --localstatedir=/var
253N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
253N/ACONFIGURE_OPTIONS += --enable-shared
253N/ACONFIGURE_OPTIONS += --disable-static
253N/ACONFIGURE_OPTIONS += --disable-csharp
253N/ACONFIGURE_OPTIONS += --disable-rpath
253N/ACONFIGURE_OPTIONS += --disable-valgrind-tests
253N/ACONFIGURE_OPTIONS += --enable-tld
253N/ACONFIGURE_OPTIONS += --enable-nls
253N/ACONFIGURE_OPTIONS += --disable-gtk-doc
253N/ACONFIGURE_OPTIONS += --enable-java
253N/ACONFIGURE_OPTIONS += --with-libiconv-prefix=$(CONFIGURE_PREFIX)
253N/ACONFIGURE_OPTIONS += --with-libintl-prefix=$(CONFIGURE_PREFIX)
253N/ACONFIGURE_OPTIONS += --with-html-dir=$(CONFIGURE_PREFIX)/share/doc
253N/ACONFIGURE_OPTIONS += --with-pic
253N/A
253N/APROTOUSRSHAREDOCDIR = $(PROTOUSRSHAREDIR)/doc
253N/AIDNDOCDIR = $(PROTOUSRSHAREDOCDIR)/idn
253N/AHTMLDOCDIR = $(IDNDOCDIR)/html
253N/AHTMLDOCLIST = libidn-components.png libidn.html
253N/ADOCLIST = libidn-components.pdf libidn.pdf
253N/A
253N/A# We must unpack the TLD database and touch the perl scripts in order
253N/A# to force re-generation of the TLD tables after augmenting them
253N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
253N/A ( cd $(SOURCE_DIR) ; \
253N/A $(CP) $(COMPONENT_DIR)/tld-0.7.tar.gz . ; \
253N/A $(GUNZIP) tld-0.7.tar.gz ; \
253N/A $(TAR) xvf tld-0.7.tar > /dev/null 2>&1 ; \
253N/A $(RM) tld-0.7.tar ; \
253N/A $(RM) java/libidn-1.19.jar ; \
253N/A $(RM) tld/no.tld tld/fr.tld ; \
253N/A $(CP) doc/tld/fr.tld tld/ ; \
253N/A $(CP) doc/tld/no.tld tld/ ; \
253N/A $(FIND) . -type d -exec chmod 0755 {} + ; \
253N/A $(FIND) ./tld -type f -name "*.tld" -exec chmod 0644 {} + ; \
253N/A $(FIND) ./tld -type f -name "*.tld" -exec touch -acm {} + ; \
253N/A $(FIND) ./tld/templates -type f -exec chmod 0644 {} + ; \
253N/A $(FIND) ./tld/templates -type f -exec touch -acm {} + ; \
253N/A $(FIND) ./lib -type f -name "*.pl" -exec touch -acm {} + ; \
253N/A $(FIND) ./lib -type f -name "*.pl" -exec chmod 0755 {} + )
253N/A
253N/Abuild: $(BUILD_32_and_64)
253N/A
253N/Ainstall: $(INSTALL_32_and_64)
253N/A $(MKDIR) $(HTMLDOCDIR) ; \
253N/A list1='$(HTMLDOCLIST)' ; for f in $$list1; do \
253N/A $(INSTALL) -m 0644 $(COMPONENT_DIR)/$(COMPONENT_SRC)/doc/$$f \
253N/A $(HTMLDOCDIR)/ ; \
253N/A done
253N/A list2='$(DOCLIST)' ; for f in $$list2; do \
253N/A $(INSTALL) -m 0644 $(COMPONENT_DIR)/$(COMPONENT_SRC)/doc/$$f \
253N/A $(IDNDOCDIR)/ ; \
253N/A done
253N/A $(CP) -Rp $(COMPONENT_DIR)/$(COMPONENT_SRC)/doc/java \
253N/A $(IDNDOCDIR)/ ; \
253N/A $(CP) -Rp $(COMPONENT_DIR)/$(COMPONENT_SRC)/tld \
253N/A $(IDNDOCDIR)/
253N/A $(CP) -Rp $(PROTOUSRSHAREDIR)/locale/en@boldquot \
253N/A $(PROTOUSRSHAREDIR)/locale/en
253N/A
253N/Atest: $(TEST_32_and_64)
253N/A
253N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
253N/A
253N/Ainclude ../../make-rules/depend.mk
253N/A