blob: e98c0e9df5d1e8620e6d60cec52bbe0c7f4c1f3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# $NetBSD: Makefile,v 1.41 2022/04/18 19:11:57 adam Exp $
#
DISTNAME= foomatic-db-engine-4.0.13
PKGREVISION= 9
CATEGORIES= print
MASTER_SITES= http://www.openprinting.org/download/foomatic/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.linuxfoundation.org/collaborate/workgroups/openprinting/database/foomatic
COMMENT= Foomatic's database engine
LICENSE= gnu-gpl-v2
# XXX wget should work too
DEPENDS+= curl-[0-9]*:../../www/curl
GNU_CONFIGURE= yes
USE_TOOLS+= file perl gmake
BUILD_DEFS+= PKG_SYSCONFBASE
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASE}
CONFIGURE_ENV+= PRINTF=/usr/bin/printf
CONFIGURE_ENV+= LIBDIR=${PREFIX}/share/foomatic
CONFIGURE_ENV+= FOOMATIC_RIP=${PREFIX}/bin/foomatic-rip
CONFIGURE_ENV+= LOCALBASE=${PREFIX}
CONFIGURE_ENV+= CUPS_PPDS=${PREFIX}/share/cups/model
CONFIGURE_ENV+= CUPS_ETC=${PKG_SYSCONFBASE}/cups
CONFIGURE_ENV+= PERL_INSTALLDIRS=vendor
PERL5_CONFIGURE= no
PERL5_CONFIGURE_DIRS= lib
PERL5_PACKLIST= auto/Foomatic/.packlist
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
TOOLS_PLATFORM.file= # doesn't support -
.endif
SUBST_CLASSES+= fixpath
SUBST_STAGE.fixpath= post-build
SUBST_FILES.fixpath= lib/Foomatic/Defaults.pm
SUBST_SED.fixpath= -e "s,${TOOLS_DIR}/bin/curl,${BUILDLINK_PREFIX.curl}/bin/curl,g"
SUBST_NOOP_OK.fixpath= yes # see below
# I'm not sure in which situations ${TOOLS_DIRS} may end up in
# config.status. When I tried, the correct path to curl ended up there.
# See also https://bugs.linuxfoundation.org/show_bug.cgi?id=1442.
# XXX generated but needs to be present before perl5-configure
post-extract:
${TOUCH} ${WRKSRC}/lib/Foomatic/Defaults.pm
post-configure: perl5-configure
.include "../../lang/perl5/module.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|