aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
Diffstat (limited to 'print')
-rw-r--r--print/apsfilter/Makefile3
-rw-r--r--print/apsfilter/files/patch-bin::aps2file8
-rw-r--r--print/apsfilter/scripts/pre-configure5
3 files changed, 16 insertions, 0 deletions
diff --git a/print/apsfilter/Makefile b/print/apsfilter/Makefile
index d6b206652d89..794c8daaff5d 100644
--- a/print/apsfilter/Makefile
+++ b/print/apsfilter/Makefile
@@ -87,6 +87,9 @@ RUN_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps-letter
RUN_DEPENDS+= psnup:${PORTSDIR}/print/psutils-letter
.endif
+# needed for aps2file :-/
+RUN_DEPENDS+= bash:${PORTSDIR}/shells/bash2
+
MAN1= apsfilter.1
MAN5= apsfilterrc.5
diff --git a/print/apsfilter/files/patch-bin::aps2file b/print/apsfilter/files/patch-bin::aps2file
new file mode 100644
index 000000000000..e614c8cb38e5
--- /dev/null
+++ b/print/apsfilter/files/patch-bin::aps2file
@@ -0,0 +1,8 @@
+--- bin/aps2file.orig Mon Dec 17 19:35:50 2001
++++ bin/aps2file Mon Dec 17 19:36:33 2001
+@@ -1,4 +1,4 @@
+-#!/bin/sh
++#! !!PREFIX!!/bin/bash
+ #
+ # $ApsCVS: src/apsfilter/bin/aps2file,v 1.1 2001/11/17 15:21:52 andreas Exp $
+ #
diff --git a/print/apsfilter/scripts/pre-configure b/print/apsfilter/scripts/pre-configure
new file mode 100644
index 000000000000..35c8ac22508d
--- /dev/null
+++ b/print/apsfilter/scripts/pre-configure
@@ -0,0 +1,5 @@
+#! /bin/sh
+
+perl -pi -e "s|!!PREFIX!!|$PREFIX|" ${WRKSRC}/bin/aps2file
+
+exit 0