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

(-)/usr/ports/print/cups-pdf/Makefile (-9 / +13 lines)
Lines 6-32 Link Here
6
#
6
#
7
7
8
PORTNAME=	cups-pdf
8
PORTNAME=	cups-pdf
9
PORTVERSION=	1.4.2
9
PORTVERSION=	1.6.5
10
CATEGORIES=	print
10
CATEGORIES=	print
11
MASTER_SITES=	http://cip.physik.uni-wuerzburg.de/~vrbehr/cups-pdf/
11
MASTER_SITES=	http://cip.physik.uni-wuerzburg.de/~vrbehr/cups-pdf/
12
DISTNAME=	${PORTNAME}_${PORTVERSION}a
12
DISTNAME=	${PORTNAME}_${PORTVERSION}
13
13
14
MAINTAINER=	ports@mark.reidel.info
14
MAINTAINER=	ports@mark.reidel.info
15
COMMENT=	A virtual printer for CUPS to produce PDF files
15
COMMENT=	A virtual printer for CUPS to produce PDF files
16
16
17
RUN_DEPENDS=	${LOCALBASE}/sbin/cupsd:${PORTSDIR}/print/cups-base
17
RUN_DEPENDS=	${LOCALBASE}/sbin/cupsd:${PORTSDIR}/print/cups-base
18
18
19
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}a
19
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
20
20
21
.include <bsd.port.pre.mk>
21
.include <bsd.port.pre.mk>
22
22
23
GNU_CONFIGURE=	yes
24
USE_REINPLACE=	yes
23
USE_REINPLACE=	yes
25
USE_GHOSTSCRIPT_RUN=	yes
24
USE_GHOSTSCRIPT_RUN=	yes
26
25
27
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
26
SUBST_CMD=		-e "s,/usr/bin/gs,${LOCALBASE}/bin/gs," \
28
CONFIGURE_ARGS+=	--with-backenddir=${LOCALBASE}/libexec/cups/backend
27
			-e 's,-s /bin/sh,,' \
29
SUBST_CMD=		-e "s,/usr/bin/gs,${LOCALBASE}/bin/gs,"
28
			-e 's,/bin/su,/usr/bin/su,' \
29
			-e 's,"lp","daemon",' \
30
			-e 's,/var/spool/cups-pdf/SPOOL,/var/spool/cups-pdf,'
30
31
31
.ifdef(PDF_VERSION)
32
.ifdef(PDF_VERSION)
32
.if ${PDF_VERSION} == 1.2
33
.if ${PDF_VERSION} == 1.2
Lines 40-49 Link Here
40
.endif
41
.endif
41
42
42
.ifdef(HOME_SUBDIR)
43
.ifdef(HOME_SUBDIR)
43
SUBST_CMD+=	-e 's,/var/spool/cups-pdf,$$HOME,' -e 's,CPHOMESUB "cups-pdf",CPHOMESUB "${HOME_SUBDIR}",'
44
SUBST_CMD+=	-e 's,CPOUT "/var/spool/cups-pdf",CPOUT "$$HOME",' -e 's,CPHOMESUB "cups-pdf",CPHOMESUB "${HOME_SUBDIR}",'
44
.else
45
.else
45
.ifdef(OUTPUT_DIRECTORY)
46
.ifdef(OUTPUT_DIRECTORY)
46
SUBST_CMD+=	-e "s,/var/spool/cups-pdf,${OUTPUT_DIRECTORY},"
47
SUBST_CMD+=	-e 's,CPOUT "/var/spool/cups-pdf",CPOUT "${OUTPUT_DIRECTORY}",'
47
.endif
48
.endif
48
.endif
49
.endif
49
50
Lines 73-78 Link Here
73
post-configure:
74
post-configure:
74
	@${REINPLACE_CMD} ${SUBST_CMD} ${WRKSRC}/src/cups-pdf.h
75
	@${REINPLACE_CMD} ${SUBST_CMD} ${WRKSRC}/src/cups-pdf.h
75
	@${GUNZIP_CMD} ${WRKSRC}/extra/PostscriptColor.ppd.gz
76
	@${GUNZIP_CMD} ${WRKSRC}/extra/PostscriptColor.ppd.gz
77
78
do-build:
79
	cd ${WRKSRC}/src; gcc ${CFLAGS} -o cups-pdf cups-pdf.c
76
80
77
do-install:
81
do-install:
78
	${INSTALL_PROGRAM} ${WRKSRC}/src/cups-pdf ${LOCALBASE}/libexec/cups/backend
82
	${INSTALL_PROGRAM} ${WRKSRC}/src/cups-pdf ${LOCALBASE}/libexec/cups/backend
(-)/usr/ports/print/cups-pdf/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
MD5 (cups-pdf_1.4.2a.tar.gz) = 39a207ad22ce1d1b3cae7ee853c53b7f
1
MD5 (cups-pdf_1.6.5.tar.gz) = 5b5aba6fc29836aabab5268d8f1d2c91
2
SIZE (cups-pdf_1.4.2a.tar.gz) = 114018
2
SIZE (cups-pdf_1.6.5.tar.gz) = 16506

Return to bug 76833