aboutsummaryrefslogtreecommitdiff
path: root/print/foomatic-db-engine/Makefile
blob: 1ca72842bab2a9ce58c3e3c5e7dc7429874663a6 (plain) (blame)
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
# Created by: Martin Ranne <gasp@ridcully.dnsalias.org>

PORTNAME=	foomatic-db-engine
PORTVERSION=	4.0.13
PORTREVISION=	1
PORTEPOCH=	2
CATEGORIES=	print
MASTER_SITES=	http://www.openprinting.org/download/foomatic/

MAINTAINER=	bofh@FreeBSD.org
COMMENT=	Foomatic database engine

LICENSE=	GPLv2

LIB_DEPENDS=	libcurl.so:ftp/curl

USES=		gmake gnome perl5
USE_GNOME=	libxml2
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	PERL=${PERL} LIBDIR=${PREFIX}/share/foomatic/ \
		LIB_CUPS=${LOCALBASE}/libexec/cups \
		CUPS_FILTERS=${LOCALBASE}/libexec/cups/filters \
		CUPS_BACKENDS=${LOCALBASE}/libexec/cups/backends

MAKE_JOBS_UNSAFE=	yes

post-patch:
	@${REINPLACE_CMD} -e \
		"s,sysconfdir=/etc,sysconfdir=\'${PREFIX}/etc\',g ; \
		 s,/usr/local/etc:,${PREFIX}/etc:,g" ${WRKSRC}/configure
	@${REINPLACE_CMD} -e \
		"s,/usr/local/bin:,${PREFIX}/bin:,g" ${WRKSRC}/Makefile.in
	@${REINPLACE_CMD} -e \
		"/if \[ -d/ s,LIB_CUPS,PREFIX," ${WRKSRC}/Makefile.in

post-install:
.for file in foomatic-combo-xml foomatic-perl-data
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${file}
.endfor

.include <bsd.port.mk>