Makefile revision 1273
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync#
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync# CDDL HEADER START
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync#
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync# The contents of this file are subject to the terms of the
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync# Common Development and Distribution License (the "License").
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync# You may not use this file except in compliance with the License.
a163c02a5324a325ea0e0308ca67c508468cdaa5vboxsync#
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync# or http://www.opensolaris.org/os/licensing.
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync# See the License for the specific language governing permissions
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync# and limitations under the License.
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync#
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync# When distributing Covered Code, include this CDDL HEADER in each
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync# If applicable, add the following below this CDDL HEADER, with the
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync# fields enclosed by brackets "[]" replaced with your own identifying
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync#
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync# CDDL HEADER END
fa3de3bd9a878a05615ed56a8b894773631d3255vboxsync#
fa3de3bd9a878a05615ed56a8b894773631d3255vboxsync# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
fa3de3bd9a878a05615ed56a8b894773631d3255vboxsync#
fa3de3bd9a878a05615ed56a8b894773631d3255vboxsyncinclude ../../../make-rules/shared-macros.mk
fa3de3bd9a878a05615ed56a8b894773631d3255vboxsync
fa3de3bd9a878a05615ed56a8b894773631d3255vboxsyncCOMPONENT_NAME= foomatic-db-engine
fa3de3bd9a878a05615ed56a8b894773631d3255vboxsyncCOMPONENT_VERSION= 3.0-20080903
fa3de3bd9a878a05615ed56a8b894773631d3255vboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
fa3de3bd9a878a05615ed56a8b894773631d3255vboxsyncCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
f5e3c0941f5d05e51ebc89fb5bb743ce971ad966vboxsyncCOMPONENT_ARCHIVE_HASH= \
2284808ae4f8f30c11d68ef1c354e2b9c6405469vboxsync sha256:668f2020eb136359523090cc17151e6aad0c56bce0e4ae91217a9eba19eec917
fa3de3bd9a878a05615ed56a8b894773631d3255vboxsyncCOMPONENT_ARCHIVE_URL= $(EXTERNAL_ARCHIVE_MIRROR)/$(COMPONENT_ARCHIVE)
fa3de3bd9a878a05615ed56a8b894773631d3255vboxsyncCOMPONENT_PROJECT_URL= http://www.linuxfoundation.org/collaborate/workgroups/openprinting/database/foomatic/
fa3de3bd9a878a05615ed56a8b894773631d3255vboxsyncCOMPONENT_BUGDB= utility/foomatic
5ba3a75852271a71781327c8a7f726acc026594avboxsync
fa3de3bd9a878a05615ed56a8b894773631d3255vboxsyncinclude ../../../make-rules/prep.mk
fa3de3bd9a878a05615ed56a8b894773631d3255vboxsyncinclude ../../../make-rules/configure.mk
fa3de3bd9a878a05615ed56a8b894773631d3255vboxsyncinclude ../../../make-rules/ips.mk
5ba3a75852271a71781327c8a7f726acc026594avboxsync
5ba3a75852271a71781327c8a7f726acc026594avboxsyncCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
fa3de3bd9a878a05615ed56a8b894773631d3255vboxsyncCONFIGURE_OPTIONS += PERL=$(PERL)
fa3de3bd9a878a05615ed56a8b894773631d3255vboxsyncCONFIGURE_OPTIONS += FILEUTIL=/bin/true
fa3de3bd9a878a05615ed56a8b894773631d3255vboxsync
fa3de3bd9a878a05615ed56a8b894773631d3255vboxsync# the build system does not support building outside of the source tree
ad27e1d5e48ca41245120c331cc88b50464813cevboxsyncCOMPONENT_PRE_CONFIGURE_ACTION = $(CLONEY) $(SOURCE_DIR) $(@D) ;
fa3de3bd9a878a05615ed56a8b894773631d3255vboxsync
5ba3a75852271a71781327c8a7f726acc026594avboxsync# setup perl build
fa3de3bd9a878a05615ed56a8b894773631d3255vboxsyncCOMPONENT_PRE_CONFIGURE_ACTION += cd $(@D)/lib ; $(PERL) Makefile.PL
fa3de3bd9a878a05615ed56a8b894773631d3255vboxsync
fa3de3bd9a878a05615ed56a8b894773631d3255vboxsync# install perl modules
5ba3a75852271a71781327c8a7f726acc026594avboxsyncCOMPONENT_PRE_INSTALL_ACTION = \
fa3de3bd9a878a05615ed56a8b894773631d3255vboxsync ( cd $(@D)/lib ; $(GMAKE) install_vendor DESTDIR=$(PROTO_DIR) )
462e60a19d02a99b2b1a5c08dff74bb0808d707cvboxsync
462e60a19d02a99b2b1a5c08dff74bb0808d707cvboxsync# the perl .packlist contains the path to the file as built rather than
462e60a19d02a99b2b1a5c08dff74bb0808d707cvboxsync# as installed. Fix to be installed path, ie remove PROTO_DIR.
462e60a19d02a99b2b1a5c08dff74bb0808d707cvboxsyncVENDORARCH= $(shell $(PERL) -e 'use Config; print $$Config{vendorarch}')
ca0ee85505c252493a3ee53577848ef8939f991bvboxsyncPACKLIST= $(VENDORARCH)/auto/Foomatic/.packlist
ca0ee85505c252493a3ee53577848ef8939f991bvboxsyncCOMPONENT_POST_INSTALL_ACTION = \
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync sed -e "s/$(subst /,\\/,$(PROTO_DIR))//g" $(PROTO_DIR)/$(PACKLIST) \
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync >> $(PROTO_DIR)/$(PACKLIST).fixed ; \
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync $(MV) $(PROTO_DIR)/$(PACKLIST).fixed $(PROTO_DIR)/$(PACKLIST)
c55bf74b54ecdfb5ebc4e5d90b620d0fee31737evboxsync
c55bf74b54ecdfb5ebc4e5d90b620d0fee31737evboxsync
c55bf74b54ecdfb5ebc4e5d90b620d0fee31737evboxsync# common targets
c55bf74b54ecdfb5ebc4e5d90b620d0fee31737evboxsyncbuild: $(BUILD_32)
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync
ca0ee85505c252493a3ee53577848ef8939f991bvboxsyncinstall: $(INSTALL_32)
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync
ca0ee85505c252493a3ee53577848ef8939f991bvboxsynctest: $(NO_TESTS)
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync
ca0ee85505c252493a3ee53577848ef8939f991bvboxsyncBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync
ca0ee85505c252493a3ee53577848ef8939f991bvboxsyncinclude ../../../make-rules/depend.mk
462e60a19d02a99b2b1a5c08dff74bb0808d707cvboxsync