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