aboutsummaryrefslogtreecommitdiffstats
path: root/print/xfce4-print/Makefile
blob: d9c2253f363ef954b9c9c59267ae1ffb23f5d4d8 (plain) (blame)
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
# Created by: James Earl <jdearl@telus.net>
# $FreeBSD$

PORTNAME=   xfce4-print
PORTVERSION=    4.6.1
PORTREVISION=   14
CATEGORIES= print xfce
MASTER_SITES=   XFCE/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:print/a2ps
RUN_DEPENDS=    a2ps:print/a2ps

GNU_CONFIGURE=  yes
INSTALLS_ICONS= yes
USES=       gettext gmake libtool pathfix pkgconfig xfce tar:bzip2
USE_GNOME=  glib20 gtk20 intltool intlhack
USE_LDCONFIG=   yes
USE_XFCE=   libgui 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
CUPS_LIB_DEPENDS=   libcups.so:print/cups
CUPS_CONFIGURE_ENABLE=  cups
LPR_CONFIGURE_ENABLE=   bsdlpr
LPR_CONFIGURE_WITH= printcap=/etc/printcap
LETTER_CONFIGURE_ENABLE=    letter
OPTIONS_SUB=    yes

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

.include <bsd.port.mk>