components/quilt/Makefile
changeset 5682 94c0ca64c022
parent 5638 b88b6c00208e
child 7687 1093e2a9adbd
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 include ../../make-rules/shared-macros.mk
    26 include ../../make-rules/shared-macros.mk
    27 
    27 
    28 PATH = /usr/gnu/bin:/usr/bin
    28 PATH = $(GNUBIN):$(USRBINDIR)
    29 
    29 
    30 COMPONENT_NAME=		quilt
    30 COMPONENT_NAME=		quilt
    31 COMPONENT_VERSION=	0.64
    31 COMPONENT_VERSION=	0.64
    32 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    33 COMPONENT_PROJECT_URL=	http://savannah.nongnu.org/projects/quilt/
    32 COMPONENT_PROJECT_URL=	http://savannah.nongnu.org/projects/quilt/
    34 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
       
    35 COMPONENT_ARCHIVE_HASH=	\
    33 COMPONENT_ARCHIVE_HASH=	\
    36     sha256:c4bfd3282214a288e8d3e921ae4d52e73e24c4fead72b5446752adee99a7affd
    34     sha256:c4bfd3282214a288e8d3e921ae4d52e73e24c4fead72b5446752adee99a7affd
    37 COMPONENT_ARCHIVE_URL=	http://download.savannah.gnu.org/releases/quilt/$(COMPONENT_ARCHIVE)
    35 COMPONENT_ARCHIVE_URL=	http://download.savannah.gnu.org/releases/quilt/$(COMPONENT_ARCHIVE)
    38 COMPONENT_BUGDB=	utility/quilt
       
    39 
    36 
    40 TPNO=			21555
    37 TPNO=			21555
    41 
    38 
    42 include $(WS_MAKE_RULES)/prep.mk
    39 SYSTEM_TEST_TARGET= configure $(SYSTEM_TEST_64)
    43 include $(WS_MAKE_RULES)/configure.mk
    40 include $(WS_MAKE_RULES)/common.mk
    44 include $(WS_MAKE_RULES)/ips.mk
       
    45 
    41 
    46 COMPONENT_PRE_CONFIGURE_ACTION = \
    42 COMPONENT_PRE_CONFIGURE_ACTION = \
    47     ($(CLONEY) $(SOURCE_DIR) $(@D))
    43     ($(CLONEY) $(SOURCE_DIR) $(@D))
    48 
    44 
    49 COMPONENT_PREP_ACTION = \
    45 COMPONENT_PREP_ACTION = \
    53 
    49 
    54 # without this, some make messages end up in the
    50 # without this, some make messages end up in the
    55 # generated README and man pages.
    51 # generated README and man pages.
    56 COMPONENT_BUILD_ARGS+=	--no-print-directory
    52 COMPONENT_BUILD_ARGS+=	--no-print-directory
    57 
    53 
    58 CONFIGURE_OPTIONS += --with-column=/usr/bin/column
    54 PERLBINDIR= $(USRDIR)/perl5/$(PERL_VERSION)/bin
    59 CONFIGURE_OPTIONS += --with-cp=/usr/gnu/bin/cp
       
    60 CONFIGURE_OPTIONS += --with-date=/usr/gnu/bin/date
       
    61 CONFIGURE_OPTIONS += --with-getopt=/usr/gnu/bin/getopt
       
    62 CONFIGURE_OPTIONS += --with-grep=/usr/gnu/bin/grep
       
    63 CONFIGURE_OPTIONS += --with-tail=/usr/gnu/bin/tail
       
    64 CONFIGURE_OPTIONS += --with-tr=/usr/gnu/bin/tr
       
    65 CONFIGURE_OPTIONS += --with-sed=/usr/gnu/bin/sed
       
    66 CONFIGURE_OPTIONS += --with-diff=/usr/gnu/bin/diff
       
    67 CONFIGURE_OPTIONS += --with-find=/usr/gnu/bin/find
       
    68 CONFIGURE_OPTIONS += --with-patch=/usr/gnu/bin/patch
       
    69 CONFIGURE_OPTIONS += --with-perl=/usr/perl5/$(PERL_VERSION)/bin/perl
       
    70 CONFIGURE_OPTIONS += --with-pod2man=/usr/perl5/$(PERL_VERSION)/bin/pod2man
       
    71 CONFIGURE_OPTIONS += --with-xgettext=/usr/bin/gxgettext
       
    72 CONFIGURE_OPTIONS += --with-msgfmt=/usr/bin/gmsgfmt
       
    73 
    55 
    74 CONFIGURE_OPTIONS  +=	CFLAGS="$(CFLAGS)"
    56 CONFIGURE_OPTIONS += --with-column=$(USRBINDIR)/column
       
    57 CONFIGURE_OPTIONS += --with-cp=$(GNUBIN)/cp
       
    58 CONFIGURE_OPTIONS += --with-date=$(GNUBIN)/date
       
    59 CONFIGURE_OPTIONS += --with-getopt=$(GNUBIN)/getopt
       
    60 CONFIGURE_OPTIONS += --with-grep=$(GNUBIN)/grep
       
    61 CONFIGURE_OPTIONS += --with-tail=$(GNUBIN)/tail
       
    62 CONFIGURE_OPTIONS += --with-tr=$(GNUBIN)/tr
       
    63 CONFIGURE_OPTIONS += --with-sed=$(GNUBIN)/sed
       
    64 CONFIGURE_OPTIONS += --with-diff=$(GNUBIN)/diff
       
    65 CONFIGURE_OPTIONS += --with-find=$(GNUBIN)/find
       
    66 CONFIGURE_OPTIONS += --with-patch=$(GNUBIN)/patch
       
    67 CONFIGURE_OPTIONS += --with-perl=$(PERLBINDIR)/perl
       
    68 CONFIGURE_OPTIONS += --with-pod2man=$(PERLBINDIR)/pod2man
       
    69 CONFIGURE_OPTIONS += --with-xgettext=$(USRBINDIR)/gxgettext
       
    70 CONFIGURE_OPTIONS += --with-msgfmt=$(USRBINDIR)/gmsgfmt
    75 
    71 
    76 COMPONENT_INSTALL_ARGS +=	BUILD_ROOT=$(PROTO_DIR)
    72 COMPONENT_INSTALL_ARGS +=	BUILD_ROOT=$(PROTO_DIR)
    77 
    73 
    78 COMPONENT_TEST_TRANSFORMS += \
    74 COMPONENT_TEST_TRANSFORMS += \
    79 	'-e "s|^.* -> .*$$|XXX_REMOVE_XXX|g" ' \
    75 	'-e "s|^.* -> .*$$|XXX_REMOVE_XXX|g" ' \
    81 	'-e "s|^make.*: Leaving directory.*$$|XXX_REMOVE_XXX|g" ' \
    77 	'-e "s|^make.*: Leaving directory.*$$|XXX_REMOVE_XXX|g" ' \
    82 	'-e "s|^make.*: Entering directory.*$$|XXX_REMOVE_XXX|g" ' \
    78 	'-e "s|^make.*: Entering directory.*$$|XXX_REMOVE_XXX|g" ' \
    83 	'-e "/^XXX_REMOVE_XXX$$/d" '
    79 	'-e "/^XXX_REMOVE_XXX$$/d" '
    84 
    80 
    85 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
    81 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
    86 
       
    87 configure:	$(CONFIGURE_64)
       
    88 
       
    89 build:		$(BUILD_64)
       
    90 
       
    91 install:	$(INSTALL_64)
       
    92 
       
    93 test:		$(TEST_64)
       
    94 
       
    95 system-test:    configure $(SYSTEM_TEST_64)
       
    96 
       
    97 
    82 
    98 REQUIRED_PACKAGES += archiver/gnu-tar
    83 REQUIRED_PACKAGES += archiver/gnu-tar
    99 REQUIRED_PACKAGES += file/gnu-coreutils
    84 REQUIRED_PACKAGES += file/gnu-coreutils
   100 REQUIRED_PACKAGES += file/gnu-findutils
    85 REQUIRED_PACKAGES += file/gnu-findutils
   101 REQUIRED_PACKAGES += $(PERL_PKG)
    86 REQUIRED_PACKAGES += $(PERL_PKG)