Makefile revision 3517
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# CDDL HEADER START
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# The contents of this file are subject to the terms of the
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Common Development and Distribution License (the "License").
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# You may not use this file except in compliance with the License.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# or http://www.opensolaris.org/os/licensing.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# See the License for the specific language governing permissions
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# and limitations under the License.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# When distributing Covered Code, include this CDDL HEADER in each
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
09ab886382ad9e7149d9b72b4cf9a03ae4a1cddfDavid Lawrence# If applicable, add the following below this CDDL HEADER, with the
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# fields enclosed by brackets "[]" replaced with your own identifying
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# information: Portions Copyright [yyyy] [name of copyright owner]
09ab886382ad9e7149d9b72b4cf9a03ae4a1cddfDavid Lawrence# CDDL HEADER END
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonPATH=$(dir $(CC)):$(JAVA_HOME)/bin:/usr/bin:/usr/gnu/bin
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCOMPONENT_PROJECT_URL= http://www.gnu.org/software/libidn/
e4757e3dafe50ae59f693eec828f68c42c197a70Andreas GustafssonCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
f9d068745ddfeb513db6184d9dddde835bed42d4Andreas Gustafsson sha256:8ed2e936b1ae3e30b45b54ca3672deaa83ee0f4d20db5ad83dc1af7222d39f41
e4757e3dafe50ae59f693eec828f68c42c197a70Andreas GustafssonCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/libidn/$(COMPONENT_ARCHIVE)
e4757e3dafe50ae59f693eec828f68c42c197a70Andreas Gustafsson sha256:7423f48d15fb1377ee0050c3e1f22e8a91668c2f158afed57b8ead3fed908785
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCOMPONENT_ARCHIVE_URL_1 = http://download.berlios.de/tldchk/$(COMPONENT_ARCHIVE_1)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssoninclude ../../make-rules/lint-libraries.mk
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Enable C99 mode + -Xc for its additional warnings.
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# -xinline=%auto -- we like inlining where appropriate
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# -xbuiltin=%none -- builtins have been known to be buggy
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCONFIGURE_OPTIONS += --includedir=/usr/include/idn
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCONFIGURE_OPTIONS += --disable-valgrind-tests
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCONFIGURE_OPTIONS += --with-libiconv-prefix=$(CONFIGURE_PREFIX)
17453368fa0136f6287c56d6600bee58809334bcAndreas GustafssonCONFIGURE_OPTIONS += --with-libintl-prefix=$(CONFIGURE_PREFIX)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCONFIGURE_OPTIONS += --with-html-dir=$(CONFIGURE_PREFIX)/share/doc
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian WellingtonPROTOUSRSHAREDOCDIR = $(PROTOUSRSHAREDIR)/doc
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonHTMLDOCLIST = libidn-components.png libidn.html
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# We must unpack the TLD database and touch the perl scripts in order
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# to force re-generation of the TLD tables after augmenting them
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(CP) $(COMPONENT_DIR)/tld-0.7.tar.gz . ; \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(TAR) xvf tld-0.7.tar > /dev/null 2>&1 ; \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(FIND) . -type d -exec chmod 0755 {} + ; \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(FIND) ./tld -type f -name "*.tld" -exec chmod 0644 {} + ; \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(FIND) ./tld -type f -name "*.tld" -exec touch -acm {} + ; \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(FIND) ./tld/templates -type f -exec chmod 0644 {} + ; \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(FIND) ./tld/templates -type f -exec touch -acm {} + ; \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(FIND) ./lib -type f -name "*.pl" -exec touch -acm {} + ; \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(FIND) ./lib -type f -name "*.pl" -exec chmod 0755 {} + )
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington list1='$(HTMLDOCLIST)' ; for f in $$list1; do \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(INSTALL) -m 0644 $(COMPONENT_DIR)/$(COMPONENT_SRC)/doc/$$f \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington list2='$(DOCLIST)' ; for f in $$list2; do \
622df0afb82c1b711b5f3c272db4c4b83d09bc4aBob Halley $(INSTALL) -m 0644 $(COMPONENT_DIR)/$(COMPONENT_SRC)/doc/$$f \
622df0afb82c1b711b5f3c272db4c4b83d09bc4aBob Halley $(CP) -Rp $(COMPONENT_DIR)/$(COMPONENT_SRC)/doc/java \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(CP) -Rp $(COMPONENT_DIR)/$(COMPONENT_SRC)/tld \