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