summaryrefslogtreecommitdiff
path: root/x11/ocaml-graphics
diff options
context:
space:
mode:
Diffstat (limited to 'x11/ocaml-graphics')
-rw-r--r--x11/ocaml-graphics/Makefile11
-rw-r--r--x11/ocaml-graphics/PLIST4
2 files changed, 12 insertions, 3 deletions
diff --git a/x11/ocaml-graphics/Makefile b/x11/ocaml-graphics/Makefile
index 8b9af97a5df..a8de46bd2e1 100644
--- a/x11/ocaml-graphics/Makefile
+++ b/x11/ocaml-graphics/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2009/09/07 21:48:14 tonio Exp $
+# $NetBSD: Makefile,v 1.11 2010/11/07 18:36:08 tonio Exp $
PKG_DESTDIR_SUPPORT= user-destdir
@@ -26,6 +26,15 @@ INSTALL_TARGET+= installopt
PLIST.opt= yes
.endif
+PLIST_VARS+= natdynlib
+.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "x86_64")
+. if !empty(MACHINE_PLATFORM:MLinux-*-*) || \
+ !empty(MACHINE_PLATFORM:MDarwin-*-*) || \
+ !empty(MACHINE_PLATFORM:MFreeBSD-*-*)
+PLIST.natdynlib= yes
+. endif
+.endif
+
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
.if ${OPSYS} == "Darwin"
diff --git a/x11/ocaml-graphics/PLIST b/x11/ocaml-graphics/PLIST
index 8b0220428ee..98469a5334c 100644
--- a/x11/ocaml-graphics/PLIST
+++ b/x11/ocaml-graphics/PLIST
@@ -1,10 +1,10 @@
-@comment $NetBSD: PLIST,v 1.6 2009/09/07 21:48:14 tonio Exp $
+@comment $NetBSD: PLIST,v 1.7 2010/11/07 18:36:08 tonio Exp $
${PLIST.opt}lib/ocaml/graphics.a
lib/ocaml/graphics.cma
lib/ocaml/graphics.cmi
lib/ocaml/graphics.cmx
-lib/ocaml/graphics.cmxs
${PLIST.opt}lib/ocaml/graphics.cmxa
+${PLIST.natdynlib}lib/ocaml/graphics.cmxs
lib/ocaml/graphics.mli
lib/ocaml/graphicsX11.cmi
lib/ocaml/graphicsX11.cmx