summaryrefslogtreecommitdiffstats
path: root/print/xfce4-print/Makefile
blob: 061999e84b0d7933b1689d6a4832021902bd7bef (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Created by: James Earl <jdearl@telus.net>
# $FreeBSD$

PORTNAME=	xfce4-print
PORTVERSION=	4.6.1
PORTREVISION=	12
CATEGORIES=	print xfce
MASTER_SITES=	${MASTER_SITE_XFCE}
MASTER_SITE_SUBDIR=	src/archive/xfprint/${PORTVERSION:R}
DISTNAME=	xfprint-${PORTVERSION}
DIST_SUBDIR=	xfce4

MAINTAINER=	xfce@FreeBSD.org
COMMENT=	Print system support for the Xfce Desktop

LICENSE=	GPLv2

BUILD_DEPENDS=	a2ps:${PORTSDIR}/print/a2ps
RUN_DEPENDS=	a2ps:${PORTSDIR}/print/a2ps

GNU_CONFIGURE=	yes
INSTALLS_ICONS=	yes
USES=		gettext gmake libtool pathfix pkgconfig tar:bzip2
USE_GNOME=	glib20 gtk20 intltool intlhack
USE_LDCONFIG=	yes
USE_XFCE=	configenv libgui libutil xfconf

OPTIONS_DEFINE=	LETTER
OPTIONS_DEFAULT=	LPR
OPTIONS_SINGLE=	PRINTMETHOD
OPTIONS_SINGLE_PRINTMETHOD=	LPR CUPS
LETTER_DESC=	Use letter paper format instead of A4
LPR_DESC=	LPR printing system support

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MCUPS}
CONFIGURE_ARGS+=--enable-cups
LIB_DEPENDS+=	libcups.so:${PORTSDIR}/print/cups-client
PLIST_SUB+=	CUPS=""
.else
CONFIGURE_ARGS+=--disable-cups
PLIST_SUB+=	CUPS="@comment "
.endif

.if ${PORT_OPTIONS:MLPR}
CONFIGURE_ARGS+=--enable-bsdlpr --with-printcap=/etc/printcap
PLIST_SUB+=	LPR=""
.else
CONFIGURE_ARGS+=--disable-bsdlpr
PLIST_SUB+=	LPR="@comment "
.endif

.if ${PORT_OPTIONS:MLETTER}
CONFIGURE_ARGS+=--enable-letter
.else
CONFIGURE_ARGS+=--disable-letter
.endif

post-patch:
	@${REINPLACE_CMD} '/_LDADD =/s/=/= -lX11/' \
		${WRKSRC}/xfprint/Makefile.in \
		${WRKSRC}/xfprint-manager/Makefile.in

.include <bsd.port.mk>
OpenPOWER on IntegriCloud