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