components/diffutils/Makefile
changeset 5682 94c0ca64c022
parent 5453 12788f3c6c43
child 6605 e78549f380cd
equal deleted inserted replaced
5681:b8fe51f35344 5682:94c0ca64c022
    20 #
    20 #
    21 
    21 
    22 #
    22 #
    23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
    24 #
    24 #
    25 
    25 BUILD_BITS= 64
    26 COMPILER=		gcc
    26 COMPILER= gcc
    27 
       
    28 include ../../make-rules/shared-macros.mk
    27 include ../../make-rules/shared-macros.mk
    29 
    28 
    30 COMPONENT_NAME=		diffutils
    29 COMPONENT_NAME=		diffutils
    31 COMPONENT_VERSION=	3.3
    30 COMPONENT_VERSION=	3.3
    32 COMPONENT_PROJECT_URL=	http://www.gnu.org/software/diffutils/
       
    33 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    34 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.xz
    31 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.xz
    35 COMPONENT_ARCHIVE_HASH=	\
    32 COMPONENT_ARCHIVE_HASH=	\
    36     sha256:a25e89a8ab65fded1731e4186be1bb25cda967834b6df973599cdcd5abdfc19c
    33     sha256:a25e89a8ab65fded1731e4186be1bb25cda967834b6df973599cdcd5abdfc19c
    37 COMPONENT_ARCHIVE_URL=	http://ftp.gnu.org/gnu/diffutils/$(COMPONENT_ARCHIVE)
       
    38 COMPONENT_BUGDB=	utility/gnu-diffutils
    34 COMPONENT_BUGDB=	utility/gnu-diffutils
    39 
    35 
    40 TPNO=			21995
    36 TPNO=			21995
    41 
    37 
    42 include $(WS_MAKE_RULES)/prep.mk
    38 SYSTEM_TEST_TARGET= configure $(SYSTEM_TEST_64)
    43 include $(WS_MAKE_RULES)/configure.mk
    39 include $(WS_MAKE_RULES)/gnu-component.mk
    44 include $(WS_MAKE_RULES)/ips.mk
       
    45 
    40 
    46 COMPONENT_PREP_ACTION =		(cd $(@D) ; autoreconf -f)
    41 COMPONENT_PREP_ACTION =		(cd $(@D) ; autoreconf -f)
    47 
    42 
       
    43 CONFIGURE_PREFIX= $(USRGNUDIR)
    48 CONFIGURE_OPTIONS  +=		--infodir=$(CONFIGURE_INFODIR)
    44 CONFIGURE_OPTIONS  +=		--infodir=$(CONFIGURE_INFODIR)
    49 CONFIGURE_OPTIONS  +=		CFLAGS="$(CFLAGS)"
    45 CONFIGURE_OPTIONS  +=		--localedir=$(USRSHARELOCALEDIR)
    50 
    46 
    51 # Needed for "gmake test" to work successfully.
    47 # Needed for "gmake test" to work successfully.
    52 # If SHELLOPTS is exported (as it is by the userland makefiles),
    48 # If SHELLOPTS is exported (as it is by the userland makefiles),
    53 # then all shell options get exported to child invocations of bash,
    49 # then all shell options get exported to child invocations of bash,
    54 # which results in test failures due to nounset and xtrace being
    50 # which results in test failures due to nounset and xtrace being
    66 	'-e "/^XXX_CC_XXX$$/d" '
    62 	'-e "/^XXX_CC_XXX$$/d" '
    67 
    63 
    68 COMPONENT_SYSTEM_TEST_DIR =	$(@D)/tests
    64 COMPONENT_SYSTEM_TEST_DIR =	$(@D)/tests
    69 COMPONENT_SYSTEM_TEST_ENV +=	PATH="$(GNUBIN):$(PATH)"
    65 COMPONENT_SYSTEM_TEST_ENV +=	PATH="$(GNUBIN):$(PATH)"
    70 
    66 
    71 ASLR_MODE = $(ASLR_ENABLE)
       
    72 
       
    73 configure:	$(CONFIGURE_64)
       
    74 
       
    75 build:		$(BUILD_64)
       
    76 
       
    77 install:	$(INSTALL_64)
       
    78 
       
    79 test:		$(TEST_64)
       
    80 
       
    81 system-test:    configure $(SYSTEM_TEST_64)
       
    82 
       
    83 
       
    84 REQUIRED_PACKAGES += library/libsigsegv
    67 REQUIRED_PACKAGES += library/libsigsegv
    85 REQUIRED_PACKAGES += system/library
    68 REQUIRED_PACKAGES += system/library