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