components/indent/Makefile
changeset 5682 94c0ca64c022
parent 4737 844cca6e99f3
child 6368 16a591f04186
equal deleted inserted replaced
5681:b8fe51f35344 5682:94c0ca64c022
    15 # If applicable, add the following below this CDDL HEADER, with the
    15 # If applicable, add the following below this CDDL HEADER, with the
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
       
    20 #
    20 
    21 
    21 #
    22 #
    22 # Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
    23 #
    24 #
    24 
    25 BUILD_BITS= 64
    25 include ../../make-rules/shared-macros.mk
    26 include ../../make-rules/shared-macros.mk
    26 
    27 
    27 COMPONENT_NAME=		indent
    28 COMPONENT_NAME=		indent
    28 COMPONENT_VERSION=	2.2.9
    29 COMPONENT_VERSION=	2.2.9
    29 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    30 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
       
    31 COMPONENT_PROJECT_URL=  https://www.gnu.org/software/indent/
       
    32 COMPONENT_ARCHIVE_HASH=	\
    30 COMPONENT_ARCHIVE_HASH=	\
    33     sha256:0b9387bda5639ed54cf91bd607ab055624a07414f7f6882a75be97fd776ce466
    31     sha256:0b9387bda5639ed54cf91bd607ab055624a07414f7f6882a75be97fd776ce466
    34 COMPONENT_ARCHIVE_URL=	ftp://ftp.gnu.org/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
       
    35 COMPONENT_BUGDB=	utility/gnu-indent
    32 COMPONENT_BUGDB=	utility/gnu-indent
    36 
    33 
    37 TPNO=			12225
    34 TPNO=			12225
    38 
    35 
    39 include $(WS_MAKE_RULES)/prep.mk
    36 TEST_TARGET= install $(TEST_64)
    40 include $(WS_MAKE_RULES)/configure.mk
    37 SYSTEM_TEST_TARGET= configure $(SYSTEM_TEST_64)
    41 include $(WS_MAKE_RULES)/ips.mk
    38 include $(WS_MAKE_RULES)/gnu-component.mk
    42 
    39 
    43 # Needed to get "gmake test" working.
    40 # Needed to get "gmake test" working.
    44 COMPONENT_PRE_CONFIGURE_ACTION =	($(CLONEY) $(SOURCE_DIR) $(@D))
    41 COMPONENT_PRE_CONFIGURE_ACTION =	($(CLONEY) $(SOURCE_DIR) $(@D))
    45 
    42 
    46 CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
       
    47 CONFIGURE_OPTIONS +=	--infodir=$(CONFIGURE_INFODIR)
    43 CONFIGURE_OPTIONS +=	--infodir=$(CONFIGURE_INFODIR)
    48 
    44 
    49 COMPONENT_TEST_TRANSFORMS += \
    45 COMPONENT_TEST_TRANSFORMS += \
    50 	'-e "s|^make.*: Leaving directory.*$$|XXX_CC_XXX|g" ' \
    46 	'-e "s|^make.*: Leaving directory.*$$|XXX_CC_XXX|g" ' \
    51 	'-e "s|^make.*: Entering directory.*$$|XXX_CC_XXX|g" ' \
    47 	'-e "s|^make.*: Entering directory.*$$|XXX_CC_XXX|g" ' \
    52 	'-e "/^XXX_CC_XXX$$/d" '
    48 	'-e "/^XXX_CC_XXX$$/d" '
    53 
    49 
    54 COMPONENT_TEST_DIR =		$(@D)/regression
    50 COMPONENT_TEST_DIR =		$(@D)/regression
    55 # Need to put /usr/gnu/bin at the front of $PATH for GNU diff.
    51 # Need to put /usr/gnu/bin at the front of $PATH for GNU diff.
    56 COMPONENT_TEST_CMD =		./TEST
    52 COMPONENT_TEST_CMD =		./TEST
    57 COMPONENT_TEST_ENV +=		PATH=$(GNUBIN):/usr/bin
    53 COMPONENT_TEST_ENV +=		PATH=$(GNUBIN):$(USRBINDIR)
    58 COMPONENT_TEST_TARGETS =
    54 COMPONENT_TEST_TARGETS =
    59 
    55 
    60 COMPONENT_SYSTEM_TEST_DIR =	$(@D)/regression
    56 COMPONENT_SYSTEM_TEST_DIR =	$(@D)/regression
    61 COMPONENT_SYSTEM_TEST_CMD =	./TEST
    57 COMPONENT_SYSTEM_TEST_CMD =	./TEST
    62 # Need to put /usr/gnu/bin at the front of $PATH for GNU diff.
    58 # Need to put /usr/gnu/bin at the front of $PATH for GNU diff.
    63 COMPONENT_SYSTEM_TEST_ENV +=	PATH=$(GNUBIN):/usr/bin
    59 COMPONENT_SYSTEM_TEST_ENV +=	PATH=$(GNUBIN):$(USRBINDIR)
    64 COMPONENT_SYSTEM_TEST_ENV +=	INDENT_BIN=/usr/bin/indent
    60 COMPONENT_SYSTEM_TEST_ENV +=	INDENT_BIN=$(USRBINDIR)/indent
    65 COMPONENT_SYSTEM_TEST_TARGETS =
    61 COMPONENT_SYSTEM_TEST_TARGETS =
    66 
       
    67 ASLR_MODE = $(ASLR_ENABLE)
       
    68 
       
    69 configure:	$(CONFIGURE_64)
       
    70 
       
    71 build:		$(BUILD_64)
       
    72 
       
    73 install:	$(INSTALL_64)
       
    74 
       
    75 test:		install $(TEST_64)
       
    76 
       
    77 system-test:	configure $(SYSTEM_TEST_64)
       
    78 
       
    79 REQUIRED_PACKAGES += system/library