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