aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2006-02-11 11:23:54 +0800
committerkuriyama <kuriyama@FreeBSD.org>2006-02-11 11:23:54 +0800
commit85b9d92ebed1ee61dd89813a2e484d063d19b8f7 (patch)
tree44fe1f906116bcbf708b926a0ee1384171f3232d /textproc
parent35ae90d34ce47904ebc877a22069b5396c998800 (diff)
downloadfreebsd-ports-gnome-85b9d92ebed1ee61dd89813a2e484d063d19b8f7.tar.gz
freebsd-ports-gnome-85b9d92ebed1ee61dd89813a2e484d063d19b8f7.tar.zst
freebsd-ports-gnome-85b9d92ebed1ee61dd89813a2e484d063d19b8f7.zip
- Use $OSREL and $OSVERSION instead of .exists() to check magic.h
existance (unbreaking bento build on 4.x). Hint by: kris
Diffstat (limited to 'textproc')
-rw-r--r--textproc/rast/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/textproc/rast/Makefile b/textproc/rast/Makefile
index fc446636c0ee..32fb9c9b69f1 100644
--- a/textproc/rast/Makefile
+++ b/textproc/rast/Makefile
@@ -64,11 +64,13 @@ CONFIGURE_ARGS+= --without-xmlrpc-c-config
PLIST_SUB+= WITH_XMLRPC_C="@comment "
.endif
+.include <bsd.port.pre.mk>
+
# For 4.x systems.
-.if !exists(/usr/include/magic.h)
+.if (${OSREL} <= 4 || ${OSVERSION} <= 503000)
BUILD_DEPENDS+= ${LOCALBASE}/include/magic.h:${PORTSDIR}/sysutils/file
.endif
DEFAULT_ENCODING?= euc_jp
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>