components/libtool/Makefile
changeset 708 2cb7fdf18c3d
parent 609 775168282b2f
child 725 c3d04b0fa1ca
equal deleted inserted replaced
707:5953149bd743 708:2cb7fdf18c3d
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 
    21 
    22 #
    22 #
    23 # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
    24 #
    24 #
    25 
    25 
    26 include ../../make-rules/shared-macros.mk
    26 include ../../make-rules/shared-macros.mk
    27 
    27 
    28 COMPONENT_NAME=		libtool
    28 COMPONENT_NAME=		libtool
    29 COMPONENT_VERSION=	1.5.22
    29 COMPONENT_VERSION=	2.4.2
    30 COMPONENT_PROJECT_URL=	http://www.gnu.org/software/libtool/
    30 COMPONENT_PROJECT_URL=	http://www.gnu.org/software/libtool/
    31 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    31 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    32 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
    32 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
    33 COMPONENT_ARCHIVE_HASH=	sha1:17353e66aeaac80ae188ea0a3a90609550ce3254
    33 COMPONENT_ARCHIVE_HASH=	sha1:22b71a8b5ce3ad86e1094e7285981cae10e6ff88
    34 COMPONENT_ARCHIVE_URL=	http://ftp.gnu.org/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
    34 COMPONENT_ARCHIVE_URL=	http://ftp.gnu.org/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
       
    35 
       
    36 # For now, we want to continue to provide the libltdl.so's (and their
       
    37 # links) from libtool 1.5.22.
       
    38 #
       
    39 COMPONENT_VERSION_1 =	1.5.22
       
    40 COMPONENT_SRC_1 =	$(COMPONENT_NAME)-$(COMPONENT_VERSION_1)
       
    41 COMPONENT_ARCHIVE_1 =	$(COMPONENT_SRC_1).tar.gz
       
    42 COMPONENT_ARCHIVE_HASH_1 = sha1:17353e66aeaac80ae188ea0a3a90609550ce3254
       
    43 COMPONENT_ARCHIVE_URL_1 = http://ftp.gnu.org/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE_1)
       
    44 SOURCE_DIR_1 =		$(COMPONENT_DIR)/$(COMPONENT_SRC_1)
    35 
    45 
    36 include $(WS_TOP)/make-rules/prep.mk
    46 include $(WS_TOP)/make-rules/prep.mk
    37 include $(WS_TOP)/make-rules/configure.mk
    47 include $(WS_TOP)/make-rules/configure.mk
    38 include $(WS_TOP)/make-rules/ips.mk
    48 include $(WS_TOP)/make-rules/ips.mk
    39 
    49 
    40 CONFIGURE_OPTIONS  +=		--infodir=$(CONFIGURE_INFODIR)
    50 CONFIGURE_OPTIONS  +=		--infodir=$(CONFIGURE_INFODIR)
    41 CONFIGURE_OPTIONS  +=		--disable-static
    51 CONFIGURE_OPTIONS  +=		--disable-static
    42 CONFIGURE_OPTIONS  +=		CFLAGS="$(CFLAGS)"
    52 CONFIGURE_OPTIONS  +=		CFLAGS="$(CFLAGS)"
    43 CONFIGURE_OPTIONS  +=		PERL="$(PERL)"
    53 CONFIGURE_OPTIONS  +=		PERL="$(PERL)"
       
    54 
       
    55 COMPONENT_PREP_ACTION = (cd $(@D) ; ./bootstrap)
       
    56 
       
    57 # Macros to configure, build, and install the old version for the time being.
       
    58 BUILD_OLD_DIR_32 = $(COMPONENT_DIR)/build/$(COMPONENT_VERSION_1)-$(MACH32)
       
    59 BUILD_OLD_DIR_64 = $(COMPONENT_DIR)/build/$(COMPONENT_VERSION_1)-$(MACH64)
       
    60 
       
    61 $(BUILD_OLD_DIR_32)/.configured: CONFIGURE_SCRIPT = $(SOURCE_DIR_1)/configure
       
    62 $(BUILD_OLD_DIR_64)/.configured: CONFIGURE_SCRIPT = $(SOURCE_DIR_1)/configure
       
    63 $(BUILD_OLD_DIR_32)/.configured:	BITS=32
       
    64 $(BUILD_OLD_DIR_64)/.configured:	BITS=64
       
    65 
       
    66 BUILD_32 += $(BUILD_OLD_DIR_32)/.built
       
    67 BUILD_64 += $(BUILD_OLD_DIR_64)/.built
       
    68 
       
    69 INSTALL_32 += $(BUILD_OLD_DIR_32)/.installed
       
    70 INSTALL_64 += $(BUILD_OLD_DIR_64)/.installed
       
    71 
       
    72 # install the old version first
       
    73 $(BUILD_DIR_32)/.installed:	$(BUILD_OLD_DIR_32)/.installed
       
    74 $(BUILD_DIR_64)/.installed:	$(BUILD_OLD_DIR_64)/.installed
       
    75 
       
    76 # we need to prep the old version too (this should be handled in prep.mk)
       
    77 $(SOURCE_DIR_1)/.unpacked:        download Makefile $(PATCHES)
       
    78 	$(RM) -r $(SOURCE_DIR_1)
       
    79 	$(UNPACK) $(UNPACK_ARGS) $(COMPONENT_ARCHIVE_1)
       
    80 	$(TOUCH) [email protected]
       
    81 
       
    82 # prep the old version first
       
    83 $(SOURCE_DIR)/.prep:	$(SOURCE_DIR_1)/.prep
       
    84 
       
    85 $(SOURCE_DIR_1)/.prep:        $(SOURCE_DIR_1)/.unpacked
       
    86 	$(TOUCH) [email protected]
       
    87 
       
    88 prep::	$(SOURCE_DIR_1)/.prep
       
    89 
    44 
    90 
    45 # common targets
    91 # common targets
    46 build:		$(BUILD_32_and_64)
    92 build:		$(BUILD_32_and_64)
    47 
    93 
    48 install:	$(INSTALL_32_and_64)
    94 install:	$(INSTALL_32_and_64)