Makefile revision 1273
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# CDDL HEADER START
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# The contents of this file are subject to the terms of the
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Common Development and Distribution License (the "License").
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# You may not use this file except in compliance with the License.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# or http://www.opensolaris.org/os/licensing.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# See the License for the specific language governing permissions
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# and limitations under the License.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# When distributing Covered Code, include this CDDL HEADER in each
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# If applicable, add the following below this CDDL HEADER, with the
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# fields enclosed by brackets "[]" replaced with your own identifying
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# information: Portions Copyright [yyyy] [name of copyright owner]
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# CDDL HEADER END
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesinclude ../../make-rules/shared-macros.mk
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesPATH=$(dir $(CC)):$(JAVA_HOME)/bin:/usr/bin:/usr/gnu/bin
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCOMPONENT_NAME= libidn
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCOMPONENT_VERSION= 1.19
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCOMPONENT_PROJECT_URL= http://www.gnu.org/software/libidn/
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCOMPONENT_ARCHIVE_HASH= \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes sha256:8ed2e936b1ae3e30b45b54ca3672deaa83ee0f4d20db5ad83dc1af7222d39f41
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/libidn/$(COMPONENT_ARCHIVE)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCOMPONENT_BUGDB= library/libidn
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCOMPONENT_ARCHIVE_1 = tld-0.7.tar.gz
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCOMPONENT_ARCHIVE_HASH_1 = \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes sha256:7423f48d15fb1377ee0050c3e1f22e8a91668c2f158afed57b8ead3fed908785
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCOMPONENT_ARCHIVE_URL_1 = http://download.berlios.de/tldchk/$(COMPONENT_ARCHIVE_1)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesinclude ../../make-rules/prep.mk
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesinclude ../../make-rules/configure.mk
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesinclude ../../make-rules/ips.mk
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesinclude ../../make-rules/lint-libraries.mk
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesPATCH_LEVEL = 0
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesLINT_FLAGS += -I$(PROTOUSRINCDIR)/idn
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Enable C99 mode + -Xc for its additional warnings.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesstudio_C99MODE = -Xc $(studio_C99_ENABLE)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# -xinline=%auto -- we like inlining where appropriate
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCFLAGS += -xinline=%auto
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# -xbuiltin=%none -- builtins have been known to be buggy
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCFLAGS += -xbuiltin=%none
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCFLAGS += $(CPP_LARGEFILES)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCFLAGS += $(XPG6MODE)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCFLAGS += $(CPP_POSIX)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCFLAGS += $(CPP_C99_EXTENDED_MATH)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCFLAGS += $(studio_PIC)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesGUNZIP = /usr/bin/gunzip
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesTAR = /usr/bin/tar
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesFIND = /usr/bin/find
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCONFIGURE_ENV += INSTALL="$(INSTALL)"
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCONFIGURE_OPTIONS += --includedir=/usr/include/idn
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCONFIGURE_OPTIONS += --localstatedir=/var
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCONFIGURE_OPTIONS += --enable-shared
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCONFIGURE_OPTIONS += --disable-static
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCONFIGURE_OPTIONS += --disable-csharp
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCONFIGURE_OPTIONS += --disable-rpath
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCONFIGURE_OPTIONS += --disable-valgrind-tests
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCONFIGURE_OPTIONS += --enable-tld
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCONFIGURE_OPTIONS += --enable-nls
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCONFIGURE_OPTIONS += --disable-gtk-doc
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCONFIGURE_OPTIONS += --enable-java
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCONFIGURE_OPTIONS += --with-libiconv-prefix=$(CONFIGURE_PREFIX)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCONFIGURE_OPTIONS += --with-libintl-prefix=$(CONFIGURE_PREFIX)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCONFIGURE_OPTIONS += --with-html-dir=$(CONFIGURE_PREFIX)/share/doc
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCONFIGURE_OPTIONS += --with-pic
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesPROTOUSRSHAREDOCDIR = $(PROTOUSRSHAREDIR)/doc
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesIDNDOCDIR = $(PROTOUSRSHAREDOCDIR)/idn
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesHTMLDOCDIR = $(IDNDOCDIR)/html
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesHTMLDOCLIST = libidn-components.png libidn.html
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesDOCLIST = libidn-components.pdf libidn.pdf
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# We must unpack the TLD database and touch the perl scripts in order
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# to force re-generation of the TLD tables after augmenting them
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCOMPONENT_PRE_CONFIGURE_ACTION = \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes ( cd $(SOURCE_DIR) ; \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(CP) $(COMPONENT_DIR)/tld-0.7.tar.gz . ; \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(GUNZIP) tld-0.7.tar.gz ; \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(TAR) xvf tld-0.7.tar > /dev/null 2>&1 ; \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(RM) tld-0.7.tar ; \
0a39e7683f6611d66c55712f50bb240428d832a1bnicholes $(RM) java/libidn-1.19.jar ; \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(RM) tld/no.tld tld/fr.tld ; \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(CP) doc/tld/fr.tld tld/ ; \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(CP) doc/tld/no.tld tld/ ; \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(FIND) . -type d -exec chmod 0755 {} + ; \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(FIND) ./tld -type f -name "*.tld" -exec chmod 0644 {} + ; \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(FIND) ./tld -type f -name "*.tld" -exec touch -acm {} + ; \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(FIND) ./tld/templates -type f -exec chmod 0644 {} + ; \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(FIND) ./tld/templates -type f -exec touch -acm {} + ; \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(FIND) ./lib -type f -name "*.pl" -exec touch -acm {} + ; \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(FIND) ./lib -type f -name "*.pl" -exec chmod 0755 {} + )
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesbuild: $(BUILD_32_and_64)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesinstall: $(INSTALL_32_and_64)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(MKDIR) $(HTMLDOCDIR) ; \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes list1='$(HTMLDOCLIST)' ; for f in $$list1; do \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(INSTALL) -m 0644 $(COMPONENT_DIR)/$(COMPONENT_SRC)/doc/$$f \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(HTMLDOCDIR)/ ; \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes done
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes list2='$(DOCLIST)' ; for f in $$list2; do \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(INSTALL) -m 0644 $(COMPONENT_DIR)/$(COMPONENT_SRC)/doc/$$f \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(IDNDOCDIR)/ ; \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes done
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(CP) -Rp $(COMPONENT_DIR)/$(COMPONENT_SRC)/doc/java \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(IDNDOCDIR)/ ; \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(CP) -Rp $(COMPONENT_DIR)/$(COMPONENT_SRC)/tld \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(IDNDOCDIR)/
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(CP) -Rp $(PROTOUSRSHAREDIR)/locale/en@boldquot \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(PROTOUSRSHAREDIR)/locale/en
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholestest: $(TEST_32_and_64)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesinclude ../../make-rules/depend.mk
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes