components/libtool/Makefile
changeset 6679 2940c23026c1
parent 6657 9988136f27c3
child 7553 9bd80d515ff3
equal deleted inserted replaced
6678:6e93d2f59ffb 6679:2940c23026c1
    32     sha256:b38de44862a987293cd3d8dfae1c409d514b6c4e794ebc93648febf9afc38918
    32     sha256:b38de44862a987293cd3d8dfae1c409d514b6c4e794ebc93648febf9afc38918
    33 COMPONENT_BUGDB=	utility/libtool
    33 COMPONENT_BUGDB=	utility/libtool
    34 
    34 
    35 TPNO=			9088
    35 TPNO=			9088
    36 
    36 
    37 # For now, we want to continue to provide the libltdl.so's (and their
       
    38 # links) from libtool 1.5.22.
       
    39 #
       
    40 COMPONENT_VERSION_1 =	1.5.22
       
    41 COMPONENT_SRC_1 =	$(COMPONENT_NAME)-$(COMPONENT_VERSION_1)
       
    42 COMPONENT_ARCHIVE_1 =	$(COMPONENT_SRC_1).tar.gz
       
    43 COMPONENT_ARCHIVE_HASH_1 = \
       
    44     sha256:88e9ffaaade21c1ddaf6297723dd2fb4ca18ccaef0499a28b6e672f02c8ceb5d
       
    45 COMPONENT_ARCHIVE_URL_1 = http://ftp.gnu.org/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE_1)
       
    46 SOURCE_DIR_1 =		$(COMPONENT_DIR)/$(COMPONENT_SRC_1)
       
    47 
       
    48 BUILD_TARGET=
    37 BUILD_TARGET=
    49 INSTALL_TARGET=
    38 INSTALL_TARGET=
    50 include $(WS_MAKE_RULES)/gnu-component.mk
    39 include $(WS_MAKE_RULES)/gnu-component.mk
    51 
    40 
    52 CONFIGURE_OPTIONS  +=		--infodir=$(CONFIGURE_INFODIR)
    41 CONFIGURE_OPTIONS  +=		--infodir=$(CONFIGURE_INFODIR)
    53 CONFIGURE_OPTIONS  +=		--disable-static
    42 CONFIGURE_OPTIONS  +=		--disable-static
    54 CONFIGURE_OPTIONS  +=		PERL="$(PERL)"
    43 CONFIGURE_OPTIONS  +=		PERL="$(PERL)"
    55 
    44 
    56 # requires an older automake to reconfigure.
    45 COMPONENT_PREP_ACTION = (cd $(@D) ; ./bootstrap)
    57 COMPONENT_PREP_ACTION = \
       
    58 	(cd $(@D) ; ACLOCAL=aclocal-1.11 AUTOMAKE=automake-1.11 ./bootstrap)
       
    59 
    46 
    60 # Remove the hard-wired compiler locations in the LTCC and two CC lines
    47 # Remove the hard-wired compiler locations in the LTCC and CC line
    61 # in the two versions of the libtool script.
    48 # in the version of the libtool script.
    62 COMPONENT_POST_INSTALL_ACTION = \
    49 COMPONENT_POST_INSTALL_ACTION = \
    63 	cd $(PROTO_DIR)$(USRBIN.$(BITS)); \
    50 	cd $(PROTO_DIR)$(USRBIN.$(BITS)); \
    64 	$(GSED) -i \
    51 	$(GSED) -i \
    65 		-e 's|^LTCC="/.*$$|LTCC="cc"|' \
    52 		-e 's|^LTCC="/.*$$|LTCC="cc"|' \
    66 		-e 's|^CC="/.*$$|CC="cc"|' libtool ; \
    53 		-e 's|^CC="/.*$$|CC="cc"|' libtool ; \
    67 
       
    68 # Macros to configure, build, and install the old version for the time being.
       
    69 BUILD_OLD_DIR_32 = $(COMPONENT_DIR)/build/$(COMPONENT_VERSION_1)-$(MACH32)
       
    70 BUILD_OLD_DIR_64 = $(COMPONENT_DIR)/build/$(COMPONENT_VERSION_1)-$(MACH64)
       
    71 
       
    72 $(BUILD_OLD_DIR_32)/.configured: CONFIGURE_SCRIPT = $(SOURCE_DIR_1)/configure
       
    73 $(BUILD_OLD_DIR_64)/.configured: CONFIGURE_SCRIPT = $(SOURCE_DIR_1)/configure
       
    74 $(BUILD_OLD_DIR_32)/.configured:	BITS=32
       
    75 $(BUILD_OLD_DIR_64)/.configured:	BITS=64
       
    76 
       
    77 BUILD_32 += $(BUILD_OLD_DIR_32)/.built
       
    78 BUILD_64 += $(BUILD_OLD_DIR_64)/.built
       
    79 
       
    80 INSTALL_32 += $(BUILD_OLD_DIR_32)/.installed
       
    81 INSTALL_64 += $(BUILD_OLD_DIR_64)/.installed
       
    82 
       
    83 # install the old version first
       
    84 $(BUILD_DIR_32)/.installed:	$(BUILD_OLD_DIR_32)/.installed
       
    85 $(BUILD_DIR_64)/.installed:	$(BUILD_OLD_DIR_64)/.installed
       
    86 
    54 
    87 COMPONENT_TEST_TRANSFORMS += \
    55 COMPONENT_TEST_TRANSFORMS += \
    88 	'-n ' \
    56 	'-n ' \
    89 	'-e "/SKIP/p" ' \
    57 	'-e "/SKIP/p" ' \
    90 	'-e "/PASS/p" ' \
    58 	'-e "/PASS/p" ' \