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