Skip to content

Commit

Permalink
Add PLIST support for natdynlink
Browse files Browse the repository at this point in the history
This unbreaks make package for darwin and linux
  • Loading branch information
tonio committed Oct 28, 2010
1 parent d0471f8 commit 465d166
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
10 changes: 9 additions & 1 deletion 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

Expand Down Expand Up @@ -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

Expand Down
9 changes: 9 additions & 0 deletions lang/ocaml/PLIST.natdynlink
@@ -0,0 +1,9 @@
@comment $NetBSD: PLIST.natdynlink,v 1.1 2010/10/28 20:46:07 tonio Exp $
lib/ocaml/bigarray.cmxs
lib/ocaml/dbm.cmxs
lib/ocaml/dynlink.a
lib/ocaml/dynlink.cmx
lib/ocaml/dynlink.cmxa
lib/ocaml/nums.cmxs
lib/ocaml/str.cmxs
lib/ocaml/unix.cmxs

0 comments on commit 465d166

Please sign in to comment.