1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/print/wprint/Makefile
2006-11-14 01:22:36 +00:00

43 lines
1.0 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: wprint
# Date created: Oct 15, 2002
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= wprint
PORTVERSION= 2.05
PORTREVISION= 1
CATEGORIES= print
MASTER_SITES= http://mirror2.unixfreunde.de/ \
http://freebsd.unixfreunde.de/sources/
MAINTAINER= ports@FreeBSD.org
COMMENT= Mozilla/HtmlDoc/Netscape Postscript Filter
LIB_DEPENDS= freetype:${PORTSDIR}/print/freetype2
USE_ICONV= yes
USE_PERL5= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
MAN1= wprint.1
post-patch:
.for file in man/wprint.1.pod src/wprint.c
@${REINPLACE_CMD} -e "s|/etc/wprint\.conf|${PREFIX}/etc/wprint.conf|g" \
${WRKSRC}/${file}
.endfor
@${REINPLACE_CMD} -e 's,$$(srcdir)/wprint.conf $$(sysconfdir),$$(srcdir)/wprint.conf $$(sysconfdir)/wprint.conf.dist,g' \
${WRKSRC}/etc/Makefile.in
post-install:
@if [ ! -f ${PREFIX}/etc/wprint.conf ]; then \
${CP} -p ${PREFIX}/etc/wprint.conf.dist ${PREFIX}/etc/wprint.conf ; \
fi
.include <bsd.port.mk>