aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authorcjh <cjh@FreeBSD.org>2006-05-02 09:50:19 +0800
committercjh <cjh@FreeBSD.org>2006-05-02 09:50:19 +0800
commitac0805450f2bdca7951f1cc153d48b13bf1dc84a (patch)
tree712860a30342ff5a0d2bd745a9000e44a918f286 /print
parent259aae736119a17e5ba45d808bb57590b9e97ec8 (diff)
downloadfreebsd-ports-graphics-ac0805450f2bdca7951f1cc153d48b13bf1dc84a.tar.gz
freebsd-ports-graphics-ac0805450f2bdca7951f1cc153d48b13bf1dc84a.tar.zst
freebsd-ports-graphics-ac0805450f2bdca7951f1cc153d48b13bf1dc84a.zip
Update to 2.3.h.
Add RUN_DEPENDS not to confuse with built-in file and sysutils/file. PR: ports/96495 Submitted by: Rong-En Fan <rafan@infor.org>
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 2a3c36bd365..8159a360fde 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 60d3250b046..30b376c5789 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 00000000000..503c4e62205
--- /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 5904301d614..ba1268d2c8a 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