summaryrefslogtreecommitdiff
path: root/lang/ocaml/Makefile
diff options
context:
space:
mode:
authortonio <tonio>2010-10-28 20:46:07 +0000
committertonio <tonio>2010-10-28 20:46:07 +0000
commit9b900a2c7c3be6146eb586c899a4a611570f18c9 (patch)
tree526f1fe206ac72dd69736c6c1f3227715f1d89cd /lang/ocaml/Makefile
parent263ad33aaff3a6915a484ab5b116ba04faac0593 (diff)
downloadpkgsrc-9b900a2c7c3be6146eb586c899a4a611570f18c9.tar.gz
Add PLIST support for natdynlink
This unbreaks make package for darwin and linux
Diffstat (limited to 'lang/ocaml/Makefile')
-rw-r--r--lang/ocaml/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/lang/ocaml/Makefile b/lang/ocaml/Makefile
index f5c06346e12..a13c4da3b21 100644
--- a/lang/ocaml/Makefile
+++ b/lang/ocaml/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.66 2010/08/21 15:02:14 wiz Exp $
+# $NetBSD: Makefile,v 1.67 2010/10/28 20:46:07 tonio Exp $
PKG_DESTDIR_SUPPORT= user-destdir
@@ -41,6 +41,14 @@ PLIST_SRC+= ${PKGDIR}/PLIST.prof
. endif
.endif
+.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "x86_64")
+. if !empty(MACHINE_PLATFORM:MLinux-*-*) || \
+ !empty(MACHINE_PLATFORM:MDarwin-*-*) || \
+ !empty(MACHINE_PLATFORM:MFreeBSD-*-*)
+PLIST_SRC+= ${PKGDIR}/PLIST.natdynlink
+. endif
+.endif
+
# Common ocaml files.
PLIST_SRC+= ${PKGDIR}/PLIST