2003-07-28 20:20:20 +02:00
|
|
|
# New ports collection makefile for: xfprint
|
|
|
|
# Date created: 7 June 2003
|
|
|
|
# Whom: James Earl <jdearl@telus.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= xfce4-print
|
2009-05-06 16:56:27 +02:00
|
|
|
PORTVERSION= 4.6.1
|
2011-03-03 11:12:30 +01:00
|
|
|
PORTREVISION= 7
|
2003-08-16 09:03:34 +02:00
|
|
|
CATEGORIES= print xfce
|
2007-10-26 00:53:28 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_XFCE}
|
2012-05-08 23:26:36 +02:00
|
|
|
MASTER_SITE_SUBDIR= src/archive/xfprint/${PORTVERSION:R}
|
2003-07-28 20:20:20 +02:00
|
|
|
DISTNAME= xfprint-${PORTVERSION}
|
2003-09-28 19:52:45 +02:00
|
|
|
DIST_SUBDIR= xfce4
|
2003-07-28 20:20:20 +02:00
|
|
|
|
2011-10-23 13:56:51 +02:00
|
|
|
MAINTAINER= xfce@FreeBSD.org
|
2011-10-26 22:27:27 +02:00
|
|
|
COMMENT= Xfce 4 graphical frontend for printing
|
2003-07-28 20:20:20 +02:00
|
|
|
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2012-05-08 23:26:36 +02:00
|
|
|
INSTALLS_ICONS= yes
|
2007-01-22 17:45:10 +01:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
USE_GMAKE= yes
|
2011-08-11 21:20:17 +02:00
|
|
|
USE_GNOME= glib20 gnomehack gtk20 intltool intlhack pkgconfig
|
2007-01-22 17:45:10 +01:00
|
|
|
USE_LDCONFIG= yes
|
2009-03-02 17:51:57 +01:00
|
|
|
USE_XFCE= configenv libgui libutil xfconf
|
2007-01-22 17:45:10 +01:00
|
|
|
|
|
|
|
OPTIONS= LPR "Use lpr as printing system" on \
|
|
|
|
CUPS "Use cups as printing system" off \
|
|
|
|
LETTER "Use letter paper format instead of A4" off
|
2005-01-26 17:57:40 +01:00
|
|
|
|
2005-10-07 16:29:49 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-01-26 17:57:40 +01:00
|
|
|
.if defined(WITH_CUPS)
|
|
|
|
CONFIGURE_ARGS+=--enable-cups
|
2011-05-19 22:31:43 +02:00
|
|
|
LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-client
|
2005-01-26 17:57:40 +01:00
|
|
|
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
|
2005-04-14 00:08:04 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-bsdlpr --with-printcap=/etc/printcap
|
2005-01-26 17:57:40 +01:00
|
|
|
PLIST_SUB+= LPR=""
|
|
|
|
.endif
|
|
|
|
|
2005-06-10 17:04:47 +02:00
|
|
|
.if defined(WITHOUT_LPR) && !defined(WITH_CUPS)
|
2012-05-08 23:26:36 +02:00
|
|
|
IGNORE= define WITH_CUPS or undefine WITHOUT_LPR to install this port
|
2005-06-10 16:54:41 +02:00
|
|
|
.endif
|
|
|
|
|
2005-01-26 17:57:40 +01:00
|
|
|
.if defined(WITH_LETTER)
|
|
|
|
CONFIGURE_ARGS+=--enable-letter
|
2005-02-04 16:31:36 +01:00
|
|
|
BUILD_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps-letter
|
2005-01-26 17:57:40 +01:00
|
|
|
RUN_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps-letter
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-letter
|
2005-02-04 16:31:36 +01:00
|
|
|
BUILD_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps-a4
|
2005-01-26 17:57:40 +01:00
|
|
|
RUN_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps-a4
|
|
|
|
.endif
|
2003-07-28 20:20:20 +02:00
|
|
|
|
2005-04-14 00:08:04 +02:00
|
|
|
post-patch:
|
2007-02-05 21:11:49 +01:00
|
|
|
@${REINPLACE_CMD} -e 's/@LDFLAGS@/& -Wl,-E/' ${WRKSRC}/xfprint/Makefile.in \
|
2005-04-14 00:08:04 +02:00
|
|
|
${WRKSRC}/xfprint-manager/Makefile.in
|
|
|
|
|
2005-10-07 16:29:49 +02:00
|
|
|
.include <bsd.port.post.mk>
|