1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

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)
This commit is contained in:
Mark Linimon 2003-12-17 08:56:59 +00:00
parent c6fb4c349d
commit 6b56da54fd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=96026
4 changed files with 20 additions and 7 deletions

View File

@ -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

View File

@ -1 +1 @@
MD5 (hpoj-0.90.tgz) = dd76385c20bccabf6f5446b1004d8372
MD5 (hpoj-0.91.tgz) = 0e083aeab9b00495aa433fa9465456e0

View File

@ -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.

View File

@ -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