Makefile revision 5709
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw#
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# CDDL HEADER START
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw#
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# The contents of this file are subject to the terms of the
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# Common Development and Distribution License (the "License").
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# You may not use this file except in compliance with the License.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw#
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# or http://www.opensolaris.org/os/licensing.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# See the License for the specific language governing permissions
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# and limitations under the License.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw#
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# When distributing Covered Code, include this CDDL HEADER in each
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# If applicable, add the following below this CDDL HEADER, with the
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# fields enclosed by brackets "[]" replaced with your own identifying
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# information: Portions Copyright [yyyy] [name of copyright owner]
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw#
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# CDDL HEADER END
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw#
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw#
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw#
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwBUILD_BITS= 64_and_32
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwinclude ../../make-rules/shared-macros.mk
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwPATH=$(dir $(CC)):$(JAVA_HOME)/bin:$(USRBINDIR):$(GNUBIN)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCOMPONENT_NAME= libidn
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCOMPONENT_VERSION= 1.32
91d7f85e02991954d1e1bd44673df567ad8dcc87Gordon RossCOMPONENT_ARCHIVE_HASH= \
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw sha256:ba5d5afee2beff703a34ee094668da5c6ea5afa38784cebba8924105e185c4f5
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCOMPONENT_BUGDB= library/libidn
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCOMPONENT_ARCHIVE_1 = tld-0.7.tar.gz
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCOMPONENT_ARCHIVE_HASH_1 = \
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw sha256:7423f48d15fb1377ee0050c3e1f22e8a91668c2f158afed57b8ead3fed908785
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCOMPONENT_ARCHIVE_URL_1 = http://download.berlios.de/tldchk/$(COMPONENT_ARCHIVE_1)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweTPNO= 27576
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
91d7f85e02991954d1e1bd44673df567ad8dcc87Gordon RossINSTALL_TARGET=
91d7f85e02991954d1e1bd44673df567ad8dcc87Gordon Rossinclude $(WS_MAKE_RULES)/gnu-component.mk
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwPATCH_LEVEL = 0
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwLINT_FLAGS += -I$(PROTOUSRINCDIR)/idn
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwLINT_FLAGS += -DGNULIB_defined_stdint_types
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# Enable C99 mode + -Xc for its additional warnings.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwstudio_C99MODE = -Xc $(studio_C99_ENABLE)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# -xinline=%auto -- we like inlining where appropriate
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCFLAGS.studio += -xinline=%auto
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# -xbuiltin=%none -- builtins have been known to be buggy
91d7f85e02991954d1e1bd44673df567ad8dcc87Gordon RossCFLAGS.studio += -xbuiltin=%none
91d7f85e02991954d1e1bd44673df567ad8dcc87Gordon Ross
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCFLAGS += $(CPP_LARGEFILES)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCFLAGS += $(XPG6MODE)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCFLAGS += $(CPP_POSIX)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCFLAGS += $(CPP_C99_EXTENDED_MATH)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCFLAGS += $(studio_PIC)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCFLAGS += -DGNULIB_defined_stdint_types
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCOMPONENT_TEST_MASTER = \
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw $(COMPONENT_TEST_RESULTS_DIR)/results-libidn.master
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCOMPONENT_TEST_TRANSFORMS += \
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw '-n ' \
'-e "/SKIP/p" ' \
'-e "/PASS/p" ' \
'-e "/FAIL/p" ' \
'-e "/====/p" ' \
'-e "/passed/p" '
CONFIGURE_ENV += INSTALL="$(INSTALL)"
CONFIGURE_OPTIONS += --includedir=$(USRINCDIR)/idn
CONFIGURE_OPTIONS += --localstatedir=$(VARDIR)
CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
CONFIGURE_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
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)
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