freebsd-ports/print/wprint/Makefile
Dmitry Marakasov 6f6fbe4bdf - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
2011-09-23 22:26:39 +00:00

46 lines
1 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://programoj.esperanto.org.uy/angle/
MAINTAINER= ports@FreeBSD.org
COMMENT= Mozilla/HtmlDoc/Netscape Postscript Filter
LICENSE= GPLv2 # (or later)
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= freetype:${PORTSDIR}/print/freetype2
USE_ICONV= yes
USE_PERL5= yes
GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= yes
MAN1= wprint.1
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
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>