aboutsummaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorCHOI Junho <cjh@FreeBSD.org>2006-05-02 01:50:19 +0000
committerCHOI Junho <cjh@FreeBSD.org>2006-05-02 01:50:19 +0000
commitc1d4c571622e03b6a0f9a38194b229e33d884c02 (patch)
tree745cba2f8104703a379978658a27fd3546d8f2a6 /print
parent4933c7409454daabaa46541c09086ac6f5a4d303 (diff)
downloadports-c1d4c571622e03b6a0f9a38194b229e33d884c02.tar.gz
ports-c1d4c571622e03b6a0f9a38194b229e33d884c02.zip
Notes
Diffstat (limited to 'print')
-rw-r--r--print/magicfilter/Makefile16
-rw-r--r--print/magicfilter/distinfo6
-rw-r--r--print/magicfilter/files/patch-configure.sh21
-rw-r--r--print/magicfilter/pkg-plist1
4 files changed, 33 insertions, 11 deletions
diff --git a/print/magicfilter/Makefile b/print/magicfilter/Makefile
index 2a3c36bd3652..8159a360fdef 100644
--- a/print/magicfilter/Makefile
+++ b/print/magicfilter/Makefile
@@ -6,28 +6,30 @@
#
PORTNAME= magicfilter
-PORTVERSION= 2.3.b
+PORTVERSION= 2.3.h
CATEGORIES= print
MASTER_SITES= http://www.pell.portland.or.us/~orc/Code/magicfilter/
MAINTAINER= cjh@FreeBSD.org
COMMENT= Customizable, extensible automatic printer filter
+LIB_DEPENDS= magic.1:${PORTSDIR}/sysutils/file
+RUN_DEPENDS= ${LOCALBASE}/bin/file:${PORTSDIR}/sysutils/file
+
USE_GHOSTSCRIPT= yes
GNU_CONFIGURE= yes
-CONFIGURE_SCRIPT= configure.sh
+CONFIGURE_SCRIPT= configure.sh
CONFIGURE_TARGET=
-CONFIGURE_ARGS+= --confdir=${PREFIX}/etc --filterdir=${PREFIX}/libexec/magicfilter --use-fifo
+CONFIGURE_ARGS+= --confdir=${PREFIX}/etc \
+ --filterdir=${PREFIX}/libexec/magicfilter \
+ --use-fifo
+CONFIGURE_ENV+= LOCALBASE=${LOCALBASE}
MAN5= magicfilter.5
MAN8= magicfilter.8
.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 700014
-BROKEN= "Does not build on FreeBSD >= 7.0"
-.endif
-
pre-everything::
.if !defined(WITH_GHOSTSCRIPT_AFPL) || ${WITH_GHOSTSCRIPT_AFPL} != yes
@${ECHO} ""
diff --git a/print/magicfilter/distinfo b/print/magicfilter/distinfo
index 60d3250b0468..30b376c57894 100644
--- a/print/magicfilter/distinfo
+++ b/print/magicfilter/distinfo
@@ -1,3 +1,3 @@
-MD5 (magicfilter-2.3.b.tar.gz) = a0f8ca2f0bb13f36e845eaad02561f65
-SHA256 (magicfilter-2.3.b.tar.gz) = 790149cab6abda1077ebd7f459071527561a5406927d72bd455edaa1f56a9dd9
-SIZE (magicfilter-2.3.b.tar.gz) = 162156
+MD5 (magicfilter-2.3.h.tar.gz) = 9422685a8c246924f956ef119f8ac4e7
+SHA256 (magicfilter-2.3.h.tar.gz) = 8d6a3e3e68a16aa43682cdd77e8a9d28635eef4ea5e8dcf558e9a6fb88f8642c
+SIZE (magicfilter-2.3.h.tar.gz) = 161929
diff --git a/print/magicfilter/files/patch-configure.sh b/print/magicfilter/files/patch-configure.sh
new file mode 100644
index 000000000000..503c4e622054
--- /dev/null
+++ b/print/magicfilter/files/patch-configure.sh
@@ -0,0 +1,21 @@
+--- configure.sh.orig Thu Apr 27 10:32:23 2006
++++ configure.sh Thu Apr 27 10:33:46 2006
+@@ -1061,6 +1061,7 @@
+ AC_LIBS="$AC_LIBS -lz"
+ unset BUILD_MAGIC
+ fi
++ unset BUILD_MAGIC
+
+ if [ "$BUILD_MAGIC" ]; then
+ case $ac_os in
+@@ -1106,8 +1107,8 @@
+ AC_SUB CFMAGIC "cfmagic"
+ else
+ AC_SUB LIBMAGIC ""
+- AC_SUB MAGIC_HEADER ""
+- AC_SUB MAGIC_LIB ""
++ AC_SUB MAGIC_HEADER "-I${LOCALBASE}/include"
++ AC_SUB MAGIC_LIB "-L${LOCALBASE}/lib"
+ AC_SUB MAKE_MAGIC ":"
+ AC_SUB CFMAGIC ""
+ fi
diff --git a/print/magicfilter/pkg-plist b/print/magicfilter/pkg-plist
index 5904301d614f..ba1268d2c8a8 100644
--- a/print/magicfilter/pkg-plist
+++ b/print/magicfilter/pkg-plist
@@ -1,5 +1,4 @@
bin/magicfilter
-etc/mf.magic
libexec/magicfilter/bj10e
libexec/magicfilter/bj200
libexec/magicfilter/bj600