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