Makefile revision 3966
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, 2015, 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
3470N/ACONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/gnu
3470N/A
906N/A# the build system does not support building outside of the source tree
906N/ACOMPONENT_PRE_CONFIGURE_ACTION = $(CLONEY) $(SOURCE_DIR) $(@D) ;
906N/A
906N/A# setup perl build
1389N/ACOMPONENT_PRE_CONFIGURE_ACTION += cd $(@D)/lib ; $(PERL) Makefile.PL
906N/A
906N/A# install perl modules
906N/ACOMPONENT_PRE_INSTALL_ACTION = \
906N/A ( cd $(@D)/lib ; $(GMAKE) install_vendor DESTDIR=$(PROTO_DIR) )
3470N/A
3470N/A# the perl .packlist contains the path to the file as built rather than
3470N/A# as installed. Fix to be installed path, ie remove PROTO_DIR.
3470N/AVENDORARCH= $(shell $(PERL) -e 'use Config; print $$Config{vendorarch}')
3470N/APACKLIST= $(VENDORARCH)/auto/Foomatic/.packlist
3470N/ACOMPONENT_POST_INSTALL_ACTION = \
3470N/A sed -e "s/$(subst /,\\/,$(PROTO_DIR))//g" $(PROTO_DIR)/$(PACKLIST) \
3470N/A >> $(PROTO_DIR)/$(PACKLIST).fixed ; \
3470N/A $(MV) $(PROTO_DIR)/$(PACKLIST).fixed $(PROTO_DIR)/$(PACKLIST)
3470N/A
3470N/A
3470N/A# common targets
3470N/Aconfigure: $(CONFIGURE_32)
3470N/A
3470N/Abuild: $(BUILD_32)
3470N/A
906N/Ainstall: $(INSTALL_32)
1389N/A
1389N/Atest: $(NO_TESTS)
1389N/A
906N/A
1389N/AREQUIRED_PACKAGES += library/libxml2
906N/AREQUIRED_PACKAGES += runtime/perl-512
906N/AREQUIRED_PACKAGES += shell/bash
1389N/AREQUIRED_PACKAGES += system/library
1799N/A