Makefile revision 844
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# CDDL HEADER START
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# The contents of this file are subject to the terms of the
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Common Development and Distribution License (the "License").
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# You may not use this file except in compliance with the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# See the License for the specific language governing permissions
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# and limitations under the License.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# If applicable, add the following below this CDDL HEADER, with the
7e71f05d8643aca84914437c900cb716444507e4Tinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# CDDL HEADER END
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsPATH=$(dir $(CC)):$(JAVA_HOME)/bin:/usr/bin:/usr/gnu/bin
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_PROJECT_URL= http://www.gnu.org/software/libidn/
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews sha256:8ed2e936b1ae3e30b45b54ca3672deaa83ee0f4d20db5ad83dc1af7222d39f41
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/libidn/$(COMPONENT_ARCHIVE)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User sha256:7423f48d15fb1377ee0050c3e1f22e8a91668c2f158afed57b8ead3fed908785
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_ARCHIVE_URL_1 = http://download.berlios.de/tldchk/$(COMPONENT_ARCHIVE_1)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Enable C99 mode + -Xc for its additional warnings.
ad671240d635376dd8681550eebee799d2e3d1fdAutomatic Updater# -xinline=%auto -- we like inlining where appropriate
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# -xbuiltin=%none -- builtins have been known to be buggy
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox UserCONFIGURE_OPTIONS += --includedir=/usr/include/idn
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox UserCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox UserCONFIGURE_OPTIONS += --with-libiconv-prefix=$(CONFIGURE_PREFIX)
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox UserCONFIGURE_OPTIONS += --with-libintl-prefix=$(CONFIGURE_PREFIX)
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox UserCONFIGURE_OPTIONS += --with-html-dir=$(CONFIGURE_PREFIX)/share/doc
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic UpdaterPROTOUSRSHAREDOCDIR = $(PROTOUSRSHAREDIR)/doc
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox UserHTMLDOCLIST = libidn-components.png libidn.html
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User# We must unpack the TLD database and touch the perl scripts in order
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User# to force re-generation of the TLD tables after augmenting them
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User $(FIND) ./tld -type f -name "*.tld" -exec chmod 0644 {} + ; \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(FIND) ./tld -type f -name "*.tld" -exec touch -acm {} + ; \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User $(FIND) ./tld/templates -type f -exec chmod 0644 {} + ; \
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User $(FIND) ./tld/templates -type f -exec touch -acm {} + ; \
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User $(FIND) ./lib -type f -name "*.pl" -exec touch -acm {} + ; \
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User $(FIND) ./lib -type f -name "*.pl" -exec chmod 0755 {} + )
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater list1='$(HTMLDOCLIST)' ; for f in $$list1; do \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User $(INSTALL) -m 0644 $(COMPONENT_DIR)/$(COMPONENT_SRC)/doc/$$f \
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User $(INSTALL) -m 0644 $(COMPONENT_DIR)/$(COMPONENT_SRC)/doc/$$f \
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User $(CP) -Rp $(COMPONENT_DIR)/$(COMPONENT_SRC)/doc/java \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User $(CP) -Rp $(COMPONENT_DIR)/$(COMPONENT_SRC)/tld \