mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
8d6597e0bb
With hat: portmgr Sponsored by: Absolight
43 lines
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
# Created by: Martin Ranne <gasp@ridcully.dnsalias.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= foomatic-db-engine
|
|
PORTVERSION= 4.0.12
|
|
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
|
|
|
|
USE_GNOME= libxml2
|
|
USES= gmake perl5
|
|
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>
|