0N/A#
2362N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
2362N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2362N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
2362N/A
2362N/A#
2362N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
0N/A#
0N/ABUILD_BITS= 32
0N/Ainclude ../../../make-rules/shared-macros.mk
0N/A
0N/ACOMPONENT_NAME= foomatic-db-engine
0N/A# version (4.0) is relative to foomatic-db-engine
0N/A# ...do not combine foomatic-db with foomatic-db-engine of the different versions
0N/AFOO_VERSION= 4.0
0N/A# Latest foomatic-db-engine patchlevel where the snapshot is derived from.
0N/A# Makes the IPS versioning monotonously growing.
0N/AFOO_PATCHLEVEL= 12
0N/ADAILY_VERSION= 20160721
0N/ACOMPONENT_VERSION= $(FOO_VERSION)-$(DAILY_VERSION)
886N/AIPS_COMPONENT_VERSION= $(FOO_VERSION).$(FOO_PATCHLEVEL).$(DAILY_VERSION)
0N/ATPNO= 30221
0N/ACOMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.gz
0N/ACOMPONENT_ARCHIVE_HASH= sha256:bb1836bb321298ddecf3a68e5e13db7b3d23c72c219c33c9b82df257b6b34f40
0N/ACOMPONENT_ARCHIVE_URL= http://www.openprinting.org/download/foomatic/$(COMPONENT_ARCHIVE)
0N/ACOMPONENT_PROJECT_URL= https://wiki.linuxfoundation.org/openprinting/database/foomatic
0N/ACOMPONENT_BUGDB= utility/foomatic
0N/A
0N/ATEST_TARGET= $(NO_TESTS)
0N/Ainclude $(WS_MAKE_RULES)/common.mk
0N/A
0N/ACONFIGURE_OPTIONS += PERL=$(PERL)
0N/ACONFIGURE_OPTIONS += FILEUTIL=$(BINDIR)/true
0N/ACONFIGURE_OPTIONS += TAR=/usr/gnu/bin/tar
0N/A# foomatic-filters (pkg:/.../foomatic-rip) keeps "filter.conf" here:
0N/ACONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/gnu
0N/A
0N/ACOMPONENT_PREP_ACTION += (cd $(@D); autoreconf -fiv);
0N/A
0N/A# the build system does not support building outside of the source tree
0N/ACOMPONENT_PRE_CONFIGURE_ACTION = $(CLONEY) $(SOURCE_DIR) $(@D) ;
0N/A
0N/A# setup perl build
0N/ACOMPONENT_PRE_CONFIGURE_ACTION += cd $(@D)/lib ; $(PERL) Makefile.PL
0N/A
0N/A# install perl modules
0N/ACOMPONENT_PRE_INSTALL_ACTION = \
0N/A ( cd $(@D)/lib ; $(GMAKE) install_vendor DESTDIR=$(PROTO_DIR) )
0N/A
0N/A# publish for only one version of perl
0N/APERL_VERSIONS = $(PERL_VERSION)
0N/A
0N/A# the perl .packlist contains the path to the file as built rather than
0N/A# as installed. Fix to be installed path, ie remove PROTO_DIR.
0N/AVENDORARCH= $(shell $(PERL) -e 'use Config; print $$Config{vendorarch}')
0N/APACKLIST= $(VENDORARCH)/auto/Foomatic/.packlist
0N/ACOMPONENT_POST_INSTALL_ACTION = \
0N/A sed -e "s/$(subst /,\\/,$(PROTO_DIR))//g" $(PROTO_DIR)/$(PACKLIST) \
0N/A >> $(PROTO_DIR)/$(PACKLIST).fixed ; \
0N/A $(MV) $(PROTO_DIR)/$(PACKLIST).fixed $(PROTO_DIR)/$(PACKLIST)
0N/A
0N/AREQUIRED_PACKAGES += library/libxml2
0N/AREQUIRED_PACKAGES += $(PERL_PKG)
0N/AREQUIRED_PACKAGES += shell/bash
0N/A