aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Dupre <ale@FreeBSD.org>2004-11-19 07:20:38 +0000
committerAlex Dupre <ale@FreeBSD.org>2004-11-19 07:20:38 +0000
commita4471ae836edfe2522ca4c19f7d48402c7a64586 (patch)
tree9de3eff5367cc4a3b0868ee96bbc05f8382b6a03
parentd7b932e93896f6397527bb51cd30a29966d1ac91 (diff)
downloadports-a4471ae836edfe2522ca4c19f7d48402c7a64586.tar.gz
ports-a4471ae836edfe2522ca4c19f7d48402c7a64586.zip
Notes
-rw-r--r--sysutils/pecl-fileinfo/Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/sysutils/pecl-fileinfo/Makefile b/sysutils/pecl-fileinfo/Makefile
index 5d45a5d15360..f1a266cb8bd3 100644
--- a/sysutils/pecl-fileinfo/Makefile
+++ b/sysutils/pecl-fileinfo/Makefile
@@ -17,11 +17,18 @@ DIST_SUBDIR= PECL
MAINTAINER= ale@FreeBSD.org
COMMENT= A PECL extension to retrieve info about files
-LIB_DEPENDS= magic.1:${PORTSDIR}/sysutils/file
-
USE_PHP= yes
USE_PHPEXT= yes
-CONFIGURE_ARGS= --with-fileinfo=${LOCALBASE}
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 502128
+LIB_DEPENDS= magic.1:${PORTSDIR}/sysutils/file
+MAGICBASE= ${LOCALBASE}
+.else
+MAGICBASE= /usr
+.endif
+
+CONFIGURE_ARGS= --with-fileinfo=${MAGICBASE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>