Andrzej Szeszo
2013-06-04 453bf5a3004107204e1858532a38b3e703e32995
commit | author | age
eb7f45 1 #
KC 2 # CDDL HEADER START
3 #
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.
7 #
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.
12 #
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]
18 #
19 # CDDL HEADER END
20 #
0f1b63 21 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
eb7f45 22 #
KC 23 include ../../make-rules/shared-macros.mk
24
25 COMPONENT_NAME=        autogen
5b05f3 26 COMPONENT_VERSION=    5.16.2
60e6e0 27 COMPONENT_PROJECT_URL=    http://www.gnu.org/software/autogen/
eb7f45 28 COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
KC 29 COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.gz
35e110 30 COMPONENT_ARCHIVE_HASH=    \
5b05f3 31     sha256:aa51f5adbf49c2cb48a7d6de3dbab15b89e0a04e7152195fe6fb3380e05c4991
eb7f45 32 COMPONENT_ARCHIVE_URL=    http://ftp.gnu.org/gnu/autogen/rel$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
3b89c9 33 COMPONENT_BUGDB=    utility/autogen
eb7f45 34
KC 35 include ../../make-rules/prep.mk
36 include ../../make-rules/configure.mk
37 include ../../make-rules/ips.mk
38
39 # build target is incorrect without this 
40 COMPONENT_PRE_CONFIGURE_ACTION =        ($(CLONEY) $(SOURCE_DIR) $(@D))
41
42 # built in SFW with gcc and builds cleanly now only with gcc
43 COMPILER = gcc
44 CONFIGURE_OPTIONS +=    CFLAGS="$(CFLAGS)"
45
46 # strip the environment or install target fails
47 ENV +=    -i
48
97df81 49 # Replace all occurrences of "echo" with "/usr/gnu/bin/echo" in the two
RB 50 # scripts used by autogen that munge the man and mdoc output. This prevents
51 # bogus conversions (like "\f" -> Control-L) happening.
52 # Adjust "tr" to "/usr/gnu/bin/tr" in the autoopts vendor.test.
53 # These changes now allow the autoopts tests to successfully complete.
54 COMPONENT_POST_UNPACK_ACTION = \
55     $(GSED) -i -e 's|echo|/usr/gnu/bin/echo|' \
56         $(SOURCE_DIR)/autoopts/tpl/mdoc2man.sh ; \
57     $(GSED) -i -e 's|echo|/usr/gnu/bin/echo|' \
58         $(SOURCE_DIR)/autoopts/tpl/texi2mdoc.sh ; \
59     $(GSED) -i -e 's| tr | /usr/gnu/bin/tr |' \
60         $(SOURCE_DIR)/autoopts/test/vendor.test
61
0f1b63 62 # Enable ASLR for this component
AC 63 ASLR_MODE = $(ASLR_ENABLE)
64
eb7f45 65 # common targets
5b05f3 66 build:        $(BUILD_32_and_64)
eb7f45 67
5b05f3 68 install:    $(INSTALL_32_and_64)
eb7f45 69
97df81 70 test:        $(TEST_32_and_64)
eb7f45 71
KC 72 BUILD_PKG_DEPENDENCIES =    $(BUILD_TOOLS)
73
74 include ../../make-rules/depend.mk