Makefile revision 783
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# CDDL HEADER START
f536382c59dd492a14667b753816d920f9981f1cTinderbox User# The contents of this file are subject to the terms of the
ab496cc3df1648e9ad992a87c35c2c0870fdc69dTinderbox User# Common Development and Distribution License (the "License").
7c1468ed500356839a4a222517364e6ce18cb1a2Tinderbox User# You may not use this file except in compliance with the License.
a7c412f37cc73d0332887a746e81220cbf09dd00Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews# See the License for the specific language governing permissions
8de3f14f1c300c3e1ed99084cc03485b42c92bf1Tinderbox User# and limitations under the License.
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3759f10fc543747668b1ca4b4671f35b0dea8445Francis Dupont# If applicable, add the following below this CDDL HEADER, with the
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
d5637bdbb931ff79fced3d4858d83212ea58ed15Tinderbox User# CDDL HEADER END
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserPATH=$(dir $(CC)):$(JAVA_HOME)/bin:/usr/bin:/usr/gnu/bin
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_PROJECT_URL= http://www.gnu.org/software/libidn/
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsCOMPONENT_ARCHIVE_HASH= sha1:2b6dcb500e8135a9444a250d7df76f545915f25f
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/libidn/$(COMPONENT_ARCHIVE)
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserCOMPONENT_ARCHIVE_HASH_1 = sha1:da1aa69757f040c8e89ce0933e67463979a64555
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_ARCHIVE_URL_1 = http://download.berlios.de/tldchk/$(COMPONENT_ARCHIVE_1)
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# Enable C99 mode + -Xc for its additional warnings.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# -xinline=%auto -- we like inlining where appropriate
0e573cdd111e060e5f6c18249b5ccacbe8abe278Tinderbox User# -xbuiltin=%none -- builtins have been known to be buggy
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONFIGURE_OPTIONS += --includedir=/usr/include/idn
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
294e9d4c34462d29a3e766c88f452b46aeb3702fTinderbox UserCONFIGURE_OPTIONS += --with-libiconv-prefix=$(CONFIGURE_PREFIX)
2ae159b376dac23870d8005563c585acf85a4b5aEvan HuntCONFIGURE_OPTIONS += --with-libintl-prefix=$(CONFIGURE_PREFIX)
2ae159b376dac23870d8005563c585acf85a4b5aEvan HuntCONFIGURE_OPTIONS += --with-html-dir=$(CONFIGURE_PREFIX)/share/doc
ee11dfc481f2ef6a032a715454f6290961a722d2Tinderbox User# We must unpack the TLD database and touch the perl scripts in order
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# to force re-generation of the TLD tables after augmenting them
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson $(FIND) ./tld -type f -name "*.tld" -exec chmod 0644 {} + ; \
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User $(FIND) ./tld -type f -name "*.tld" -exec touch -acm {} + ; \
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews $(FIND) ./tld/templates -type f -exec chmod 0644 {} + ; \
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User $(FIND) ./tld/templates -type f -exec touch -acm {} + ; \
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews $(FIND) ./lib -type f -name "*.pl" -exec touch -acm {} + ; \
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User $(FIND) ./lib -type f -name "*.pl" -exec chmod 0755 {} + )
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson list1='$(HTMLDOCLIST)' ; for f in $$list1; do \
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User $(INSTALL) -m 0644 $(COMPONENT_DIR)/$(COMPONENT_SRC)/doc/$$f \
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User $(INSTALL) -m 0644 $(COMPONENT_DIR)/$(COMPONENT_SRC)/doc/$$f \
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews $(CP) -Rp $(COMPONENT_DIR)/$(COMPONENT_SRC)/doc/java \
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews $(CP) -Rp $(COMPONENT_DIR)/$(COMPONENT_SRC)/tld \