aboutsummaryrefslogtreecommitdiffstats
path: root/print/xfce4-print/Makefile
blob: 39a72b962b9b8f8f63e4fe67a5f6161c812b06e8 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# New ports collection makefile for:    xfprint
# Date created:     7 June 2003
# Whom:         James Earl <jdearl@telus.net>
#
# $FreeBSD$
#

PORTNAME=   xfce4-print
PORTVERSION=    4.2.2
PORTREVISION=   0
CATEGORIES= print xfce
MASTER_SITES=   http://www.us.xfce.org/archive/xfce-${PORTVERSION}/src/ \
        http://www.ca-us.xfce.org/archive/xfce-${PORTVERSION}/src/ \
        http://public.fh-wolfenbuettel.de/~luedickj/xfce4/xfce-${PORTVERSION}/ \
        http://hannelore.f1.fhtw-berlin.de/mirrors/xfce4/xfce-${PORTVERSION}/src/
DISTNAME=   xfprint-${PORTVERSION}
DIST_SUBDIR=    xfce4

MAINTAINER= oliver@FreeBSD.org
COMMENT=    XFce 4 graphical frontend for printing

BUILD_DEPENDS=  xfce-mcs-manager:${PORTSDIR}/sysutils/xfce4-mcs-manager
LIB_DEPENDS=    xfce4util.1:${PORTSDIR}/x11/libxfce4util \
        xfcegui4.3:${PORTSDIR}/x11-toolkits/libxfce4gui \
        xfce4mcs-client.2:${PORTSDIR}/x11/libxfce4mcs
RUN_DEPENDS=    xfce-mcs-manager:${PORTSDIR}/sysutils/xfce4-mcs-manager

USE_GETTEXT=    yes
USE_GNOME=  gtk20
USE_X_PREFIX=   yes
USE_LIBTOOL_VER=15
USE_REINPLACE=  yes
INSTALLS_SHLIB= yes
CONFIGURE_TARGET=   --build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV=  CFLAGS=-I${LOCALBASE}/include \
        CPPFLAGS=-I${LOCALBASE}/include \
        LIBS=-L${LOCALBASE}/lib
OPTIONS=    LPR "Use lpr as printing system"    on\
        CUPS    "Use cups as printing system"   off

.if defined(WITH_CUPS)
CONFIGURE_ARGS+=--enable-cups
LIB_DEPENDS+=   cups.2:${PORTSDIR}/print/cups-base
PLIST_SUB+= CUPS=""
.else
CONFIGURE_ARGS+=--disable-cups
PLIST_SUB+= CUPS="@comment "
.endif

.if defined(WITHOUT_LPR)
CONFIGURE_ARGS+=--disable-bsdlpr
PLIST_SUB+= LPR="@comment "
.else
CONFIGURE_ARGS+=--enable-bsdlpr --with-printcap=/etc/printcap
PLIST_SUB+= LPR=""
.endif

.if defined(WITH_LETTER)
CONFIGURE_ARGS+=--enable-letter
BUILD_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps-letter
RUN_DEPENDS+=   a2ps:${PORTSDIR}/print/a2ps-letter
.else
CONFIGURE_ARGS+=--disable-letter
BUILD_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps-a4
RUN_DEPENDS+=   a2ps:${PORTSDIR}/print/a2ps-a4
.endif

post-patch:
    ${REINPLACE_CMD} -e 's/@LDFLAGS@/& -Wl,-E/' ${WRKSRC}/xfprint/Makefile.in \
         ${WRKSRC}/xfprint-manager/Makefile.in

.include <bsd.port.mk>