update Tue Jun 22 06:37:08 PDT 2010
[pkgsrc.git] / print / foomatic4-db-engine / Makefile
1 # $NetBSD: Makefile,v 1.3 2010/02/24 19:30:08 drochner Exp $
2 #
3
4 DISTNAME=       foomatic-db-engine-4.0.4
5 CATEGORIES=     print
6 MASTER_SITES=   http://www.openprinting.org/download/foomatic/
7
8 MAINTAINER=     pkgsrc-users@NetBSD.org
9 HOMEPAGE=       http://www.linuxfoundation.org/collaborate/workgroups/openprinting/database/foomatic
10 COMMENT=        Foomatic's database engine
11
12 GNU_CONFIGURE=  yes
13 CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASE}
14 CONFIGURE_ENV+= PRINTF=/usr/bin/printf
15 CONFIGURE_ENV+= LIBDIR=${LOCALBASE}/share/foomatic
16 CONFIGURE_ENV+= FOOMATIC_RIP=${LOCALBASE}/bin/foomatic-rip
17 CONFIGURE_ENV+= LOCALBASE=${LOCALBASE}
18 CONFIGURE_ENV+= CUPS_ETC=${PKG_SYSCONFBASE}/cups
19 USE_TOOLS+=     perl gmake
20 PERL5_PACKLIST= auto/Foomatic/.packlist
21
22 PKG_DESTDIR_SUPPORT=    user-destdir
23
24 PERL5_CONFIGURE=        no
25 PERL5_CONFIGURE_DIRS=   lib
26
27 # XXX generated but needs to be present before perl5-configure
28 post-extract:
29         ${TOUCH} ${WRKSRC}/lib/Foomatic/Defaults.pm
30
31 post-configure: perl5-configure
32
33 .include "../../lang/perl5/module.mk"
34 .include "../../textproc/libxml2/buildlink3.mk"
35 # XXX wget should work too
36 .include "../../www/curl/buildlink3.mk"
37 .include "../../mk/bsd.pkg.mk"