summaryrefslogtreecommitdiffstats
path: root/print/xfce4-print/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'print/xfce4-print/Makefile')
-rw-r--r--print/xfce4-print/Makefile42
1 files changed, 36 insertions, 6 deletions
diff --git a/print/xfce4-print/Makefile b/print/xfce4-print/Makefile
index eaa3235..d2c436f 100644
--- a/print/xfce4-print/Makefile
+++ b/print/xfce4-print/Makefile
@@ -6,11 +6,12 @@
#
PORTNAME= xfce4-print
-PORTVERSION= 4.0.6
-PORTREVISION= 1
+PORTVERSION= 4.2.0
+PORTREVISION= 0
CATEGORIES= print xfce
-MASTER_SITES= ftp://ftp.berlios.de/pub/xfce-goodies/${PORTVERSION}/ \
- http://hannelore.f1.fhtw-berlin.de/mirrors/xfce4/xfce-${PORTVERSION}/src/
+MASTER_SITES= http://www.us.xfce.org/archive/xfce-${PORTVERSION}/src/ \
+ http://spuriousinterrupt.org/projects/xfce4/files/mirror/xfce-${PORTVERSION}/ \
+ http://public.fh-wolfenbuettel.de/~luedickj/xfce4/xfce-${PORTVERSION}/
DISTNAME= xfprint-${PORTVERSION}
DIST_SUBDIR= xfce4
@@ -18,16 +19,45 @@ MAINTAINER= oliver@FreeBSD.org
COMMENT= XFce 4 graphical frontend for printing
LIB_DEPENDS= xfce4util.1:${PORTSDIR}/x11/libxfce4util \
- xfcegui4.1:${PORTSDIR}/x11-toolkits/libxfce4gui
+ xfcegui4.3:${PORTSDIR}/x11-toolkits/libxfce4gui
USE_GETTEXT= yes
USE_GNOME= gtk20
USE_X_PREFIX= yes
-USE_INC_LIBTOOL_VER=15
+USE_LIBTOOL_VER=15
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
+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
.include <bsd.port.mk>
OpenPOWER on IntegriCloud