Makefile revision 3661
431N/A#
431N/A# CDDL HEADER START
431N/A#
431N/A# The contents of this file are subject to the terms of the
431N/A# Common Development and Distribution License (the "License").
431N/A# You may not use this file except in compliance with the License.
431N/A#
431N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
431N/A# or http://www.opensolaris.org/os/licensing.
431N/A# See the License for the specific language governing permissions
431N/A# and limitations under the License.
431N/A#
431N/A# When distributing Covered Code, include this CDDL HEADER in each
431N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
431N/A# If applicable, add the following below this CDDL HEADER, with the
431N/A# fields enclosed by brackets "[]" replaced with your own identifying
431N/A# information: Portions Copyright [yyyy] [name of copyright owner]
431N/A#
431N/A# CDDL HEADER END
431N/A#
2323N/A# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
431N/A#
431N/Ainclude ../../../make-rules/shared-macros.mk
431N/A
431N/ACOMPONENT_NAME= foomatic-db-engine
2323N/ACOMPONENT_VERSION= 3.0-20080903
618N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
431N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
431N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:668f2020eb136359523090cc17151e6aad0c56bce0e4ae91217a9eba19eec917
2323N/ACOMPONENT_ARCHIVE_URL= $(EXTERNAL_ARCHIVE_MIRROR)/$(COMPONENT_ARCHIVE)
618N/ACOMPONENT_PROJECT_URL= http://www.linuxfoundation.org/collaborate/workgroups/openprinting/database/foomatic/
1273N/ACOMPONENT_BUGDB= utility/foomatic
431N/A
431N/ATPNO= 6399
431N/A
431N/Ainclude ../../../make-rules/prep.mk
431N/Ainclude ../../../make-rules/configure.mk
431N/Ainclude ../../../make-rules/ips.mk
431N/A
431N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
431N/ACONFIGURE_OPTIONS += PERL=$(PERL)
431N/ACONFIGURE_OPTIONS += FILEUTIL=/bin/true
431N/A
2323N/A# the build system does not support building outside of the source tree
2323N/ACOMPONENT_PRE_CONFIGURE_ACTION = $(CLONEY) $(SOURCE_DIR) $(@D) ;
2323N/A
431N/A# setup perl build
431N/ACOMPONENT_PRE_CONFIGURE_ACTION += cd $(@D)/lib ; $(PERL) Makefile.PL
431N/A
431N/A# install perl modules
431N/ACOMPONENT_PRE_INSTALL_ACTION = \
431N/A ( cd $(@D)/lib ; $(GMAKE) install_vendor DESTDIR=$(PROTO_DIR) )
431N/A
431N/A# the perl .packlist contains the path to the file as built rather than
431N/A# as installed. Fix to be installed path, ie remove PROTO_DIR.
431N/AVENDORARCH= $(shell $(PERL) -e 'use Config; print $$Config{vendorarch}')
431N/APACKLIST= $(VENDORARCH)/auto/Foomatic/.packlist
COMPONENT_POST_INSTALL_ACTION = \
sed -e "s/$(subst /,\\/,$(PROTO_DIR))//g" $(PROTO_DIR)/$(PACKLIST) \
>> $(PROTO_DIR)/$(PACKLIST).fixed ; \
$(MV) $(PROTO_DIR)/$(PACKLIST).fixed $(PROTO_DIR)/$(PACKLIST)
# common targets
build: $(BUILD_32)
install: $(INSTALL_32)
test: $(NO_TESTS)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../../make-rules/depend.mk