summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2002-11-22 07:33:41 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2002-11-22 07:33:41 +0000
commitee82f8537e50b8809f7804626cab3f471e95123a (patch)
treed7672cf9454ada370a9cedaa67b175c7aa0b4a84
parentUpdate to 0.13.2.90. (diff)
Add gfax, a GTK+ front-end to hylafax.
PR: 34103 Submitted by: John Merryweather Cooper <john_m_cooper@yahoo.com>
Notes
Notes: svn path=/head/; revision=70733
-rw-r--r--comms/Makefile1
-rw-r--r--comms/gfax/Makefile55
-rw-r--r--comms/gfax/distinfo1
-rw-r--r--comms/gfax/files/patch-gfax.install-lpr14
-rw-r--r--comms/gfax/files/patch-lpr.gfax13
-rw-r--r--comms/gfax/files/patch-src_Makefile.in11
-rw-r--r--comms/gfax/pkg-comment1
-rw-r--r--comms/gfax/pkg-descr5
-rw-r--r--comms/gfax/pkg-plist19
9 files changed, 120 insertions, 0 deletions
diff --git a/comms/Makefile b/comms/Makefile
index da3bc03a438a..ce9873f51664 100644
--- a/comms/Makefile
+++ b/comms/Makefile
@@ -12,6 +12,7 @@
SUBDIR += conserver-com
SUBDIR += ecu
SUBDIR += efax
+ SUBDIR += gfax
SUBDIR += ghfaxviewer
SUBDIR += gkermit
SUBDIR += gnokii
diff --git a/comms/gfax/Makefile b/comms/gfax/Makefile
new file mode 100644
index 000000000000..dd49cac99c35
--- /dev/null
+++ b/comms/gfax/Makefile
@@ -0,0 +1,55 @@
+# New ports collection makefile for: gfax
+# Date created: 20 January 2002
+# Whom: John Merryweather Cooper <jmcoopr@webmail.bmi.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gfax
+PORTVERSION= 0.4.2
+CATEGORIES= comms print
+MASTER_SITES= ${MASTER_SITE_GNOME}
+MASTER_SITE_SUBDIR= sources/${PORTNAME}/0.4
+DIST_SUBDIR= gnome
+
+MAINTAINER= coop9211@uidaho.edu
+
+BUILD_DEPENDS= ${LOCALBASE}/share/automake/install-sh:${PORTSDIR}/devel/automake \
+ ${LOCALBASE}/bin/sendfax:${PORTSDIR}/comms/hylafax
+RUN_DEPENDS= ${LOCALBASE}/bin/sendfax:${PORTSDIR}/comms/hylafax
+
+USE_GMAKE= yes
+USE_X_PREFIX= yes
+USE_GNOMENG= yes
+USE_REINPLACE= yes
+USE_GNOME= gnomeprefix gnomehack libpanel libcapplet libglade
+GNU_CONFIGURE= yes
+
+CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS}"
+
+post-extract:
+ @${LN} -sf ${LOCALBASE}/share/automake/install-sh ${WRKSRC}/install-sh
+ @${LN} -sf ${LOCALBASE}/share/automake/missing ${WRKSRC}/missing
+ @${LN} -sf ${LOCALBASE}/share/automake/mkinstalldirs ${WRKSRC}/mkinstalldirs
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
+ s|DATADIRNAME=lib|DATADIRNAME=share|g' \
+ ${WRKSRC}/configure
+ @find ${WRKSRC} -name "Makefile.in*" | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|[(]gnomedatadir[)]/gnome|(gnomedatadir)|g'
+
+pre-install:
+ @${MV} ${WRKSRC}/gfax.install-lpr ${WRKSRC}/gfax.install-lpr.orig
+ @${SED} \
+ -e 's#%%PREFIX%%#${PREFIX}/#' \
+ ${WRKSRC}/gfax.install-lpr.orig > ${WRKSRC}/gfax.install-lpr
+ @${MV} ${WRKSRC}/lpr.gfax ${WRKSRC}/lpr.gfax.orig
+ @${SED} \
+ -e 's#%%PREFIX%%#${PREFIX}/#' \
+ ${WRKSRC}/lpr.gfax.orig > ${WRKSRC}/lpr.gfax
+
+post-install:
+ @${SH} ${PREFIX}/bin/gfax.install-lpr
+
+.include <bsd.port.mk>
diff --git a/comms/gfax/distinfo b/comms/gfax/distinfo
new file mode 100644
index 000000000000..a53d052f24a7
--- /dev/null
+++ b/comms/gfax/distinfo
@@ -0,0 +1 @@
+MD5 (gnome/gfax-0.4.2.tar.gz) = 815523780287a97133e85585f0319a20
diff --git a/comms/gfax/files/patch-gfax.install-lpr b/comms/gfax/files/patch-gfax.install-lpr
new file mode 100644
index 000000000000..2895bfb0eb45
--- /dev/null
+++ b/comms/gfax/files/patch-gfax.install-lpr
@@ -0,0 +1,14 @@
+--- gfax.install-lpr Sun Dec 12 10:47:19 1999
++++ gfax.install-lpr.new Sun Jan 20 21:17:31 2002
+@@ -10,9 +10,10 @@
+ #
+ BINDIR=/usr/bin
+ LPRBINDIR=/usr/bin
++PREFIX=%%PREFIX%%/bin
+
+ if [ ! -x $LPRBINDIR/lpr.dist ]; then
+ mv $LPRBINDIR/lpr $LPRBINDIR/lpr.dist
+- ln -s $BINDIR/lpr.gfax $BINDIR/lpr
++ ln -s $PREFIX/lpr.gfax $BINDIR/lpr
+ chmod +x $BINDIR/lpr
+ fi
diff --git a/comms/gfax/files/patch-lpr.gfax b/comms/gfax/files/patch-lpr.gfax
new file mode 100644
index 000000000000..c638a7bd44d0
--- /dev/null
+++ b/comms/gfax/files/patch-lpr.gfax
@@ -0,0 +1,13 @@
+--- lpr.gfax Sun Dec 12 10:47:16 1999
++++ lpr.gfax.new Sun Jan 20 21:38:07 2002
+@@ -29,8 +29,9 @@
+ FAX=
+ SPOOL_DIR=/tmp
+
+-BINDIR=/usr/bin
++#BINDIR=/usr/bin
+ #BINDIR=/usr/local/bin
++BINDIR=%%PREFIX%%/bin
+
+ for i in $*
+ do
diff --git a/comms/gfax/files/patch-src_Makefile.in b/comms/gfax/files/patch-src_Makefile.in
new file mode 100644
index 000000000000..472423e6de9c
--- /dev/null
+++ b/comms/gfax/files/patch-src_Makefile.in
@@ -0,0 +1,11 @@
+--- src/Makefile.in.orig Thu Nov 21 21:50:20 2002
++++ src/Makefile.in Thu Nov 21 21:50:42 2002
+@@ -109,7 +109,7 @@
+ cxxflags_set = @cxxflags_set@
+ l = @l@
+
+-INCLUDES = -I$(top_srcdir)/intl -I$(top_srcdir)/ftplib-3.1/linux -DGLADEDIR=\""$(gladedir)"\" -DGFAX_DATADIR=\""$(pkgdatadir)"\" $(GNOME_INCLUDEDIR)
++INCLUDES = -I$(top_srcdir)/intl -I$(top_srcdir)/ftplib-3.1/linux -DGLADEDIR=\""$(gladedir)"\" -DGFAX_DATADIR=\""$(pkgdatadir)"\" $(GNOME_INCLUDEDIR) `gnome-config --cflags libglade`
+
+
+ bin_PROGRAMS = gfax
diff --git a/comms/gfax/pkg-comment b/comms/gfax/pkg-comment
new file mode 100644
index 000000000000..39727cae66e7
--- /dev/null
+++ b/comms/gfax/pkg-comment
@@ -0,0 +1 @@
+A GNOME pop-up fax manager
diff --git a/comms/gfax/pkg-descr b/comms/gfax/pkg-descr
new file mode 100644
index 000000000000..20e9a0125f39
--- /dev/null
+++ b/comms/gfax/pkg-descr
@@ -0,0 +1,5 @@
+GFax is a front end fax program that performs as the familiar pop-up fax
+manager when one prints to a fax printer. GFax works with all X programs
+that use lpr as the printer interface--even the command line.
+
+WWW: http://www.gmsys.com/
diff --git a/comms/gfax/pkg-plist b/comms/gfax/pkg-plist
new file mode 100644
index 000000000000..742a7dfafba8
--- /dev/null
+++ b/comms/gfax/pkg-plist
@@ -0,0 +1,19 @@
+bin/gfax
+bin/lpr.gfax
+bin/gfax.install-lpr
+bin/gfax.uninstall-lpr
+share/gnome/apps/Applications/gfax.desktop
+share/gnome/gfax/glade/gfax.glade
+share/gnome/gfax/glade/setup.glade
+share/gnome/gfax/glade/mgettydruid.glade
+share/gnome/gfax/glade/spool.glade
+share/gnome/help/gfax/C/gfax.html
+share/gnome/help/gfax/C/topic.dat
+share/gnome/help/gfax/C/index.html
+share/gnome/pixmaps/gfax.png
+@unexec /bin/sh %D/bin/gfax.uninstall-lpr
+@exec /bin/sh %D/bin/gfax.install-lpr
+@dirrm share/gnome/gfax/glade
+@dirrm share/gnome/gfax
+@dirrm share/gnome/help/gfax/C
+@dirrm share/gnome/help/gfax