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, 2013, Oracle and/or its affiliates. All rights reserved.
22 # Copyright (c) 2019, Michal Nowak
26 BUILD_STYLE
= configure
27 include ..
/..
/..
/make-rules
/shared-macros.mk
29 COMPONENT_NAME
= autogen
30 COMPONENT_VERSION
= 5.18.16
32 COMPONENT_SUMMARY
= GNU autogen utility
33 COMPONENT_PROJECT_URL
= https
://www.gnu.org
/software
/autogen
/
34 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
35 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
36 COMPONENT_ARCHIVE_HASH
= sha256
:e23c5bbd0ac83079ae2ef6eb3fd1948fecce718ac853025607a3ab0395538406
37 COMPONENT_ARCHIVE_URL
= https
://ftp.gnu.org
/gnu
/autogen
/rel
$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)
38 COMPONENT_FMRI
= developer
/build
/autogen
39 COMPONENT_CLASSIFICATION
= Development
/Other Languages
40 COMPONENT_LICENSE
= GPLv3
, FDLv1.2
42 include $(WS_MAKE_RULES
)/common.mk
44 COMPONENT_PREP_ACTION
= ( cd
$(@D
) && autoreconf
-I config
-fi
)
46 # build target is incorrect without this
47 COMPONENT_PRE_CONFIGURE_ACTION
= ($(CLONEY
) $(SOURCE_DIR
) $(@D
))
49 # strip the environment or install target fails
52 CONFIGURE_OPTIONS
+= --disable-dependency-tracking
54 # Replace all occurrences of "echo" with "/usr/gnu/bin/echo" in the two
55 # scripts used by autogen that munge the man and mdoc output. This prevents
56 # bogus conversions (like "\f" -> Control-L) happening.
58 # Adjust "tr" to "/usr/gnu/bin/tr" in the autoopts vendor.test.
59 # These changes now allow the autoopts tests to successfully complete.
61 # Replace a GNU-specifix option for mktemp.
62 COMPONENT_POST_UNPACK_ACTION
= \
63 $(CHMOD
) -R u
+w
$(SOURCE_DIR
) ; \
64 $(GSED
) -i
-e
's|echo|/usr/gnu/bin/echo|' \
65 $(SOURCE_DIR
)/autoopts
/tpl
/texi2mdoc.sh
; \
66 $(GSED
) -i
-e
's| tr | /usr/gnu/bin/tr |' \
67 $(SOURCE_DIR
)/autoopts
/test/vendor.
test ; \
68 $(GSED
) -i
-e
's|mktemp --suffix=|g&|' $(SOURCE_DIR
)/agen5
/mk-stamps.sh \
69 $(SOURCE_DIR
)/build-aux
/run-ag.sh \
70 $(SOURCE_DIR
)/config
/mk-shdefs.in
;
72 COMPONENT_BUILD_ENV
+= PERL
=$(PERL
)
73 COMPONENT_INSTALL_ENV
+= PERL
=$(PERL
)
74 COMPONENT_TEST_ENV
+= PERL
=$(PERL
)
76 COMPONENT_TEST_TRANSFORMS
+= \
84 # Manually added build dependencies
85 REQUIRED_PACKAGES
+= file
/gnu-coreutils
87 # Auto-generated dependencies
88 REQUIRED_PACKAGES
+= library
/guile
89 REQUIRED_PACKAGES
+= library
/libxml2
90 REQUIRED_PACKAGES
+= shell/bash
91 REQUIRED_PACKAGES
+= system
/library