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