View | Details | Raw Unified | Return to bug 207468
Collapse All | Expand All

(-)pnm2ppa/Makefile (-22 / +9 lines)
Lines 3-31 Link Here
3
3
4
PORTNAME=	pnm2ppa
4
PORTNAME=	pnm2ppa
5
PORTVERSION=	1.13
5
PORTVERSION=	1.13
6
PORTREVISION=	1
6
PORTREVISION=	2
7
CATEGORIES=	print
7
CATEGORIES=	print
8
MASTER_SITES=	SF
8
MASTER_SITES=	SF
9
9
10
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	000.fbsd@quip.cz
11
COMMENT=	Convert PNM images to PPA for some HP printers
11
COMMENT=	Convert PNM images to PPA for some HP printers
12
12
13
OPTIONS_DEFINE=	A4SIZE
13
OPTIONS_DEFINE=	A4SIZE
14
A4SIZE_DESC=	Set A4 (not Letter) as a default paper size
14
A4SIZE_DESC=	Set A4 (not Letter) as a default paper size
15
15
16
DEPRECATED=	Unmaintained since 2001
16
USES=	gmake ghostscript:run
17
EXPIRATION_DATE=	2014-04-12
18
USE_GHOSTSCRIPT_RUN=	yes
19
USE_GMAKE=	yes
20
GNU_CONFIGURE=	yes
17
GNU_CONFIGURE=	yes
21
18
22
MAN1=		pnm2ppa.1
23
PLIST_FILES=	bin/asciippafilter bin/calibrate_ppa bin/pnm2ppa bin/ppafilter \
24
		etc/pnm2ppa.conf.sample
25
26
PKGDEINSTALL=	${PKGINSTALL}
27
28
NO_STAGE=	yes
29
.include <bsd.port.pre.mk>
19
.include <bsd.port.pre.mk>
30
20
31
.if defined(A4) || !empty(PORT_OPTIONS:MA4SIZE)
21
.if defined(A4) || !empty(PORT_OPTIONS:MA4SIZE)
Lines 49-62 Link Here
49
		${FILESDIR}/ppafilter.SH > ${WRKSRC}/ppafilter
39
		${FILESDIR}/ppafilter.SH > ${WRKSRC}/ppafilter
50
40
51
do-install:
41
do-install:
52
	${INSTALL_PROGRAM} ${WRKSRC}/calibrate_ppa ${PREFIX}/bin
42
	${INSTALL_PROGRAM} ${WRKSRC}/calibrate_ppa ${STAGEDIR}${PREFIX}/bin
53
	${INSTALL_PROGRAM} ${WRKSRC}/pnm2ppa ${PREFIX}/bin
43
	${INSTALL_PROGRAM} ${WRKSRC}/pnm2ppa ${STAGEDIR}${PREFIX}/bin
54
	${INSTALL_SCRIPT} ${WRKSRC}/asciippafilter ${PREFIX}/bin
44
	${INSTALL_SCRIPT} ${WRKSRC}/asciippafilter ${STAGEDIR}${PREFIX}/bin
55
	${INSTALL_SCRIPT} ${WRKSRC}/ppafilter ${PREFIX}/bin
45
	${INSTALL_SCRIPT} ${WRKSRC}/ppafilter ${STAGEDIR}${PREFIX}/bin
56
	${INSTALL_MAN} ${WRKSRC}/pnm2ppa.1 ${MANPREFIX}/man/man1
46
	${INSTALL_MAN} ${WRKSRC}/pnm2ppa.1 ${STAGEDIR}${PREFIX}/man/man1
57
	${INSTALL_DATA} ${WRKSRC}/pnm2ppa.conf.sample ${PREFIX}/etc
47
	${INSTALL_DATA} ${WRKSRC}/pnm2ppa.conf.sample ${STAGEDIR}${PREFIX}/etc
58
	@${SETENV} PKG_PREFIX="${PREFIX}" \
59
		${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
60
	@${CAT} ${PKGMESSAGE}
61
48
62
.include <bsd.port.post.mk>
49
.include <bsd.port.post.mk>
(-)pnm2ppa/pkg-install (-18 lines)
Lines 1-18 Link Here
1
#!/bin/sh
2
# $FreeBSD: head/print/pnm2ppa/pkg-install 340719 2014-01-22 15:52:06Z mat $
3
4
sysconfdir=${PKG_PREFIX}/etc
5
conffile=pnm2ppa.conf
6
7
case $2 in
8
POST-INSTALL)
9
	if test ! -f ${sysconfdir}/${conffile}; then
10
		cp ${sysconfdir}/${conffile}.sample ${sysconfdir}/${conffile};
11
	fi
12
;;
13
DEINSTALL)
14
	if cmp -s ${sysconfdir}/${conffile} ${sysconfdir}/${conffile}.sample; then
15
		rm -f ${sysconfdir}/${conffile}
16
	fi
17
;;
18
esac
(-)pnm2ppa/pkg-plist (+6 lines)
Line 0 Link Here
1
bin/asciippafilter
2
bin/calibrate_ppa
3
bin/pnm2ppa
4
bin/ppafilter
5
@sample etc/pnm2ppa.conf.sample
6
man/man1/pnm2ppa.1.gz

Return to bug 207468