Makefile revision 1273
278N/A#
278N/A# CDDL HEADER START
278N/A#
278N/A# The contents of this file are subject to the terms of the
278N/A# Common Development and Distribution License (the "License").
278N/A# You may not use this file except in compliance with the License.
278N/A#
278N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
278N/A# or http://www.opensolaris.org/os/licensing.
278N/A# See the License for the specific language governing permissions
278N/A# and limitations under the License.
278N/A#
278N/A# When distributing Covered Code, include this CDDL HEADER in each
278N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
278N/A# If applicable, add the following below this CDDL HEADER, with the
278N/A# fields enclosed by brackets "[]" replaced with your own identifying
278N/A# information: Portions Copyright [yyyy] [name of copyright owner]
278N/A#
278N/A# CDDL HEADER END
278N/A#
278N/A# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
278N/A#
278N/Ainclude ../../make-rules/shared-macros.mk
278N/A
278N/APATH=$(dir $(CC)):$(JAVA_HOME)/bin:/usr/bin:/usr/gnu/bin
511N/A
618N/ACOMPONENT_NAME= libidn
278N/ACOMPONENT_VERSION= 1.19
278N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
511N/ACOMPONENT_PROJECT_URL= http://www.gnu.org/software/libidn/
278N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
278N/ACOMPONENT_ARCHIVE_HASH= \
278N/A sha256:8ed2e936b1ae3e30b45b54ca3672deaa83ee0f4d20db5ad83dc1af7222d39f41
278N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/libidn/$(COMPONENT_ARCHIVE)
278N/ACOMPONENT_BUGDB= library/libidn
278N/A
278N/ACOMPONENT_ARCHIVE_1 = tld-0.7.tar.gz
278N/ACOMPONENT_ARCHIVE_HASH_1 = \
278N/A sha256:7423f48d15fb1377ee0050c3e1f22e8a91668c2f158afed57b8ead3fed908785
278N/ACOMPONENT_ARCHIVE_URL_1 = http://download.berlios.de/tldchk/$(COMPONENT_ARCHIVE_1)
278N/A
278N/Ainclude ../../make-rules/prep.mk
278N/Ainclude ../../make-rules/configure.mk
278N/Ainclude ../../make-rules/ips.mk
278N/Ainclude ../../make-rules/lint-libraries.mk
278N/A
278N/APATCH_LEVEL = 0
278N/ALINT_FLAGS += -I$(PROTOUSRINCDIR)/idn
278N/A
278N/A# Enable C99 mode + -Xc for its additional warnings.
278N/Astudio_C99MODE = -Xc $(studio_C99_ENABLE)
278N/A
278N/A# -xinline=%auto -- we like inlining where appropriate
278N/ACFLAGS += -xinline=%auto
278N/A
278N/A# -xbuiltin=%none -- builtins have been known to be buggy
278N/ACFLAGS += -xbuiltin=%none
278N/A
278N/ACFLAGS += $(CPP_LARGEFILES)
278N/ACFLAGS += $(XPG6MODE)
278N/ACFLAGS += $(CPP_POSIX)
278N/ACFLAGS += $(CPP_C99_EXTENDED_MATH)
278N/ACFLAGS += $(studio_PIC)
278N/A
278N/AGUNZIP = /usr/bin/gunzip
278N/ATAR = /usr/bin/tar
278N/AFIND = /usr/bin/find
278N/A
278N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
278N/ACONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
278N/ACONFIGURE_ENV += INSTALL="$(INSTALL)"
278N/A
278N/ACONFIGURE_OPTIONS += --includedir=/usr/include/idn
278N/ACONFIGURE_OPTIONS += --localstatedir=/var
278N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
278N/ACONFIGURE_OPTIONS += --enable-shared
278N/ACONFIGURE_OPTIONS += --disable-static
278N/ACONFIGURE_OPTIONS += --disable-csharp
278N/ACONFIGURE_OPTIONS += --disable-rpath
278N/ACONFIGURE_OPTIONS += --disable-valgrind-tests
278N/ACONFIGURE_OPTIONS += --enable-tld
278N/ACONFIGURE_OPTIONS += --enable-nls
278N/ACONFIGURE_OPTIONS += --disable-gtk-doc
278N/ACONFIGURE_OPTIONS += --enable-java
278N/ACONFIGURE_OPTIONS += --with-libiconv-prefix=$(CONFIGURE_PREFIX)
278N/ACONFIGURE_OPTIONS += --with-libintl-prefix=$(CONFIGURE_PREFIX)
278N/ACONFIGURE_OPTIONS += --with-html-dir=$(CONFIGURE_PREFIX)/share/doc
278N/ACONFIGURE_OPTIONS += --with-pic
278N/A
278N/APROTOUSRSHAREDOCDIR = $(PROTOUSRSHAREDIR)/doc
278N/AIDNDOCDIR = $(PROTOUSRSHAREDOCDIR)/idn
278N/AHTMLDOCDIR = $(IDNDOCDIR)/html
278N/AHTMLDOCLIST = libidn-components.png libidn.html
278N/ADOCLIST = libidn-components.pdf libidn.pdf
278N/A
278N/A# We must unpack the TLD database and touch the perl scripts in order
278N/A# to force re-generation of the TLD tables after augmenting them
278N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
278N/A ( cd $(SOURCE_DIR) ; \
278N/A $(CP) $(COMPONENT_DIR)/tld-0.7.tar.gz . ; \
278N/A $(GUNZIP) tld-0.7.tar.gz ; \
278N/A $(TAR) xvf tld-0.7.tar > /dev/null 2>&1 ; \
278N/A $(RM) tld-0.7.tar ; \
278N/A $(RM) java/libidn-1.19.jar ; \
278N/A $(RM) tld/no.tld tld/fr.tld ; \
278N/A $(CP) doc/tld/fr.tld tld/ ; \
278N/A $(CP) doc/tld/no.tld tld/ ; \
278N/A $(FIND) . -type d -exec chmod 0755 {} + ; \
278N/A $(FIND) ./tld -type f -name "*.tld" -exec chmod 0644 {} + ; \
278N/A $(FIND) ./tld -type f -name "*.tld" -exec touch -acm {} + ; \
278N/A $(FIND) ./tld/templates -type f -exec chmod 0644 {} + ; \
278N/A $(FIND) ./tld/templates -type f -exec touch -acm {} + ; \
278N/A $(FIND) ./lib -type f -name "*.pl" -exec touch -acm {} + ; \
278N/A $(FIND) ./lib -type f -name "*.pl" -exec chmod 0755 {} + )
278N/A
278N/Abuild: $(BUILD_32_and_64)
278N/A
278N/Ainstall: $(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)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk