Makefile revision 2899
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# CDDL HEADER START
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# The contents of this file are subject to the terms of the
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# Common Development and Distribution License (the "License").
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# You may not use this file except in compliance with the License.
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# See the License for the specific language governing permissions
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# and limitations under the License.
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# When distributing Covered Code, include this CDDL HEADER in each
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# If applicable, add the following below this CDDL HEADER, with the
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# fields enclosed by brackets "[]" replaced with your own identifying
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley# information: Portions Copyright [yyyy] [name of copyright owner]
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# CDDL HEADER END
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyPATH=$(dir $(CC)):$(JAVA_HOME)/bin:/usr/bin:/usr/gnu/bin
b897c52f865b2fc4e220e2110b874e59c716456bBob HalleyCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyCOMPONENT_PROJECT_URL= http://www.gnu.org/software/libidn/
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley sha256:8ed2e936b1ae3e30b45b54ca3672deaa83ee0f4d20db5ad83dc1af7222d39f41
b897c52f865b2fc4e220e2110b874e59c716456bBob HalleyCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/libidn/$(COMPONENT_ARCHIVE)
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley sha256:7423f48d15fb1377ee0050c3e1f22e8a91668c2f158afed57b8ead3fed908785
460b427411b72da26b1836b9424e2e70d65d9394David LawrenceCOMPONENT_ARCHIVE_URL_1 = http://download.berlios.de/tldchk/$(COMPONENT_ARCHIVE_1)
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence# Enable C99 mode + -Xc for its additional warnings.
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence# -xinline=%auto -- we like inlining where appropriate
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence# -xbuiltin=%none -- builtins have been known to be buggy
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyCONFIGURE_OPTIONS += --includedir=/usr/include/idn
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyCONFIGURE_OPTIONS += --with-libiconv-prefix=$(CONFIGURE_PREFIX)
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyCONFIGURE_OPTIONS += --with-libintl-prefix=$(CONFIGURE_PREFIX)
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyCONFIGURE_OPTIONS += --with-html-dir=$(CONFIGURE_PREFIX)/share/doc
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# We must unpack the TLD database and touch the perl scripts in order
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# to force re-generation of the TLD tables after augmenting them
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley $(FIND) ./tld -type f -name "*.tld" -exec chmod 0644 {} + ; \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley $(FIND) ./tld -type f -name "*.tld" -exec touch -acm {} + ; \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley $(FIND) ./tld/templates -type f -exec chmod 0644 {} + ; \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley $(FIND) ./tld/templates -type f -exec touch -acm {} + ; \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley $(FIND) ./lib -type f -name "*.pl" -exec touch -acm {} + ; \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley $(FIND) ./lib -type f -name "*.pl" -exec chmod 0755 {} + )
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley $(INSTALL) -m 0644 $(COMPONENT_DIR)/$(COMPONENT_SRC)/doc/$$f \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley $(INSTALL) -m 0644 $(COMPONENT_DIR)/$(COMPONENT_SRC)/doc/$$f \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley $(CP) -Rp $(COMPONENT_DIR)/$(COMPONENT_SRC)/doc/java \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley $(CP) -Rp $(COMPONENT_DIR)/$(COMPONENT_SRC)/tld \
test: $(TEST_32_and_64)