Fri May 1 21:07:24 2020 UTC ()
print/foomatic4-db-engine: allow SUBST block to be a no-op


(rillig)
diff -r1.33 -r1.34 pkgsrc/print/foomatic4-db-engine/Makefile

cvs diff -r1.33 -r1.34 pkgsrc/print/foomatic4-db-engine/Makefile (expand / switch to unified diff)

--- pkgsrc/print/foomatic4-db-engine/Makefile 2020/01/18 23:33:28 1.33
+++ pkgsrc/print/foomatic4-db-engine/Makefile 2020/05/01 21:07:24 1.34
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.33 2020/01/18 23:33:28 rillig Exp $ 1# $NetBSD: Makefile,v 1.34 2020/05/01 21:07:24 rillig Exp $
2# 2#
3 3
4DISTNAME= foomatic-db-engine-4.0.13 4DISTNAME= foomatic-db-engine-4.0.13
5PKGREVISION= 2 5PKGREVISION= 2
6CATEGORIES= print 6CATEGORIES= print
7MASTER_SITES= http://www.openprinting.org/download/foomatic/ 7MASTER_SITES= http://www.openprinting.org/download/foomatic/
8 8
9MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= https://www.linuxfoundation.org/collaborate/workgroups/openprinting/database/foomatic 10HOMEPAGE= https://www.linuxfoundation.org/collaborate/workgroups/openprinting/database/foomatic
11COMMENT= Foomatic's database engine 11COMMENT= Foomatic's database engine
12LICENSE= gnu-gpl-v2 12LICENSE= gnu-gpl-v2
13 13
14# XXX wget should work too 14# XXX wget should work too
@@ -33,23 +33,27 @@ PERL5_CONFIGURE= no @@ -33,23 +33,27 @@ PERL5_CONFIGURE= no
33PERL5_CONFIGURE_DIRS= lib 33PERL5_CONFIGURE_DIRS= lib
34PERL5_PACKLIST= auto/Foomatic/.packlist 34PERL5_PACKLIST= auto/Foomatic/.packlist
35 35
36.include "../../mk/bsd.prefs.mk" 36.include "../../mk/bsd.prefs.mk"
37 37
38.if ${OPSYS} == "SunOS" 38.if ${OPSYS} == "SunOS"
39TOOLS_PLATFORM.file= # doesn't support - 39TOOLS_PLATFORM.file= # doesn't support -
40.endif 40.endif
41 41
42SUBST_CLASSES+= fixpath 42SUBST_CLASSES+= fixpath
43SUBST_STAGE.fixpath= post-build 43SUBST_STAGE.fixpath= post-build
44SUBST_FILES.fixpath= lib/Foomatic/Defaults.pm 44SUBST_FILES.fixpath= lib/Foomatic/Defaults.pm
45SUBST_SED.fixpath= -e "s,${TOOLS_DIR}/bin/curl,${BUILDLINK_PREFIX.curl}/bin/curl,g" 45SUBST_SED.fixpath= -e "s,${TOOLS_DIR}/bin/curl,${BUILDLINK_PREFIX.curl}/bin/curl,g"
 46SUBST_NOOP_OK.fixpath= yes # see below
 47# I'm not sure in which situations ${TOOLS_DIRS} may end up in
 48# config.status. When I tried, the correct path to curl ended up there.
 49# See also https://bugs.linuxfoundation.org/show_bug.cgi?id=1442.
46 50
47# XXX generated but needs to be present before perl5-configure 51# XXX generated but needs to be present before perl5-configure
48post-extract: 52post-extract:
49 ${TOUCH} ${WRKSRC}/lib/Foomatic/Defaults.pm 53 ${TOUCH} ${WRKSRC}/lib/Foomatic/Defaults.pm
50 54
51post-configure: perl5-configure 55post-configure: perl5-configure
52 56
53.include "../../lang/perl5/module.mk" 57.include "../../lang/perl5/module.mk"
54.include "../../textproc/libxml2/buildlink3.mk" 58.include "../../textproc/libxml2/buildlink3.mk"
55.include "../../mk/bsd.pkg.mk" 59.include "../../mk/bsd.pkg.mk"