1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00

Add hpoj 0.90, "HP OfficeJet Linux driver; printing, scanning, and photo-card

access".
Marked BROKEN on 5.x: ffs() clash, see i386/41930.

PR:		ports/47717
Submitted by:	Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
This commit is contained in:
Oliver Braun 2003-05-20 07:41:02 +00:00
parent f7e21a2e0d
commit 3956c71db5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=81527
9 changed files with 214 additions and 0 deletions

View File

@ -130,6 +130,7 @@
SUBDIR += hdf
SUBDIR += hdf5
SUBDIR += hobbes-icons-xpm
SUBDIR += hpoj
SUBDIR += hppsmtools
SUBDIR += hs-HOpenGL
SUBDIR += hs-hgl

77
graphics/hpoj/Makefile Normal file
View File

@ -0,0 +1,77 @@
# ex:ts=8
# New ports collection makefile for: hpoj
# Date created: 2003-01-30
# Whom: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
#
# $FreeBSD$
#
PORTNAME= hpoj
PORTVERSION= 0.90
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= hpoj
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
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
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash2
INSTALLS_SHLIB= yes
USE_REINPLACE= yes
USE_GMAKE= yes
USE_PERL5= yes
.include <bsd.port.pre.mk>
.if ${OSVERSION} > 500000
BROKEN= "ffs() clash, see i386/41930"
.endif
.ifndef(WITHOUT_X11)
USE_QT_VER= 3
USE_XLIB= yes
PLIST_SUB+= X11=""
.else
PLIST_SUB+= X11="@comment "
.endif
GNU_CONFIGURE= yes
# Necessary hacks to find libsnmp:
CONFIGURE_ENV= CFLAGS="-L${LOCALBASE}/lib ${PTHREAD_CFLAGS}"
CONFIGURE_ENV+= LDFLAGS="-lcipher -L${LOCALBASE}/lib ${PTHREAD_LIBS}"
.ifdef(WITHOUT_X11)
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
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
@${REINPLACE_CMD} -e 's,/etc/ptal,${PREFIX}/etc/ptal,' ${WRKSRC}/${f}
.endfor
@${REINPLACE_CMD} -e 's,/usr/bin/perl,${PERL},' ${WRKSRC}/scripts/ptal-init.in
@${REINPLACE_CMD} -e 's,/bin/bash,${LOCALBASE}/bin/bash,' ${WRKSRC}/scripts/ptal-init.in
.for f in lib/ptal apps/cmdline lib/sane lib/hpojip
@${REINPLACE_CMD} -e 's,CFLAGS=-O,CFLAGS+= @CFLAGS@,' ${WRKSRC}/${f}/Makefile.in
.endfor
pre-install:
@${INSTALL_SCRIPT} ${WRKSRC}/scripts/ptal-init ${PREFIX}/sbin
@${INSTALL_SCRIPT} ${WRKSRC}/scripts/ptal-cups ${PREFIX}/sbin
post-install:
.ifndef(WITHOUT_X11)
@${INSTALL_PROGRAM} ${WRKSRC}/apps/xojpanel/xojpanel ${X11BASE}/bin
.endif
@${MV} ${PREFIX}/etc/rc.d/ptal-init.sh ${PREFIX}/etc/rc.d/ptal-init.sh.sample
@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${PKGDIR}/pkg-message
.include <bsd.port.post.mk>

1
graphics/hpoj/distinfo Normal file
View File

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

View File

@ -0,0 +1,33 @@
--- Makefile.in.orig Fri Jul 26 14:05:04 2002
+++ Makefile.in Mon May 19 12:12:29 2003
@@ -5,6 +5,9 @@
SUBDIRS=@SUBDIRS@
DISTCLEANS=Makefile config.cache config.log config.status scripts/ptal-init
+CFLAGS+= @CFLAGS@
+LDFLAGS+= @LDFLAGS@
+
all: check_generated just_compile
check_generated:
@@ -71,7 +74,7 @@
sbindir_program=@sbindir_program@
libdir=@libdir@
-libdir_program=lib/hpojip/libhpojip.so.*.* lib/ptal/libptal.so.*.* lib/sane/libsane-hpoj.so.*.*
+libdir_program=lib/hpojip/libhpojip.so.[0-9] lib/ptal/libptal.so.[0-9] lib/sane/libsane-hpoj.so.[0-9]
includedir=@includedir@
includedir_data=@includedir_data@
@@ -101,9 +104,9 @@
@ cd lib ; \
for comp in hpojip ptal sane ; do \
cd $$comp ; \
- for file in lib$$comp* ; do \
+ for file in lib$$comp*.so ; do \
if test -L $$file ; then \
- $(LN_S) -f lib$$comp*.so.*.* $(libdir)/$$file ; \
+ $(LN_S) -f lib$$comp*.so.[0-9] $(libdir)/$$file ; \
fi ; \
done ; \
cd .. ; \

View File

@ -0,0 +1,13 @@
--- apps/xojpanel/Makefile.in.orig Thu Jun 13 02:40:44 2002
+++ apps/xojpanel/Makefile.in Tue Feb 4 09:58:29 2003
@@ -2,8 +2,8 @@
MOC=@QT_MOC@
-LFLAGS = @LIBRARY_CMDLINE@ @LIBQT_CMDLINE@ -lptal
-CFLAGS = -O -Wall -g -I/usr/X11R6/include @INCLUDE_CMDLINE@
+LFLAGS += @LDFLAGS@ @LIBRARY_CMDLINE@ @LIBQT_CMDLINE@ -lptal
+CFLAGS += @CFLAGS@ -Wall -g @INCLUDE_CMDLINE@
PIXMAPS = hpojlcd.xpm hpoj_lcdmon.xpm hpoj_mini.xpm
COMMON_HEADERS = Makefile xojpanel.h

View File

@ -0,0 +1,19 @@
--- configure.orig Thu Aug 8 00:26:38 2002
+++ configure Thu Jan 30 17:03:45 2003
@@ -561,7 +561,7 @@
# Set up default make subdirectory and install file lists.
SUBDIRS="lib/hpojip lib/ptal lib/sane mlcd apps/cmdline"
bindir_program="apps/cmdline/ptal-connect apps/cmdline/ptal-device apps/cmdline/ptal-devid apps/cmdline/ptal-pml apps/cmdline/ptal-hp apps/cmdline/hpojip-test"
-sbindir_program="mlcd/ptal-mlcd apps/cmdline/ptal-printd apps/cmdline/ptal-photod scripts/ptal-init scripts/ptal-cups"
+sbindir_program="mlcd/ptal-mlcd apps/cmdline/ptal-printd apps/cmdline/ptal-photod"
includedir_data="include/hpojip.h include/ptal.h"
# Select compilers and utilities.
@@ -1597,7 +1597,6 @@
if test -n "$QT_MOC" -a -n "$QT_INCLUDE_PATH" -a -n "$LIBQT_CMDLINE" ; then
QT_PATH=$dir
SUBDIRS="$SUBDIRS apps/xojpanel"
- bindir_program="$bindir_program apps/xojpanel/xojpanel"
INCLUDE_PATH=$INCLUDE_PATH:$QT_INCLUDE_PATH
LIBRARY_PATH=$LIBRARY_PATH:$QT_PATH/lib
break

11
graphics/hpoj/pkg-descr Normal file
View File

@ -0,0 +1,11 @@
This is the FreeBSD port of the HP-sponsored project to
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.
WWW: http://hpoj.sourceforge.net/

View File

@ -0,0 +1,4 @@
*****************************************************************
You should now run '%%PREFIX%%/sbin/ptal-init setup' as root
to configure your HP OfficeJet devices.
*****************************************************************

55
graphics/hpoj/pkg-plist Normal file
View File

@ -0,0 +1,55 @@
bin/ptal-connect
bin/ptal-device
bin/ptal-devid
bin/ptal-pml
bin/ptal-print
bin/ptal-hp
bin/hpojip-test
sbin/ptal-mlcd
sbin/ptal-printd
sbin/ptal-photod
sbin/ptal-init
sbin/ptal-cups
lib/sane/libsane-hpoj.so.1
lib/libhpojip.so
lib/libhpojip.so.0
lib/libptal.so
lib/libptal.so.0
lib/libsane-hpoj.so
lib/libsane-hpoj.so.1
include/hpojip.h
include/ptal.h
etc/rc.d/ptal-init.sh.sample
%%PORTDOCS%%share/doc/hpoj/COPYING
%%PORTDOCS%%share/doc/hpoj/LICENSE
%%PORTDOCS%%share/doc/hpoj/LICENSE.OpenSSL
%%PORTDOCS%%share/doc/hpoj/README
%%PORTDOCS%%share/doc/hpoj/index.html
%%PORTDOCS%%share/doc/hpoj/info-devname.html
%%PORTDOCS%%share/doc/hpoj/info-pml-objects.html
%%PORTDOCS%%share/doc/hpoj/info-protocols.html
%%PORTDOCS%%share/doc/hpoj/libptal.html
%%PORTDOCS%%share/doc/hpoj/libsane-hpoj.html
%%PORTDOCS%%share/doc/hpoj/ptal-connect.html
%%PORTDOCS%%share/doc/hpoj/ptal-device.html
%%PORTDOCS%%share/doc/hpoj/ptal-devid.html
%%PORTDOCS%%share/doc/hpoj/ptal-hp.html
%%PORTDOCS%%share/doc/hpoj/ptal-init.html
%%PORTDOCS%%share/doc/hpoj/ptal-mlcd.html
%%PORTDOCS%%share/doc/hpoj/ptal-photod.html
%%PORTDOCS%%share/doc/hpoj/ptal-pml.html
%%PORTDOCS%%share/doc/hpoj/ptal-printd.html
%%PORTDOCS%%share/doc/hpoj/setup-build-details.html
%%PORTDOCS%%share/doc/hpoj/setup-build.html
%%PORTDOCS%%share/doc/hpoj/setup-connect-details.html
%%PORTDOCS%%share/doc/hpoj/setup-connect.html
%%PORTDOCS%%share/doc/hpoj/setup-photo-details.html
%%PORTDOCS%%share/doc/hpoj/setup-photo.html
%%PORTDOCS%%share/doc/hpoj/setup-print-details.html
%%PORTDOCS%%share/doc/hpoj/setup-print.html
%%PORTDOCS%%share/doc/hpoj/setup-scan-details.html
%%PORTDOCS%%share/doc/hpoj/setup-scan.html
%%PORTDOCS%%share/doc/hpoj/xojpanel.html
%%PORTDOCS%%@dirrm share/doc/hpoj
%%X11%%@cwd %%X11BASE%%
%%X11%%bin/xojpanel