Makefile revision 3592
012a352f4b26cfd874db8d06debc495c2303e8b2Bob Halley#
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# CDDL HEADER START
c8175ece69d986ccd0671bc4d2571b247dfae177Automatic Updater#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# The contents of this file are subject to the terms of the
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# Common Development and Distribution License (the "License").
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# You may not use this file except in compliance with the License.
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley#
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# or http://www.opensolaris.org/os/licensing.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# See the License for the specific language governing permissions
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley# information: Portions Copyright [yyyy] [name of copyright owner]
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User#
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# CDDL HEADER END
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
460b427411b72da26b1836b9424e2e70d65d9394David Lawrenceinclude ../../make-rules/shared-macros.mk
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyCOMPONENT_NAME= autogen
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyCOMPONENT_VERSION= 5.16.2
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyCOMPONENT_PROJECT_URL= http://www.gnu.org/software/autogen/
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
b897c52f865b2fc4e220e2110b874e59c716456bBob HalleyCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyCOMPONENT_ARCHIVE_HASH= \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley sha256:aa51f5adbf49c2cb48a7d6de3dbab15b89e0a04e7152195fe6fb3380e05c4991
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/autogen/rel$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyCOMPONENT_BUGDB= utility/autogen
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley
460b427411b72da26b1836b9424e2e70d65d9394David LawrenceTPNO= 11805
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
460b427411b72da26b1836b9424e2e70d65d9394David Lawrenceinclude ../../make-rules/prep.mk
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halleyinclude ../../make-rules/configure.mk
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halleyinclude ../../make-rules/ips.mk
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence# build target is incorrect without this
460b427411b72da26b1836b9424e2e70d65d9394David LawrenceCOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
fcb54ce0a4f7377486df5bec83b3aa4711bf4131Mark Andrews
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence# built in SFW with gcc and builds cleanly now only with gcc
460b427411b72da26b1836b9424e2e70d65d9394David LawrenceCOMPILER = gcc
460b427411b72da26b1836b9424e2e70d65d9394David LawrenceCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence# strip the environment or install target fails
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyENV += -i
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence# Replace all occurrences of "echo" with "/usr/gnu/bin/echo" in the two
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence# scripts used by autogen that munge the man and mdoc output. This prevents
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence# bogus conversions (like "\f" -> Control-L) happening.
dabea86dac4c01f852b7aea728f73b4f55a89d44Mark Andrews# Adjust "tr" to "/usr/gnu/bin/tr" in the autoopts vendor.test.
dabea86dac4c01f852b7aea728f73b4f55a89d44Mark Andrews# These changes now allow the autoopts tests to successfully complete.
dabea86dac4c01f852b7aea728f73b4f55a89d44Mark AndrewsCOMPONENT_POST_UNPACK_ACTION = \
12a3ab37fe6556406acdf92fc7c5f198d603ca2eMark Andrews $(GSED) -i -e 's|echo|/usr/gnu/bin/echo|' \
f5cfcbf2f7906fb59c2b8b9b8fc9c7a75ac44dabMark Andrews $(SOURCE_DIR)/autoopts/tpl/mdoc2man.sh ; \
2d46d268ccff30bb50e661b47c6496d23d9156c7Mark Andrews $(GSED) -i -e 's|echo|/usr/gnu/bin/echo|' \
2d46d268ccff30bb50e661b47c6496d23d9156c7Mark Andrews $(SOURCE_DIR)/autoopts/tpl/texi2mdoc.sh ; \
dabea86dac4c01f852b7aea728f73b4f55a89d44Mark Andrews $(GSED) -i -e 's| tr | /usr/gnu/bin/tr |' \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley $(SOURCE_DIR)/autoopts/test/vendor.test
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence# Master test results are the same for both 32-bit and 64-bit, so override
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence# here, rather than create multiple identical master files.
460b427411b72da26b1836b9424e2e70d65d9394David LawrenceCOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence
460b427411b72da26b1836b9424e2e70d65d9394David LawrenceASLR_MODE = $(ASLR_ENABLE)
596912ee9ca8eb14d30707ec286ab5d28bd39b3eMark Andrews
8319af16557b81eba3277ee67215285f0823b587Mark Andrews# common targets
8319af16557b81eba3277ee67215285f0823b587Mark Andrewsconfigure: $(CONFIGURE_32_and_64)
aee5e9cbacd8f88325840b8a498876f4319b0890Mark Andrews
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrencebuild: $(BUILD_32_and_64)
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrenceinstall: $(INSTALL_32_and_64)
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrencetest: $(TEST_32_and_64)
c32b87bc54abacf95fb3b063d72b7d1855c1643bMichael Graff
7f9f8c13c5e5e26e0ba2b82c0900d11ecf6269ceMark AndrewsBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrenceinclude ../../make-rules/depend.mk
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence