mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
652dde7a1c
. update to version 20131207; . change MASTER_SITES; . use new LIB_DEPENDS syntax; . incorporate USES=gmake; . allow staging. PR: ports/184690 Submitted by: bsam (me) Reviewed by: acm (former maintainer, maintainer timeout)
44 lines
1.3 KiB
Makefile
44 lines
1.3 KiB
Makefile
# Created by: Martin Ranne <gasp@ridcully.dnsalias.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= engine
|
|
PORTVERSION= 4.0.9
|
|
PORTEPOCH= 2
|
|
CATEGORIES= print
|
|
MASTER_SITES= http://www.openprinting.org/download/foomatic/ \
|
|
${MASTER_SITE_GOOGLE_CODE} \
|
|
${MASTER_SITE_LOCAL:S,$,acm/foomatic/,}
|
|
PKGNAMEPREFIX= foomatic-db-
|
|
DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
|
|
DIST_SUBDIR= foomatic
|
|
|
|
MAINTAINER= bsam@FreeBSD.org
|
|
COMMENT= Foomatic database engine
|
|
|
|
LIB_DEPENDS= libcurl.so:${PORTSDIR}/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
|
|
|
|
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 \
|
|
"/ln -sf foo/ s,foomatic-ppdfile,$$\(BINDIR\)/foomatic-ppdfile," \
|
|
-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>
|