Makefile revision 253
904N/A#
904N/A# CDDL HEADER START
904N/A#
904N/A# The contents of this file are subject to the terms of the
904N/A# Common Development and Distribution License (the "License").
904N/A# You may not use this file except in compliance with the License.
904N/A#
904N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
904N/A# or http://www.opensolaris.org/os/licensing.
904N/A# See the License for the specific language governing permissions
904N/A# and limitations under the License.
904N/A#
904N/A# When distributing Covered Code, include this CDDL HEADER in each
904N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
904N/A# If applicable, add the following below this CDDL HEADER, with the
904N/A# fields enclosed by brackets "[]" replaced with your own identifying
904N/A# information: Portions Copyright [yyyy] [name of copyright owner]
904N/A#
904N/A# CDDL HEADER END
904N/A#
3469N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
904N/A#
904N/Ainclude ../../make-rules/shared-macros.mk
904N/A
904N/APATH=$(dir $(CC)):/usr/bin:/usr/gnu/bin
904N/A
904N/ACOMPONENT_NAME= libidn
904N/ACOMPONENT_VERSION= 1.19
904N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
904N/ACOMPONENT_PROJECT_URL= http://www.gnu.org/software/libidn/
904N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
904N/ACOMPONENT_ARCHIVE_HASH= sha1:2b6dcb500e8135a9444a250d7df76f545915f25f
904N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/libidn/$(COMPONENT_ARCHIVE)
904N/A
904N/ACOMPONENT_ARCHIVE_1 = tld-0.7.tar.gz
904N/ACOMPONENT_ARCHIVE_HASH_1 = sha1:da1aa69757f040c8e89ce0933e67463979a64555
904N/ACOMPONENT_ARCHIVE_URL_1 = http://download.berlios.de/tldchk/$(COMPONENT_ARCHIVE_1)
904N/A
3469N/Ainclude ../../make-rules/prep.mk
904N/Ainclude ../../make-rules/configure.mk
904N/Ainclude ../../make-rules/ips.mk
904N/Ainclude ../../make-rules/lint-libraries.mk
904N/A
PATCH_LEVEL = 0
LINT_FLAGS += -I$(PROTOUSRINCDIR)/idn
# Enable C99 mode + -Xc for its additional warnings.
studio_C99MODE = -Xc $(studio_C99_ENABLE)
# -xinline=%auto -- we like inlining where appropriate
CFLAGS += -xinline=%auto
# -xbuiltin=%none -- builtins have been known to be buggy
CFLAGS += -xbuiltin=%none
CFLAGS += $(CPP_LARGEFILES)
CFLAGS += $(XPG6MODE)
CFLAGS += $(CPP_POSIX)
CFLAGS += $(CPP_C99_EXTENDED_MATH)
CFLAGS += $(studio_PIC)
GUNZIP = /usr/bin/gunzip
TAR = /usr/bin/tar
FIND = /usr/bin/find
CONFIGURE_ENV += CFLAGS="$(CFLAGS)"
CONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
CONFIGURE_ENV += INSTALL="$(INSTALL)"
CONFIGURE_OPTIONS += --includedir=/usr/include/idn
CONFIGURE_OPTIONS += --localstatedir=/var
CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
CONFIGURE_OPTIONS += --enable-shared
CONFIGURE_OPTIONS += --disable-static
CONFIGURE_OPTIONS += --disable-csharp
CONFIGURE_OPTIONS += --disable-rpath
CONFIGURE_OPTIONS += --disable-valgrind-tests
CONFIGURE_OPTIONS += --enable-tld
CONFIGURE_OPTIONS += --enable-nls
CONFIGURE_OPTIONS += --disable-gtk-doc
CONFIGURE_OPTIONS += --enable-java
CONFIGURE_OPTIONS += --with-libiconv-prefix=$(CONFIGURE_PREFIX)
CONFIGURE_OPTIONS += --with-libintl-prefix=$(CONFIGURE_PREFIX)
CONFIGURE_OPTIONS += --with-html-dir=$(CONFIGURE_PREFIX)/share/doc
CONFIGURE_OPTIONS += --with-pic
PROTOUSRSHAREDOCDIR = $(PROTOUSRSHAREDIR)/doc
IDNDOCDIR = $(PROTOUSRSHAREDOCDIR)/idn
HTMLDOCDIR = $(IDNDOCDIR)/html
HTMLDOCLIST = libidn-components.png libidn.html
DOCLIST = libidn-components.pdf libidn.pdf
# We must unpack the TLD database and touch the perl scripts in order
# to force re-generation of the TLD tables after augmenting them
COMPONENT_PRE_CONFIGURE_ACTION = \
( cd $(SOURCE_DIR) ; \
$(CP) $(COMPONENT_DIR)/tld-0.7.tar.gz . ; \
$(GUNZIP) tld-0.7.tar.gz ; \
$(TAR) xvf tld-0.7.tar > /dev/null 2>&1 ; \
$(RM) tld-0.7.tar ; \
$(RM) java/libidn-1.19.jar ; \
$(RM) tld/no.tld tld/fr.tld ; \
$(CP) doc/tld/fr.tld tld/ ; \
$(CP) doc/tld/no.tld tld/ ; \
$(FIND) . -type d -exec chmod 0755 {} + ; \
$(FIND) ./tld -type f -name "*.tld" -exec chmod 0644 {} + ; \
$(FIND) ./tld -type f -name "*.tld" -exec touch -acm {} + ; \
$(FIND) ./tld/templates -type f -exec chmod 0644 {} + ; \
$(FIND) ./tld/templates -type f -exec touch -acm {} + ; \
$(FIND) ./lib -type f -name "*.pl" -exec touch -acm {} + ; \
$(FIND) ./lib -type f -name "*.pl" -exec chmod 0755 {} + )
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
$(MKDIR) $(HTMLDOCDIR) ; \
list1='$(HTMLDOCLIST)' ; for f in $$list1; do \
$(INSTALL) -m 0644 $(COMPONENT_DIR)/$(COMPONENT_SRC)/doc/$$f \
$(HTMLDOCDIR)/ ; \
done
list2='$(DOCLIST)' ; for f in $$list2; do \
$(INSTALL) -m 0644 $(COMPONENT_DIR)/$(COMPONENT_SRC)/doc/$$f \
$(IDNDOCDIR)/ ; \
done
$(CP) -Rp $(COMPONENT_DIR)/$(COMPONENT_SRC)/doc/java \
$(IDNDOCDIR)/ ; \
$(CP) -Rp $(COMPONENT_DIR)/$(COMPONENT_SRC)/tld \
$(IDNDOCDIR)/
$(CP) -Rp $(PROTOUSRSHAREDIR)/locale/en@boldquot \
$(PROTOUSRSHAREDIR)/locale/en
test: $(TEST_32_and_64)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk