libtool: only build one version and update to 2.4.6
[unleashed-userland.git] / components / developer / libtool / Makefile
blob2a9f56cdf805be88e11ed626618f36792c74d321
2 # CDDL HEADER START
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]
19 # CDDL HEADER END
23 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
26 include ../../../make-rules/shared-macros.mk
28 COMPONENT_NAME= libtool
29 COMPONENT_VERSION= 2.4.6
30 COMPONENT_REVISION= 2
31 COMPONENT_PROJECT_URL= http://www.gnu.org/software/libtool/
32 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
33 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
34 COMPONENT_ARCHIVE_HASH= \
35 sha256:7c87a8c2c8c0fc9cd5019e402bed4292462d00a718a7cd5f11218153bf28b26f
36 COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
37 COMPONENT_BUGDB= utility/libtool
39 include $(WS_TOP)/make-rules/prep.mk
40 include $(WS_TOP)/make-rules/configure.mk
41 include $(WS_TOP)/make-rules/ips.mk
43 CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
44 CONFIGURE_OPTIONS += --disable-static
45 CONFIGURE_OPTIONS += PERL="$(PERL)"
47 # Remove the hard-wired compiler locations in the LTCC and two CC lines
48 # in the two versions of the libtool script.
49 COMPONENT_POST_INSTALL_ACTION = \
50 (for dir in $(PROTOUSRBINDIR) $(PROTOUSRBINDIR)/$(MACH64) ; do \
51 cd $$dir; \
52 /usr/bin/sed -i '' \
53 -e 's|^LTCC="/.*$$|LTCC="gcc"|' \
54 -e 's|^CC="/.*$$|CC="gcc"|' libtool ; \
55 done)
57 # common targets
58 build: $(BUILD_32_and_64)
60 install: $(INSTALL_32_and_64)
62 test: $(TEST_32_and_64)
64 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
66 include $(WS_TOP)/make-rules/depend.mk