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