4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
21 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
23 include ..
/..
/make-rules
/shared-macros.mk
25 PATH
=$(dir $(CC
)):$(JAVA_HOME
)/bin
:/usr
/bin
:/usr
/gnu
/bin
27 COMPONENT_NAME
= libidn
28 COMPONENT_VERSION
= 1.19
29 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
30 COMPONENT_PROJECT_URL
= http
://www.gnu.org
/software
/libidn
/
31 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
32 COMPONENT_ARCHIVE_HASH
= \
33 sha256
:8ed2e936b1ae3e30b45b54ca3672deaa83ee0f4d20db5ad83dc1af7222d39f41
34 COMPONENT_ARCHIVE_URL
= http
://ftp.gnu.org
/gnu
/libidn
/$(COMPONENT_ARCHIVE
)
35 COMPONENT_BUGDB
= library
/libidn
37 COMPONENT_ARCHIVE_1
= tld-0.7.
tar.gz
38 COMPONENT_ARCHIVE_HASH_1
= \
39 sha256
:7423f48d15fb1377ee0050c3e1f22e8a91668c2f158afed57b8ead3fed908785
40 COMPONENT_ARCHIVE_URL_1
= http
://sourceforge.net
/projects
/tldchk.berlios
/files
/$(COMPONENT_ARCHIVE_1
)/download
42 include ..
/..
/make-rules
/prep.mk
43 include ..
/..
/make-rules
/configure.mk
44 include ..
/..
/make-rules
/ips.mk
47 LINT_FLAGS
+= -I
$(PROTOUSRINCDIR
)/idn
49 CFLAGS
+= $(CPP_LARGEFILES
)
51 CFLAGS
+= $(CPP_POSIX
)
52 CFLAGS
+= $(CPP_C99_EXTENDED_MATH
)
55 GUNZIP
= /usr
/bin
/gunzip
59 CONFIGURE_ENV
+= INSTALL
="$(INSTALL)"
61 CONFIGURE_OPTIONS
+= --includedir=/usr
/include/idn
62 CONFIGURE_OPTIONS
+= --localstatedir
=/var
63 CONFIGURE_OPTIONS
+= --infodir=$(CONFIGURE_INFODIR
)
64 CONFIGURE_OPTIONS
+= --enable-shared
65 CONFIGURE_OPTIONS
+= --disable-static
66 CONFIGURE_OPTIONS
+= --disable-csharp
67 CONFIGURE_OPTIONS
+= --disable-rpath
68 CONFIGURE_OPTIONS
+= --disable-valgrind-tests
69 CONFIGURE_OPTIONS
+= --enable-tld
70 CONFIGURE_OPTIONS
+= --enable-nls
71 CONFIGURE_OPTIONS
+= --disable-gtk-doc
72 CONFIGURE_OPTIONS
+= --enable-java
73 CONFIGURE_OPTIONS
+= --with-libiconv-prefix
=$(CONFIGURE_PREFIX
)
74 CONFIGURE_OPTIONS
+= --with-libintl-prefix
=$(CONFIGURE_PREFIX
)
75 CONFIGURE_OPTIONS
+= --with-html-dir
=$(CONFIGURE_PREFIX
)/share
/doc
76 CONFIGURE_OPTIONS
+= --with-pic
78 PROTOUSRSHAREDOCDIR
= $(PROTOUSRSHAREDIR
)/doc
79 IDNDOCDIR
= $(PROTOUSRSHAREDOCDIR
)/idn
80 HTMLDOCDIR
= $(IDNDOCDIR
)/html
81 HTMLDOCLIST
= libidn-components.png libidn.html
82 DOCLIST
= libidn-components.pdf libidn.pdf
84 ifeq ($(strip $(USERLAND_ARCHIVES
)),)
85 TLD_FILE
=$(COMPONENT_DIR
)/$(COMPONENT_ARCHIVE_1
)
87 TLD_FILE
=$(USERLAND_ARCHIVES
)$(COMPONENT_ARCHIVE_1
)
90 # We must unpack the TLD database and touch the perl scripts in order
91 # to force re-generation of the TLD tables after augmenting them
92 COMPONENT_PRE_CONFIGURE_ACTION
= \
93 ( cd
$(SOURCE_DIR
) ; \
94 $(TAR
) zxf
$(TLD_FILE
); \
95 $(RM
) java
/libidn-1.19.jar
; \
96 $(RM
) tld
/no.tld tld
/fr.tld
; \
97 $(CP
) doc
/tld
/fr.tld tld
/ ; \
98 $(CP
) doc
/tld
/no.tld tld
/ ; \
99 $(FIND
) .
-type d
-exec chmod
0755 {} + ; \
100 $(FIND
) .
/tld
-type f
-name
"*.tld" -exec chmod
0644 {} + ; \
101 $(FIND
) .
/tld
-type f
-name
"*.tld" -exec touch
-acm
{} + ; \
102 $(FIND
) .
/tld
/templates
-type f
-exec chmod
0644 {} + ; \
103 $(FIND
) .
/tld
/templates
-type f
-exec touch
-acm
{} + ; \
104 $(FIND
) .
/lib
-type f
-name
"*.pl" -exec touch
-acm
{} + ; \
105 $(FIND
) .
/lib
-type f
-name
"*.pl" -exec chmod
0755 {} + )
107 build
: $(BUILD_32_and_64
)
109 install: $(INSTALL_32_and_64
)
110 $(MKDIR
) $(HTMLDOCDIR
) ; \
111 list1
='$(HTMLDOCLIST)' ; for f in
$$list1; do \
112 $(INSTALL
) -m
0644 $(COMPONENT_DIR
)/$(COMPONENT_SRC
)/doc
/$$f \
115 list2
='$(DOCLIST)' ; for f in
$$list2; do \
116 $(INSTALL
) -m
0644 $(COMPONENT_DIR
)/$(COMPONENT_SRC
)/doc
/$$f \
119 $(CP
) -Rp
$(COMPONENT_DIR
)/$(COMPONENT_SRC
)/doc
/java \
121 $(CP
) -Rp
$(COMPONENT_DIR
)/$(COMPONENT_SRC
)/tld \
123 $(CP
) -Rp
$(PROTOUSRSHAREDIR
)/locale
/en@boldquot \
124 $(PROTOUSRSHAREDIR
)/locale
/en
126 test: $(TEST_32_and_64
)
128 BUILD_PKG_DEPENDENCIES
= $(BUILD_TOOLS
)
130 include ..
/..
/make-rules
/depend.mk