components/quilt/Makefile
changeset 327 b3a36ee93012
child 609 775168282b2f
equal deleted inserted replaced
326:36f3560adf05 327:b3a36ee93012
       
     1 #
       
     2 # CDDL HEADER START
       
     3 #
       
     4 # The contents of this file are subject to the terms of the
       
     5 # Common Development and Distribution License (the "License").
       
     6 # You may not use this file except in compliance with the License.
       
     7 #
       
     8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
     9 # or http://www.opensolaris.org/os/licensing.
       
    10 # See the License for the specific language governing permissions
       
    11 # and limitations under the License.
       
    12 #
       
    13 # When distributing Covered Code, include this CDDL HEADER in each
       
    14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    15 # If applicable, add the following below this CDDL HEADER, with the
       
    16 # fields enclosed by brackets "[]" replaced with your own identifying
       
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
       
    18 #
       
    19 # CDDL HEADER END
       
    20 #
       
    21 
       
    22 #
       
    23 # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 
       
    26 include ../../make-rules/shared-macros.mk
       
    27 
       
    28 COMPONENT_NAME=		quilt
       
    29 COMPONENT_VERSION=	0.47
       
    30 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    31 COMPONENT_PROJECT_URL=	http://savannah.nongnu.org/projects/quilt
       
    32 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
       
    33 COMPONENT_ARCHIVE_HASH=	sha1:028dadd5ab60b1df12edd18af600e59fe0a83525
       
    34 COMPONENT_ARCHIVE_URL=	http://download.savannah.gnu.org/releases/quilt/$(COMPONENT_ARCHIVE)
       
    35 
       
    36 include ../../make-rules/prep.mk
       
    37 include ../../make-rules/configure.mk
       
    38 include ../../make-rules/ips.mk
       
    39 
       
    40 COMPONENT_PRE_CONFIGURE_ACTION = \
       
    41     ($(CLONEY) $(SOURCE_DIR) $(@D))
       
    42 
       
    43 COMPONENT_PREP_ACTION = \
       
    44     (cd $(@D) ; autoconf )
       
    45 
       
    46 PATCH_LEVEL=	0
       
    47 
       
    48 # without this, some make messages end up in the
       
    49 # generated README and man pages.
       
    50 COMPONENT_BUILD_ARGS+=	--no-print-directory
       
    51 
       
    52 # Quilt will need this option until Solaris has GNU getopt.
       
    53 CONFIGURE_OPTIONS += --without-getopt
       
    54 
       
    55 CONFIGURE_OPTIONS += --with-cp=/usr/gnu/bin/cp
       
    56 CONFIGURE_OPTIONS += --with-date=/usr/gnu/bin/date
       
    57 CONFIGURE_OPTIONS += --with-grep=/usr/gnu/bin/grep
       
    58 CONFIGURE_OPTIONS += --with-tail=/usr/gnu/bin/tail
       
    59 CONFIGURE_OPTIONS += --with-tr=/usr/gnu/bin/tr
       
    60 CONFIGURE_OPTIONS += --with-sed=/usr/gnu/bin/sed
       
    61 CONFIGURE_OPTIONS += --with-diff=/usr/gnu/bin/diff
       
    62 CONFIGURE_OPTIONS += --with-patch=/usr/gnu/bin/patch
       
    63 CONFIGURE_OPTIONS += --with-perl=/usr/perl5/$(PERL_VERSION)/bin/perl
       
    64 CONFIGURE_OPTIONS += --with-pod2man=/usr/perl5/$(PERL_VERSION)/bin/pod2man
       
    65 CONFIGURE_OPTIONS += --with-xgettext=/usr/bin/gxgettext
       
    66 CONFIGURE_OPTIONS += --with-msgfmt=/usr/bin/gmsgfmt
       
    67 
       
    68 CONFIGURE_OPTIONS  +=	CFLAGS="$(CFLAGS)"
       
    69 
       
    70 COMPONENT_INSTALL_ARGS +=	BUILD_ROOT=$(PROTO_DIR)
       
    71 
       
    72 
       
    73 # common targets
       
    74 build:		$(BUILD_32)
       
    75 
       
    76 install:	$(INSTALL_32)
       
    77 
       
    78 test:		$(TEST_32)
       
    79 
       
    80 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
       
    81 
       
    82 include ../../make-rules/depend.mk