aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobraun <obraun@FreeBSD.org>2003-05-20 15:41:02 +0800
committerobraun <obraun@FreeBSD.org>2003-05-20 15:41:02 +0800
commit8e338c893c31afe6ba1b0459208e7fa97ac3f2af (patch)
tree55071b2e6d44254022df87aa9854cbb673210672
parentab5edcefcd83690b5f2e5dd00f0248e62f07fee8 (diff)
downloadfreebsd-ports-gnome-8e338c893c31afe6ba1b0459208e7fa97ac3f2af.tar.gz
freebsd-ports-gnome-8e338c893c31afe6ba1b0459208e7fa97ac3f2af.tar.zst
freebsd-ports-gnome-8e338c893c31afe6ba1b0459208e7fa97ac3f2af.zip
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>
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/hpoj/Makefile77
-rw-r--r--graphics/hpoj/distinfo1
-rw-r--r--graphics/hpoj/files/patch-Makefile.in33
-rw-r--r--graphics/hpoj/files/patch-apps-xojpanel-Makefile.in13
-rw-r--r--graphics/hpoj/files/patch-configure19
-rw-r--r--graphics/hpoj/pkg-descr11
-rw-r--r--graphics/hpoj/pkg-message4
-rw-r--r--graphics/hpoj/pkg-plist55
9 files changed, 214 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index 24f400e24981..32956703522e 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -130,6 +130,7 @@
SUBDIR += hdf
SUBDIR += hdf5
SUBDIR += hobbes-icons-xpm
+ SUBDIR += hpoj
SUBDIR += hppsmtools
SUBDIR += hs-HOpenGL
SUBDIR += hs-hgl
diff --git a/graphics/hpoj/Makefile b/graphics/hpoj/Makefile
new file mode 100644
index 000000000000..f26c1ed8aa88
--- /dev/null
+++ b/graphics/hpoj/Makefile
@@ -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>
diff --git a/graphics/hpoj/distinfo b/graphics/hpoj/distinfo
new file mode 100644
index 000000000000..5c7d5a23d3cd
--- /dev/null
+++ b/graphics/hpoj/distinfo
@@ -0,0 +1 @@
+MD5 (hpoj-0.90.tgz) = dd76385c20bccabf6f5446b1004d8372
diff --git a/graphics/hpoj/files/patch-Makefile.in b/graphics/hpoj/files/patch-Makefile.in
new file mode 100644
index 000000000000..ebfb810275f0
--- /dev/null
+++ b/graphics/hpoj/files/patch-Makefile.in
@@ -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 .. ; \
diff --git a/graphics/hpoj/files/patch-apps-xojpanel-Makefile.in b/graphics/hpoj/files/patch-apps-xojpanel-Makefile.in
new file mode 100644
index 000000000000..4b06fa6c44c5
--- /dev/null
+++ b/graphics/hpoj/files/patch-apps-xojpanel-Makefile.in
@@ -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
diff --git a/graphics/hpoj/files/patch-configure b/graphics/hpoj/files/patch-configure
new file mode 100644
index 000000000000..ca2d60d5d0ec
--- /dev/null
+++ b/graphics/hpoj/files/patch-configure
@@ -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
diff --git a/graphics/hpoj/pkg-descr b/graphics/hpoj/pkg-descr
new file mode 100644
index 000000000000..daead8c0142c
--- /dev/null
+++ b/graphics/hpoj/pkg-descr
@@ -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/
diff --git a/graphics/hpoj/pkg-message b/graphics/hpoj/pkg-message
new file mode 100644
index 000000000000..eebeef64c1ed
--- /dev/null
+++ b/graphics/hpoj/pkg-message
@@ -0,0 +1,4 @@
+*****************************************************************
+You should now run '%%PREFIX%%/sbin/ptal-init setup' as root
+to configure your HP OfficeJet devices.
+*****************************************************************
diff --git a/graphics/hpoj/pkg-plist b/graphics/hpoj/pkg-plist
new file mode 100644
index 000000000000..314d43d95a64
--- /dev/null
+++ b/graphics/hpoj/pkg-plist
@@ -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