Makefile revision 886
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff#
2b43d1d8c508d7e7be388d85e8bf83ff0aed1e11Automatic Updater# CDDL HEADER START
fcb54ce0a4f7377486df5bec83b3aa4711bf4131Mark Andrews#
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# The contents of this file are subject to the terms of the
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# Common Development and Distribution License (the "License").
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff# You may not use this file except in compliance with the License.
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff#
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# or http://www.opensolaris.org/os/licensing.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# See the License for the specific language governing permissions
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff# fields enclosed by brackets "[]" replaced with your own identifying
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff# information: Portions Copyright [yyyy] [name of copyright owner]
743bbdc18f839499862e4fb28ec32f607b1632dcTatuya JINMEI 神明達哉#
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# CDDL HEADER END
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff#
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael Graff
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein#
c803787146cadcb2d7e10cbf4491f3be513dfa1aMichael Graff# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael Graff#
8cdfd17426179ae6f629a9b7475d46a22f535047Bob Halley
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael Graffinclude ../../make-rules/shared-macros.mk
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael Graff
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael GraffPATH = /usr/gnu/bin:/usr/bin
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff
66bd3b3c6b171271c705b897823dcdcf29464698Michael GraffCOMPONENT_NAME= quilt
058eeac2105c39e7cb31fb75ee0b473717ec3bbcMark AndrewsCOMPONENT_VERSION= 0.60
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid LawrenceCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
3024dbecbac365171bc6de0f3fa04951d6558be3Michael GraffCOMPONENT_PROJECT_URL= http://savannah.nongnu.org/projects/quilt/
5fca48054b5e791a2fa0c5015bc3b6fef4fcdce1Andreas GustafssonCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
f181f94ec8da8b1dbcc6353e8be965ea4a5ea282Michael GraffCOMPONENT_ARCHIVE_HASH= \
d9059b0c38bd630c367d81424d72b1308cd74b04Tatuya JINMEI 神明達哉 sha256:3d72a292e432beb9a73f9d0acfe3a77c9b4d7e42209919bb244e9958c7cfe64b
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael GraffCOMPONENT_ARCHIVE_URL= http://download.savannah.gnu.org/releases/quilt/$(COMPONENT_ARCHIVE)
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence
440be4c866f6935ac069db79a414304507a664c2Michael Graffinclude ../../make-rules/prep.mk
11fcc67616fac1bc6a28b3d4fed24641137888e7Michael Graffinclude ../../make-rules/configure.mk
e45d323a2a0f4ca08d4b139546e60a5fa7bd3f0cMichael Graffinclude ../../make-rules/ips.mk
29f28fe573d4b3b318b3b026d567c1eb86738015Michael Graff
86944a4c8002e80ae9b6eb5a5e29b797879be45fMichael GraffCOMPONENT_PRE_CONFIGURE_ACTION = \
21e7034ec046105c00a0dab86c83732e2e77ad99Michael Graff ($(CLONEY) $(SOURCE_DIR) $(@D))
e51511aa3281f8dc384eb1283115c7f8d5c402aeMichael Graff
e51511aa3281f8dc384eb1283115c7f8d5c402aeMichael GraffCOMPONENT_PREP_ACTION = \
d1cbf714097e900ed1703529584d3e1a50e8a4a8Brian Wellington (cd $(@D) ; autoconf )
bcf369e513a1cc2209e2a987f5772afa79813540Mark Andrews
11efdeb076d65fa9f0c5fc067dc040e7c99dfba6Michael GraffPATCH_LEVEL= 0
09f22ac5b09e70bc526015f37168ba33e21ea91fDavid Lawrence
8907d8fa04fdaa65baf0bc6b01230b2ebde93106Mark Andrews# without this, some make messages end up in the
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael Graff# generated README and man pages.
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael GraffCOMPONENT_BUILD_ARGS+= --no-print-directory
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff# Quilt will need this option until Solaris has GNU getopt.
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael GraffCONFIGURE_OPTIONS += --without-getopt
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff
31fab17bcdbe302592a6c0dc5374ef56333ee879Michael GraffCONFIGURE_OPTIONS += --with-cp=/usr/gnu/bin/cp
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael GraffCONFIGURE_OPTIONS += --with-date=/usr/gnu/bin/date
bcf369e513a1cc2209e2a987f5772afa79813540Mark AndrewsCONFIGURE_OPTIONS += --with-grep=/usr/gnu/bin/grep
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael GraffCONFIGURE_OPTIONS += --with-tail=/usr/gnu/bin/tail
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael GraffCONFIGURE_OPTIONS += --with-tr=/usr/gnu/bin/tr
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael GraffCONFIGURE_OPTIONS += --with-sed=/usr/gnu/bin/sed
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael GraffCONFIGURE_OPTIONS += --with-diff=/usr/gnu/bin/diff
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael GraffCONFIGURE_OPTIONS += --with-find=/usr/gnu/bin/find
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael GraffCONFIGURE_OPTIONS += --with-patch=/usr/gnu/bin/patch
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael GraffCONFIGURE_OPTIONS += --with-perl=/usr/perl5/$(PERL_VERSION)/bin/perl
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael GraffCONFIGURE_OPTIONS += --with-pod2man=/usr/perl5/$(PERL_VERSION)/bin/pod2man
8cdfd17426179ae6f629a9b7475d46a22f535047Bob HalleyCONFIGURE_OPTIONS += --with-xgettext=/usr/bin/gxgettext
8cdfd17426179ae6f629a9b7475d46a22f535047Bob HalleyCONFIGURE_OPTIONS += --with-msgfmt=/usr/bin/gmsgfmt
8cdfd17426179ae6f629a9b7475d46a22f535047Bob Halley
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael GraffCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff
3115cd89bc1e1fd3ecc4705d253e3484a3f5c555Michael GraffCOMPONENT_INSTALL_ARGS += BUILD_ROOT=$(PROTO_DIR)
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein
3115cd89bc1e1fd3ecc4705d253e3484a3f5c555Michael Graff
d947011dc393d9f9988d1349d585b246d19cc3c7Michael Graff# common targets
49a940dc68b30d9e4f9e1bd3c0503d8b90bb1726Mark Andrewsbuild: $(BUILD_32)
d947011dc393d9f9988d1349d585b246d19cc3c7Michael Graff
3115cd89bc1e1fd3ecc4705d253e3484a3f5c555Michael Graffinstall: $(INSTALL_32)
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Grafftest: $(TEST_32)
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael GraffBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graffinclude ../../make-rules/depend.mk
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff