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

(-)Makefile (-41 / +25 lines)
Lines 3-20 Link Here
3
3
4
PORTNAME=	foomatic-filters
4
PORTNAME=	foomatic-filters
5
PORTVERSION=	4.0.17
5
PORTVERSION=	4.0.17
6
PORTREVISION=	7
6
PORTREVISION=	8
7
CATEGORIES=	print
7
CATEGORIES=	print
8
MASTER_SITES=	http://www.openprinting.org/download/foomatic/
8
MASTER_SITES=	http://www.openprinting.org/download/foomatic/
9
9
10
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	jrm@ftfl.ca
11
COMMENT=	Foomatic wrapper scripts
11
COMMENT=	Foomatic wrapper scripts
12
12
13
LICENSE=	GPLv2+
13
LICENSE=	GPLv2+
14
LICENSE_FILE=	${WRKSRC}/COPYING
14
LICENSE_FILE=	${WRKSRC}/COPYING
15
15
16
LIB_DEPENDS=	libdbus-1.so:devel/dbus
17
18
CONFLICTS=	cups-filters-[0-9]*
16
CONFLICTS=	cups-filters-[0-9]*
19
17
20
USES=		autoreconf ghostscript perl5 pkgconfig
18
USES=		autoreconf ghostscript perl5 pkgconfig
Lines 34-80 Link Here
34
CPPFLAGS+=	-I${LOCALBASE}/include
32
CPPFLAGS+=	-I${LOCALBASE}/include
35
LDFLAGS+=	-L${LOCALBASE}/lib
33
LDFLAGS+=	-L${LOCALBASE}/lib
36
34
37
OPTIONS_DEFINE=	A2PS CUPS_IMAGE MPAGE
35
OPTIONS_DEFINE=			A2PS DBUS CUPS_IMAGE MPAGE
38
OPTIONS_RADIO=	ENSCRIPT
36
OPTIONS_RADIO=			ENSCRIPT
39
OPTIONS_RADIO_ENSCRIPT=	ENSCRIPT_A4 ENSCRIPT_LETTER ENSCRIPT_LETTERDJ
37
OPTIONS_RADIO_ENSCRIPT=		ENSCRIPT_A4 ENSCRIPT_LETTER ENSCRIPT_LETTERDJ
40
OPTIONS_DEFAULT=	CUPS_IMAGE A2PS ENSCRIPT_A4 MPAGE
38
OPTIONS_DEFAULT=		A2PS CUPS_IMAGE DBUS ENSCRIPT_A4 MPAGE
41
CUPS_IMAGE_DESC=	Install cups image utilities
39
CUPS_IMAGE_DESC=		Install cups image utilities
42
A2PS_DESC=		Install a2ps convertor
40
A2PS_DESC=			Install a2ps convertor
43
ENSCRIPT_A4_DESC=	Install enscript convertor (A4)
41
ENSCRIPT_A4_DESC=		Install enscript convertor (A4)
44
ENSCRIPT_LETTER_DESC=	Install enscript convertor (letter)
42
ENSCRIPT_LETTER_DESC=		Install enscript convertor (letter)
45
ENSCRIPT_LETTERDJ_DESC=	Install enscript convertor (letterdj)
43
ENSCRIPT_LETTERDJ_DESC=		Install enscript convertor (letterdj)
46
MPAGE_DESC=		Print multiple pages per sheet of paper
44
MPAGE_DESC=			Print multiple pages per sheet of paper
47
45
48
.include <bsd.port.options.mk>
46
A2PS_RUN_DEPENDS=		a2ps:print/a2ps
47
CUPS_IMAGE_LIB_DEPENDS=		libcupsimage.so:print/cups
48
DBUS_CONFIGURE_ENABLE=		dbus
49
DBUS_LIB_DEPENDS=		libdbus-1.so:devel/dbus
50
ENSCRIPT_A4_RUN_DEPENDS=	enscript:print/enscript-a4
51
ENSCRIPT_LETTERDJ_RUN_DEPENDS=	enscript:print/enscript-letterdj
52
ENSCRIPT_LETTER_RUN_DEPENDS=	enscript:print/enscript-letter
53
MPAGE_RUN_DEPENDS=		mpage:print/mpage
49
54
50
.if ${PORT_OPTIONS:MCUPS_IMAGE}
51
RUN_DEPENDS+=	${LOCALBASE}/lib/libcupsimage.so:print/cups
52
.endif
53
54
.if ${PORT_OPTIONS:MA2PS}
55
RUN_DEPENDS+=	a2ps:print/a2ps
56
.endif
57
58
.if ${PORT_OPTIONS:MENSCRIPT_A4}
59
RUN_DEPENDS+=	enscript:print/enscript-a4
60
.endif
61
62
.if ${PORT_OPTIONS:MENSCRIPT_LETTER}
63
RUN_DEPENDS+=	enscript:print/enscript-letter
64
.endif
65
66
.if ${PORT_OPTIONS:MENSCRIPT_LETTERDJ}
67
RUN_DEPENDS+=	enscript:print/enscript-letterdj
68
.endif
69
70
.if ${PORT_OPTIONS:MMPAGE}
71
RUN_DEPENDS+=	mpage:print/mpage
72
.endif
73
74
post-patch:
55
post-patch:
75
	@${REINPLACE_CMD} -e 's|/bin/bash|${SH}|g' ${WRKSRC}/foomaticrip.c
56
	@${REINPLACE_CMD} -e 's|/bin/bash|${SH}|g' ${WRKSRC}/foomaticrip.c
76
	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/foomaticrip.c
57
	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
77
	@${REINPLACE_CMD} -e '/filter.conf/ s|if|#if|g' ${WRKSRC}/Makefile.in
58
		   	  ${WRKSRC}/foomaticrip.c
59
	@${REINPLACE_CMD} -e 's|ln -sf $$(BINDIR)|ln -sf ../../bin|g' \
60
			  -e '/filter.conf/ s|if.*||' \
61
			  ${WRKSRC}/Makefile.am
78
62
79
post-install:
63
post-install:
80
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/foomatic-rip
64
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/foomatic-rip

Return to bug 212001