perl/Module-Build-Tiny: update to 0.051 for Perl 5.36 and 5.38
[oi-userland.git] / components / foomatic / db-engine / Makefile
blob8dc9b414d97e3473d1a34088274e2c3cc7d5df7f
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
21 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
24 include ../../../make-rules/shared-macros.mk
26 COMPONENT_NAME= foomatic-db-engine
27 COMPONENT_VERSION= 4.0.13
28 COMPONENT_SUMMARY= Foomatic Database Engine
29 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
30 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
31 COMPONENT_ARCHIVE_HASH= \
32 sha256:b5c89027aa26967d2e6db62e2af7db0c4039d2480d4fbf2476a6ddcf609a5faf
33 COMPONENT_ARCHIVE_URL= https://www.openprinting.org/download/foomatic/$(COMPONENT_ARCHIVE)
34 COMPONENT_PROJECT_URL= https://openprinting.github.io/projects/02-foomatic/
35 COMPONENT_FMRI= print/cups/filter/foomatic-db-engine
36 COMPONENT_CLASSIFICATION= System/Printing
37 COMPONENT_LICENSE= GPL-2.0-only
38 COMPONENT_LICENSE_FILE= COPYING
40 TEST_TARGET = $(NO_TESTS)
42 include $(WS_MAKE_RULES)/common.mk
44 # Force known Perl version
45 CONFIGURE_OPTIONS += PERL=$(PERL)
47 # configure is not happy with /usr/bin/file and asks for astron file
48 CONFIGURE_OPTIONS += FILEUTIL=/usr/bin/gfile
50 # the build system does not support building outside of the source tree
51 COMPONENT_PRE_CONFIGURE_ACTION += $(CLONEY) $(SOURCE_DIR) $(@D) ;
53 # setup perl build
54 COMPONENT_PRE_CONFIGURE_ACTION += cd $(@D)/lib ; $(PERL) Makefile.PL ;
56 # Defaults.pm is not built by the perl module, but by external utility, so it's in wrong place
57 COMPONENT_POST_INSTALL_ACTION += \
58 $(INSTALL) $(@D)/lib/Foomatic/Defaults.pm $(PROTOUSRDIR)/perl5/vendor_perl/$(PERL_VERSION)/Foomatic ;
60 # Convert absolute symlink to relative one
61 COMPONENT_POST_INSTALL_ACTION += \
62 $(RM) $(PROTOUSRLIBDIR)/cups/driver/foomatic ; \
63 $(SYMLINK) ../../../bin/foomatic-ppdfile $(PROTOUSRLIBDIR)/cups/driver/foomatic ;
65 # Auto-generated dependencies
66 PERL_REQUIRED_PACKAGES += runtime/perl
67 REQUIRED_PACKAGES += library/libxml2
68 REQUIRED_PACKAGES += shell/bash
69 REQUIRED_PACKAGES += system/library