Makefile revision 864
5cd4555ad444fd391002ae32450572054369fd42Rob Austein#
5cd4555ad444fd391002ae32450572054369fd42Rob Austein# CDDL HEADER START
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
689023771c563d8660e45d439a207e06e96de28fMark Andrews# The contents of this file are subject to the terms of the
1da14e066c23245c255dedb311d5a9cf0e5bb667Automatic Updater# Common Development and Distribution License (the "License").
689023771c563d8660e45d439a207e06e96de28fMark Andrews# You may not use this file except in compliance with the License.
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater#
689023771c563d8660e45d439a207e06e96de28fMark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
689023771c563d8660e45d439a207e06e96de28fMark Andrews# or http://www.opensolaris.org/os/licensing.
689023771c563d8660e45d439a207e06e96de28fMark Andrews# See the License for the specific language governing permissions
689023771c563d8660e45d439a207e06e96de28fMark Andrews# and limitations under the License.
689023771c563d8660e45d439a207e06e96de28fMark Andrews#
689023771c563d8660e45d439a207e06e96de28fMark Andrews# When distributing Covered Code, include this CDDL HEADER in each
689023771c563d8660e45d439a207e06e96de28fMark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
689023771c563d8660e45d439a207e06e96de28fMark Andrews# If applicable, add the following below this CDDL HEADER, with the
689023771c563d8660e45d439a207e06e96de28fMark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
689023771c563d8660e45d439a207e06e96de28fMark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
689023771c563d8660e45d439a207e06e96de28fMark Andrews#
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews# CDDL HEADER END
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews#
689023771c563d8660e45d439a207e06e96de28fMark Andrews
689023771c563d8660e45d439a207e06e96de28fMark Andrews#
689023771c563d8660e45d439a207e06e96de28fMark Andrews# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
689023771c563d8660e45d439a207e06e96de28fMark Andrews#
689023771c563d8660e45d439a207e06e96de28fMark Andrews
689023771c563d8660e45d439a207e06e96de28fMark Andrewsinclude ../../make-rules/shared-macros.mk
689023771c563d8660e45d439a207e06e96de28fMark Andrews
689023771c563d8660e45d439a207e06e96de28fMark AndrewsPATH = /usr/gnu/bin:/usr/bin
689023771c563d8660e45d439a207e06e96de28fMark Andrews
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCOMPONENT_NAME= quilt
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCOMPONENT_VERSION= 0.60
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCOMPONENT_PROJECT_URL= http://savannah.nongnu.org/projects/quilt/
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCOMPONENT_ARCHIVE_HASH= \
689023771c563d8660e45d439a207e06e96de28fMark Andrews sha256:3d72a292e432beb9a73f9d0acfe3a77c9b4d7e42209919bb244e9958c7cfe64b
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_ARCHIVE_URL= http://download.savannah.gnu.org/releases/quilt/$(COMPONENT_ARCHIVE)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude ../../make-rules/prep.mk
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude ../../make-rules/configure.mk
acb4f5236966c2b680b949c1eda826948b24fc23Mark Andrewsinclude ../../make-rules/ips.mk
c1a883f2e04d94e99c433b1f6cfd0c0338f4ed85Mark Andrews
1da14e066c23245c255dedb311d5a9cf0e5bb667Automatic UpdaterCOMPONENT_PRE_CONFIGURE_ACTION = \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein ($(CLONEY) $(SOURCE_DIR) $(@D))
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_PREP_ACTION = \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein (cd $(@D) ; autoconf )
689023771c563d8660e45d439a207e06e96de28fMark Andrews
689023771c563d8660e45d439a207e06e96de28fMark AndrewsPATCH_LEVEL= 0
689023771c563d8660e45d439a207e06e96de28fMark Andrews
689023771c563d8660e45d439a207e06e96de28fMark Andrews# without this, some make messages end up in the
689023771c563d8660e45d439a207e06e96de28fMark Andrews# generated README and man pages.
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCOMPONENT_BUILD_ARGS+= --no-print-directory
689023771c563d8660e45d439a207e06e96de28fMark Andrews
689023771c563d8660e45d439a207e06e96de28fMark Andrews# Quilt will need this option until Solaris has GNU getopt.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_OPTIONS += --without-getopt
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_OPTIONS += --with-cp=/usr/gnu/bin/cp
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_OPTIONS += --with-date=/usr/gnu/bin/date
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_OPTIONS += --with-grep=/usr/gnu/bin/grep
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_OPTIONS += --with-tail=/usr/gnu/bin/tail
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCONFIGURE_OPTIONS += --with-tr=/usr/gnu/bin/tr
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCONFIGURE_OPTIONS += --with-sed=/usr/gnu/bin/sed
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_OPTIONS += --with-diff=/usr/gnu/bin/diff
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCONFIGURE_OPTIONS += --with-find=/usr/gnu/bin/find
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCONFIGURE_OPTIONS += --with-patch=/usr/gnu/bin/patch
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_OPTIONS += --with-perl=/usr/perl5/$(PERL_VERSION)/bin/perl
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCONFIGURE_OPTIONS += --with-pod2man=/usr/perl5/$(PERL_VERSION)/bin/pod2man
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCONFIGURE_OPTIONS += --with-xgettext=/usr/bin/gxgettext
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_OPTIONS += --with-msgfmt=/usr/bin/gmsgfmt
689023771c563d8660e45d439a207e06e96de28fMark Andrews
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
689023771c563d8660e45d439a207e06e96de28fMark Andrews
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_INSTALL_ARGS += BUILD_ROOT=$(PROTO_DIR)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
689023771c563d8660e45d439a207e06e96de28fMark Andrews# common targets
689023771c563d8660e45d439a207e06e96de28fMark Andrewsbuild: $(BUILD_32)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininstall: $(INSTALL_32)
689023771c563d8660e45d439a207e06e96de28fMark Andrews
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeintest: $(TEST_32)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
689023771c563d8660e45d439a207e06e96de28fMark Andrews
689023771c563d8660e45d439a207e06e96de28fMark Andrewsinclude ../../make-rules/depend.mk
689023771c563d8660e45d439a207e06e96de28fMark Andrews