summaryrefslogtreecommitdiffstats
path: root/graphics/hpoj
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2003-12-17 08:56:59 +0000
committerlinimon <linimon@FreeBSD.org>2003-12-17 08:56:59 +0000
commit0ff1c274960c007263dd13c207c60302f39420fd (patch)
tree282074e3a1f5818396bb656e1a886ef06f6cf16b /graphics/hpoj
parent8c0cc6ece1292d595678e33aaecbd3f40a147516 (diff)
downloadFreeBSD-ports-0ff1c274960c007263dd13c207c60302f39420fd.zip
FreeBSD-ports-0ff1c274960c007263dd13c207c60302f39420fd.tar.gz
Update to 0.91. Changes: adds support for the USB versions; adds
CUPS support. I was hoping to test this on 5.x (where my own hpoj device currently lives) but I forgot about the unrelated compile problem (ffs conflict). I will undertake to add that to my list of things to do since it also affects cqcam which I also use. (I will happily accept any pointers to anyone who has solved this problem in some other port). PR: ports/60064 Submitted by: Volker Stolz <stolz@i2.informatik.rwth-aachen.de> (maintainer)
Diffstat (limited to 'graphics/hpoj')
-rw-r--r--graphics/hpoj/Makefile22
-rw-r--r--graphics/hpoj/distinfo2
-rw-r--r--graphics/hpoj/pkg-descr2
-rw-r--r--graphics/hpoj/pkg-plist1
4 files changed, 20 insertions, 7 deletions
diff --git a/graphics/hpoj/Makefile b/graphics/hpoj/Makefile
index 7a05055..533b5af 100644
--- a/graphics/hpoj/Makefile
+++ b/graphics/hpoj/Makefile
@@ -7,8 +7,7 @@
#
PORTNAME= hpoj
-PORTVERSION= 0.90
-PORTREVISION= 1
+PORTVERSION= 0.91
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= hpoj
@@ -18,9 +17,22 @@ MAINTAINER= stolz@i2.informatik.rwth-aachen.de
COMMENT= "HP OfficeJet Linux driver; printing, scanning, and photo-card access"
LIB_DEPENDS= sane.1:${PORTSDIR}/graphics/sane-backends \
- snmp.4:${PORTSDIR}/net/net-snmp4
+ snmp.4:${PORTSDIR}/net/net-snmp4 \
+ usb:${PORTSDIR}/devel/libusb
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash2
+.if !defined(WITHOUT_CUPS)
+WITH_CUPS= yes
+.endif
+
+.if defined(WITH_CUPS)
+LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-base
+CONFIGURE_ARGS+=--with-cups-backend=${LOCALBASE}/libexec/cups/backend
+PLIST_SUB+= CUPS=""
+.else
+PLIST_SUB+= CUPS="@comment "
+.endif
+
INSTALLS_SHLIB= yes
USE_REINPLACE= yes
@@ -53,12 +65,14 @@ CONFIGURE_ENV= CFLAGS="${CFLAGS} -L${LOCALBASE}/lib ${PTHREAD_CFLAGS}"
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS} -lcipher -L${LOCALBASE}/lib ${PTHREAD_LIBS}"
.ifdef(WITHOUT_X11)
-CONFIGURE_ARGS= --without-qt
+CONFIGURE_ARGS+= --without-qt
.endif
pre-fetch:
@${ECHO} You can disable building \'xojpanel\' and avoid the dependency on X11 and QT3 \
by restarting the build with WITHOUT_X11
+ @${ECHO} You can disable CUPS support with WITHOUT_CUPS
+
post-patch:
.for f in doc/info-devname.html doc/libptal.html doc/ptal-init.html doc/setup-photo-details.html \
doc/setup-print-details.html lib/ptal/ptal.c scripts/ptal-init.in
diff --git a/graphics/hpoj/distinfo b/graphics/hpoj/distinfo
index 5c7d5a2..57b72f7 100644
--- a/graphics/hpoj/distinfo
+++ b/graphics/hpoj/distinfo
@@ -1 +1 @@
-MD5 (hpoj-0.90.tgz) = dd76385c20bccabf6f5446b1004d8372
+MD5 (hpoj-0.91.tgz) = 0e083aeab9b00495aa433fa9465456e0
diff --git a/graphics/hpoj/pkg-descr b/graphics/hpoj/pkg-descr
index daead8c..30df503 100644
--- a/graphics/hpoj/pkg-descr
+++ b/graphics/hpoj/pkg-descr
@@ -3,8 +3,6 @@ develop Linux support for most Hewlett-Packard OfficeJet,
PSC, LaserJet, and PhotoSmart printer multi-function
peripherals (MFPs), which depending on the model can print,
scan, copy, fax, and/or access digital camera memory cards.
-Only the parallel port and JetDirect (no USB!) are supported
-under FreeBSD.
Includes a xsane plugin.
diff --git a/graphics/hpoj/pkg-plist b/graphics/hpoj/pkg-plist
index 314d43d..8b4d453 100644
--- a/graphics/hpoj/pkg-plist
+++ b/graphics/hpoj/pkg-plist
@@ -20,6 +20,7 @@ lib/libsane-hpoj.so.1
include/hpojip.h
include/ptal.h
etc/rc.d/ptal-init.sh.sample
+%%CUPS%%libexec/cups/backend/ptal
%%PORTDOCS%%share/doc/hpoj/COPYING
%%PORTDOCS%%share/doc/hpoj/LICENSE
%%PORTDOCS%%share/doc/hpoj/LICENSE.OpenSSL
OpenPOWER on IntegriCloud