2013-09-21 00:43:59 +02:00
|
|
|
# Created by: Martin Ranne <gasp@ridcully.dnsalias.org>
|
2003-10-08 14:52:42 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2006-05-31 11:45:42 +02:00
|
|
|
PORTNAME= engine
|
2014-03-31 12:10:51 +02:00
|
|
|
PORTVERSION= 4.0.11
|
2014-11-26 14:08:24 +01:00
|
|
|
PORTREVISION= 2
|
2009-06-17 00:00:38 +02:00
|
|
|
PORTEPOCH= 2
|
2003-10-08 14:52:42 +02:00
|
|
|
CATEGORIES= print
|
2009-06-17 00:00:38 +02:00
|
|
|
MASTER_SITES= http://www.openprinting.org/download/foomatic/ \
|
|
|
|
${MASTER_SITE_GOOGLE_CODE} \
|
|
|
|
${MASTER_SITE_LOCAL:S,$,acm/foomatic/,}
|
2006-05-31 11:45:42 +02:00
|
|
|
PKGNAMEPREFIX= foomatic-db-
|
2009-06-17 00:00:38 +02:00
|
|
|
DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
|
2006-05-31 11:45:42 +02:00
|
|
|
DIST_SUBDIR= foomatic
|
2003-10-08 14:52:42 +02:00
|
|
|
|
2014-02-16 22:17:15 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-10-08 14:52:42 +02:00
|
|
|
COMMENT= Foomatic database engine
|
|
|
|
|
2013-12-26 20:38:16 +01:00
|
|
|
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
|
2003-10-08 14:52:42 +02:00
|
|
|
|
2004-10-12 14:16:21 +02:00
|
|
|
USE_GNOME= libxml2
|
2013-12-26 20:38:16 +01:00
|
|
|
USES= gmake perl5
|
2003-10-08 14:52:42 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2013-12-26 20:38:16 +01:00
|
|
|
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
|
2003-10-08 14:52:42 +02:00
|
|
|
|
2014-11-07 09:14:25 +01:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
|
2004-10-12 14:16:21 +02:00
|
|
|
post-patch:
|
2006-05-31 11:45:42 +02:00
|
|
|
@${REINPLACE_CMD} -e \
|
2004-10-12 14:16:21 +02:00
|
|
|
"s,sysconfdir=/etc,sysconfdir=\'${PREFIX}/etc\',g ; \
|
|
|
|
s,/usr/local/etc:,${PREFIX}/etc:,g" ${WRKSRC}/configure
|
2006-05-31 11:45:42 +02:00
|
|
|
@${REINPLACE_CMD} -e \
|
2004-10-12 14:16:21 +02:00
|
|
|
"s,/usr/local/bin:,${PREFIX}/bin:,g" ${WRKSRC}/Makefile.in
|
2013-12-26 20:38:16 +01:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
"/ln -sf foo/ s,foomatic-ppdfile,$$\(BINDIR\)/foomatic-ppdfile," \
|
|
|
|
-e "/if \[ -d/ s,LIB_CUPS,PREFIX," ${WRKSRC}/Makefile.in
|
2003-10-08 14:52:42 +02:00
|
|
|
|
2004-10-12 14:16:21 +02:00
|
|
|
post-install:
|
|
|
|
.for file in foomatic-combo-xml foomatic-perl-data
|
2014-11-07 09:14:25 +01:00
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${file}
|
2004-10-12 14:16:21 +02:00
|
|
|
.endfor
|
2003-12-13 13:29:50 +01:00
|
|
|
|
2004-10-12 14:16:21 +02:00
|
|
|
.include <bsd.port.mk>
|