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