diff options
Diffstat (limited to 'print/hplip/Makefile')
-rw-r--r-- | print/hplip/Makefile | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/print/hplip/Makefile b/print/hplip/Makefile index 1fad4c031d46..93e42d48ff9a 100644 --- a/print/hplip/Makefile +++ b/print/hplip/Makefile @@ -6,7 +6,7 @@ # PORTNAME= hplip -PORTVERSION= 0.9.10 +PORTVERSION= 0.9.11 CATEGORIES= print MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= hplip @@ -19,7 +19,6 @@ LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \ cups.2:${PORTSDIR}/print/cups-base \ usb:${PORTSDIR}/devel/libusb \ netsnmp.9:${PORTSDIR}/net-mgmt/net-snmp -RUN_DEPENDS= pylupdate:${PORTSDIR}/x11-toolkits/py-qt CONFLITS= hpijs-* foomatic-filters-* @@ -39,12 +38,22 @@ MAKE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \ PKGDEINSTALL= ${PKGINSTALL} +OPTIONS= GUI "build with Python QT" on + .include <bsd.port.pre.mk> -.if ${OSVERSION} < 5000000 +.if ${OSVERSION} < 500000 BROKEN= does not compile .endif +.if exists(${LOCALBASE}/bin/pylupdate) +WITH_GUI= yes +.endif + +.if defined(WITH_GUI) +RUN_DEPENDS+= pylupdate:${PORTSDIR}/x11-toolkits/py-qt +.endif + post-extract: @${RM} -r ${WRKSRC}/data/images/CVS @@ -63,7 +72,6 @@ post-patch: s|/usr/lib/cups/filter|${LOCALBASE}/libexec/cups/filter|g' \ ${WRKSRC}/base/g.py \ ${WRKSRC}/fax/backend/hpfax.py \ - ${WRKSRC}/hplip_readme.html \ ${WRKSRC}/hpssd.py \ ${WRKSRC}/io/hpiod/hpiod.h \ ${WRKSRC}/prnt/hpijs/hplip_api.h \ |