aboutsummaryrefslogtreecommitdiff
path: root/print/wprint/Makefile
blob: 7f0709f6236f9c45da65b17bc646e3bc3362421c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Created by: ijliao
# $FreeBSD$

PORTNAME=	wprint
PORTVERSION=	2.05
PORTREVISION=	2
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

DEPRECATED=	Unmaintained since 2002
EXPIRATION_DATE=	2014-04-17
USES=		iconv perl5
GNU_CONFIGURE=	yes

MAN1=		wprint.1

CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

NO_STAGE=	yes
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>