blob: a66e67be78ec2569bfcee10d3cc37e99e42189bc (
plain)
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
|
# Created by: lofi@FreeBSD.org
PORTNAME= libpaper
DISTVERSION= 1.1.28
CATEGORIES= print
MASTER_SITES= DEBIAN
DISTNAME= ${PORTNAME}_${DISTVERSION}
MAINTAINER= hrs@FreeBSD.org
COMMENT= Library providing routines for paper size management
LICENSE= GPLv2
USES= autoreconf libtool
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
INSTALL_TARGET= install-strip
post-extract:
${ECHO_CMD} a4 > ${WRKDIR}/papersize.a4
${ECHO_CMD} letter > ${WRKDIR}/papersize.letter
post-configure:
@${REINPLACE_CMD} -e 's|$${prefix}|${PREFIX}|g' \
${WRKSRC}/config.h ${WRKSRC}/src/paperconfig
post-install:
cd ${WRKDIR} && \
${INSTALL_DATA} papersize.a4 papersize.letter \
${STAGEDIR}${PREFIX}/etc
.include <bsd.port.mk>
|