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.1
33 COMPONENT_SUMMARY
= GNU gettext
- message handling utilities
34 COMPONENT_PROJECT_URL
= https
://www.gnu.org
/software
/gettext
/
35 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
36 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
37 COMPONENT_ARCHIVE_HASH
= sha256
:c1f97a72a7385b7e71dd07b5fea6cdaf12c9b88b564976b23bd8c11857af2970
38 COMPONENT_ARCHIVE_URL
= https
://ftp.gnu.org
/pub
/gnu
/gettext
/$(COMPONENT_ARCHIVE
)
39 COMPONENT_FMRI
= text
/gnu-gettext
40 COMPONENT_CLASSIFICATION
= Development
/GNU
41 COMPONENT_LICENSE
= GPLv3
42 COMPONENT_LICENSE_FILE
= COPYING
44 include $(WS_MAKE_RULES
)/common.mk
46 # Our sed misbehaves during the tests and let msgfilter-2 and msgfilter-4 tests being skipped.
49 # gcc 14 complains about incompatible pointer types
50 CFLAGS
+= -Wno-error
=incompatible-pointer-types
52 CONFIGURE_OPTIONS
+= --disable-java
53 CONFIGURE_OPTIONS
+= --disable-libasprintf
54 CONFIGURE_OPTIONS
+= --disable-openmp
55 CONFIGURE_OPTIONS
+= --disable-static
56 CONFIGURE_OPTIONS
+= --without-emacs
58 # Some files clash with those provided by illumos so move them to usr/gnu
59 COMPONENT_POST_INSTALL_ACTION
.64 += \
60 $(MKDIR
) $(PROTOGNUBIN
) $(PROTOGNUSHAREMAN1
) ; \
61 for f in gettext msgfmt xgettext
; do \
62 $(MV
) $(PROTOUSRBINDIR
)/$$f $(PROTOGNUBIN
) ; \
63 $(MV
) $(PROTOUSRSHAREMAN1DIR
)/$$f.1 $(PROTOGNUSHAREMAN1
) ; \
66 COMPONENT_TEST_TRANSFORMS
+= \
67 '-e "/=========/p" ' \
68 '-e "/Testsuite summary for/p" '
70 # Manually added dependencies
71 TEST_REQUIRED_PACKAGES
+= library
/guile
72 TEST_REQUIRED_PACKAGES
+= runtime
/clisp
73 TEST_REQUIRED_PACKAGES
+= runtime
/tcl-8
75 # Auto-generated dependencies
76 REQUIRED_PACKAGES
+= library
/libunistring
77 REQUIRED_PACKAGES
+= library
/libxml2
78 REQUIRED_PACKAGES
+= library
/ncurses
79 REQUIRED_PACKAGES
+= shell/ksh93
80 REQUIRED_PACKAGES
+= system
/library
81 REQUIRED_PACKAGES
+= system
/library
/math