python/typeguard: update to 4.4.0
[oi-userland.git] / components / library / libidn / Makefile
blob4cfedde3be11d71a703b25c9a519d39cc1f4ea87
2 # CDDL HEADER START
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]
19 # CDDL HEADER END
23 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
24 # Copyright (c) 2019, Michal Nowak
25 # Copyright (c) 2020, Andreas Wacknitz
28 BUILD_STYLE= configure
29 BUILD_BITS= 64
30 USE_DEFAULT_TEST_TRANSFORMS= yes
31 include ../../../make-rules/shared-macros.mk
33 PATH=$(dir $(CC)):$(JAVA_HOME)/bin:/usr/bin:/usr/gnu/bin
35 COMPONENT_NAME= libidn
36 COMPONENT_VERSION= 1.36
37 COMPONENT_REVISION= 3
38 COMPONENT_SUMMARY= IDN - The Internationalized Domains Library
39 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
40 COMPONENT_PROJECT_URL= https://www.gnu.org/software/libidn/
41 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
42 COMPONENT_ARCHIVE_HASH= sha256:14b67108344d81ba844631640df77c9071d9fb0659b080326ff5424e86b14038
43 COMPONENT_ARCHIVE_URL= https://ftp.gnu.org/gnu/libidn/$(COMPONENT_ARCHIVE)
44 COMPONENT_FMRI= library/libidn
45 COMPONENT_CLASSIFICATION=System/Libraries
46 COMPONENT_LICENSE= LGPLv2.1, GPLv3, FDLv1.3
48 COMPONENT_ARCHIVE_1= tld-0.7.tar.gz
49 COMPONENT_ARCHIVE_HASH_1= sha256:7423f48d15fb1377ee0050c3e1f22e8a91668c2f158afed57b8ead3fed908785
50 COMPONENT_ARCHIVE_URL_1= https://sourceforge.net/projects/tldchk.berlios/files/$(COMPONENT_ARCHIVE_1)/download
52 include $(WS_MAKE_RULES)/common.mk
54 CFLAGS += $(CPP_LARGEFILES)
55 CFLAGS += $(XPG6MODE)
56 CFLAGS += $(CPP_POSIX)
57 CFLAGS += $(CPP_C99_EXTENDED_MATH)
58 CFLAGS += -std=c99
59 CFLAGS += -DGNULIB_defined_stdint_types
61 COMPONENT_PREP_ACTION += (cd $(@D); PATH="$(PATH)" autoreconf -fiv);
63 CONFIGURE_ENV += INSTALL="$(INSTALL)"
65 CONFIGURE_OPTIONS += --includedir=/usr/include/idn
66 CONFIGURE_OPTIONS += --localstatedir=/var
67 CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
68 CONFIGURE_OPTIONS += --enable-shared
69 CONFIGURE_OPTIONS += --disable-static
70 CONFIGURE_OPTIONS += --disable-csharp
71 CONFIGURE_OPTIONS += --disable-rpath
72 CONFIGURE_OPTIONS += --disable-valgrind-tests
73 CONFIGURE_OPTIONS += --enable-tld
74 CONFIGURE_OPTIONS += --enable-nls
75 CONFIGURE_OPTIONS += --disable-gtk-doc
76 CONFIGURE_OPTIONS += --enable-java
77 CONFIGURE_OPTIONS += --with-libiconv-prefix=$(CONFIGURE_PREFIX)
78 CONFIGURE_OPTIONS += --with-libintl-prefix=$(CONFIGURE_PREFIX)
79 CONFIGURE_OPTIONS += --with-html-dir=$(CONFIGURE_PREFIX)/share/doc
80 CONFIGURE_OPTIONS += --with-pic
82 PROTOUSRSHAREDOCDIR= $(PROTOUSRSHAREDIR)/doc
83 IDNDOCDIR= $(PROTOUSRSHAREDOCDIR)/idn
84 HTMLDOCDIR= $(IDNDOCDIR)/html
85 HTMLDOCLIST= libidn-components.png libidn.html
86 DOCLIST= libidn-components.pdf libidn.pdf
88 ifeq ($(strip $(USERLAND_ARCHIVES)),)
89 TLD_FILE=$(COMPONENT_DIR)/$(COMPONENT_ARCHIVE_1)
90 else
91 TLD_FILE=$(USERLAND_ARCHIVES)$(COMPONENT_ARCHIVE_1)
92 endif
94 # We must unpack the TLD database and touch the perl scripts in order
95 # to force re-generation of the TLD tables after augmenting them
96 COMPONENT_PRE_CONFIGURE_ACTION= ( \
97 cd $(SOURCE_DIR) ; \
98 $(GTAR) zxf $(TLD_FILE); \
99 $(RM) java/libidn-$(COMPONENT_VERSION)jar ; \
100 $(RM) tld/no.tld tld/fr.tld ; \
101 $(CP) doc/tld/fr.tld tld/ ; \
102 $(CP) doc/tld/no.tld tld/ ; \
103 $(FIND) . -type d -exec chmod 0755 {} + ; \
104 $(FIND) ./tld -type f -name "*.tld" -exec chmod 0644 {} + ; \
105 $(FIND) ./tld -type f -name "*.tld" -exec touch -acm {} + ; \
106 $(FIND) ./tld/templates -type f -exec chmod 0644 {} + ; \
107 $(FIND) ./tld/templates -type f -exec touch -acm {} + ; \
108 $(FIND) ./lib -type f -name "*.pl" -exec touch -acm {} + ; \
109 $(FIND) ./lib -type f -name "*.pl" -exec chmod 0755 {} + ; \
110 $(CLONEY) $(SOURCE_DIR) $(@D) )
112 install: $(INSTALL_64)
113 $(MKDIR) $(HTMLDOCDIR) ; \
114 list1='$(HTMLDOCLIST)' ; for f in $$list1; do \
115 $(INSTALL) -m 0644 $(COMPONENT_DIR)/$(COMPONENT_SRC)/doc/$$f \
116 $(HTMLDOCDIR)/ ; \
117 done
118 list2='$(DOCLIST)' ; for f in $$list2; do \
119 $(INSTALL) -m 0644 $(COMPONENT_DIR)/$(COMPONENT_SRC)/doc/$$f \
120 $(IDNDOCDIR)/ ; \
121 done
122 $(CP) -Rp $(COMPONENT_DIR)/$(COMPONENT_SRC)/doc/java \
123 $(IDNDOCDIR)/ ; \
124 $(CP) -Rp $(COMPONENT_DIR)/$(COMPONENT_SRC)/tld \
125 $(IDNDOCDIR)/
126 $(CP) -Rp $(PROTOUSRSHAREDIR)/locale/en@boldquot \
127 $(PROTOUSRSHAREDIR)/locale/en
129 COMPONENT_POST_INSTALL_ACTION += $(RM) -f $(PROTO_DIR)/usr/share/info/dir ;
131 # Manually added dependencies
132 REQUIRED_PACKAGES += developer/documentation-tool/gtk-doc
134 # Auto-generated dependencies
135 REQUIRED_PACKAGES += system/library