Makefile revision 3477
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci#
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci# CDDL HEADER START
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci#
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci# The contents of this file are subject to the terms of the
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci# Common Development and Distribution License (the "License").
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci# You may not use this file except in compliance with the License.
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci#
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci# or http://www.opensolaris.org/os/licensing.
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci# See the License for the specific language governing permissions
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci# and limitations under the License.
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci#
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci# When distributing Covered Code, include this CDDL HEADER in each
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci# If applicable, add the following below this CDDL HEADER, with the
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci# fields enclosed by brackets "[]" replaced with your own identifying
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci# information: Portions Copyright [yyyy] [name of copyright owner]
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci#
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci# CDDL HEADER END
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci#
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci#
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucciinclude ../../../make-rules/shared-macros.mk
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucciCOMPONENT_NAME= foomatic-db-engine
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucciCOMPONENT_VERSION= 3.0-20080903
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucciCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucciCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucciCOMPONENT_ARCHIVE_HASH= \
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci sha256:668f2020eb136359523090cc17151e6aad0c56bce0e4ae91217a9eba19eec917
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucciCOMPONENT_ARCHIVE_URL= $(EXTERNAL_ARCHIVE_MIRROR)/$(COMPONENT_ARCHIVE)
d5ef50bb5810983012435957be0680bde34d1e44fuankgCOMPONENT_PROJECT_URL= http://www.linuxfoundation.org/collaborate/workgroups/openprinting/database/foomatic/
d5ef50bb5810983012435957be0680bde34d1e44fuankgCOMPONENT_BUGDB= utility/foomatic
d5ef50bb5810983012435957be0680bde34d1e44fuankg
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucciTPNO= 6399
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucciinclude ../../../make-rules/prep.mk
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucciinclude ../../../make-rules/configure.mk
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucciinclude ../../../make-rules/ips.mk
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucciCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucciCONFIGURE_OPTIONS += PERL=$(PERL)
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucciCONFIGURE_OPTIONS += FILEUTIL=/bin/true
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucciCONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/gnu
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci# the build system does not support building outside of the source tree
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucciCOMPONENT_PRE_CONFIGURE_ACTION = $(CLONEY) $(SOURCE_DIR) $(@D) ;
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci# setup perl build
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucciCOMPONENT_PRE_CONFIGURE_ACTION += cd $(@D)/lib ; $(PERL) Makefile.PL
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci# install perl modules
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucciCOMPONENT_PRE_INSTALL_ACTION = \
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci ( cd $(@D)/lib ; $(GMAKE) install_vendor DESTDIR=$(PROTO_DIR) )
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci# the perl .packlist contains the path to the file as built rather than
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci# as installed. Fix to be installed path, ie remove PROTO_DIR.
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucciVENDORARCH= $(shell $(PERL) -e 'use Config; print $$Config{vendorarch}')
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucciPACKLIST= $(VENDORARCH)/auto/Foomatic/.packlist
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucciCOMPONENT_POST_INSTALL_ACTION = \
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci sed -e "s/$(subst /,\\/,$(PROTO_DIR))//g" $(PROTO_DIR)/$(PACKLIST) \
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci >> $(PROTO_DIR)/$(PACKLIST).fixed ; \
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci $(MV) $(PROTO_DIR)/$(PACKLIST).fixed $(PROTO_DIR)/$(PACKLIST)
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci# common targets
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucciconfigure: $(CONFIGURE_32)
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgolluccibuild: $(BUILD_32)
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucciinstall: $(INSTALL_32)
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgolluccitest: $(NO_TESTS)
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucciBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucciinclude ../../../make-rules/depend.mk
f6ebc4d280b727f6f35e44323d7a88b02f22d3e9pgollucci