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]
23 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
24 # Copyright (c) 2019, Michal Nowak
27 USE_DEFAULT_TEST_TRANSFORMS
= yes
28 include ..
/..
/..
/make-rules
/shared-macros.mk
30 COMPONENT_NAME
= gettext
31 COMPONENT_VERSION
= 0.23
32 COMPONENT_SUMMARY
= GNU gettext
- message handling utilities
33 COMPONENT_PROJECT_URL
= https
://www.gnu.org
/software
/gettext
/
34 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
35 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
36 COMPONENT_ARCHIVE_HASH
= sha256
:bf31a9b6bdf3e364669c7bd9858f97e4a0c408a8d22940c5d4ab638b65460f85
37 COMPONENT_ARCHIVE_URL
= https
://ftp.gnu.org
/pub
/gnu
/gettext
/$(COMPONENT_ARCHIVE
)
38 COMPONENT_FMRI
= text
/gnu-gettext
39 COMPONENT_CLASSIFICATION
= Development
/GNU
40 COMPONENT_LICENSE
= GPLv3
41 COMPONENT_LICENSE_FILE
= COPYING
43 include $(WS_MAKE_RULES
)/common.mk
45 CONFIGURE_OPTIONS
+= --disable-java
46 CONFIGURE_OPTIONS
+= --disable-libasprintf
47 CONFIGURE_OPTIONS
+= --disable-openmp
48 CONFIGURE_OPTIONS
+= --disable-static
49 CONFIGURE_OPTIONS
+= --without-emacs
51 # Some files clash with those provided by illumos so move them to usr/gnu
52 COMPONENT_POST_INSTALL_ACTION
.64 += \
53 $(MKDIR
) $(PROTOGNUBIN
) $(PROTOGNUSHAREMAN1
) ; \
54 for f in gettext msgfmt xgettext
; do \
55 $(MV
) $(PROTOUSRBINDIR
)/$$f $(PROTOGNUBIN
) ; \
56 $(MV
) $(PROTOUSRSHAREMAN1DIR
)/$$f.1 $(PROTOGNUSHAREMAN1
) ; \
59 # Tests should run in a clean environment
60 COMPONENT_TEST_ENV
= -i PATH
=$(PATH
)
62 COMPONENT_TEST_TRANSFORMS
+= \
63 '-e "/=========/p" ' \
64 '-e "/Testsuite summary for/p" '
66 # Manually added dependencies
67 REQUIRED_PACKAGES
+= library
/libcroco
69 TEST_REQUIRED_PACKAGES
+= library
/guile
70 TEST_REQUIRED_PACKAGES
+= runtime
/clisp
71 TEST_REQUIRED_PACKAGES
+= runtime
/tcl-8
73 # Auto-generated dependencies
74 REQUIRED_PACKAGES
+= library
/libunistring
75 REQUIRED_PACKAGES
+= library
/libxml2
76 REQUIRED_PACKAGES
+= library
/ncurses
77 REQUIRED_PACKAGES
+= shell/ksh93
78 REQUIRED_PACKAGES
+= system
/library
79 REQUIRED_PACKAGES
+= system
/library
/math