summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorasau <asau>2009-12-15 06:35:29 +0000
committerasau <asau>2009-12-15 06:35:29 +0000
commit8d724d898e2c0d99a20b1addb6e20472193d02ca (patch)
tree9d3260c430a7d4b91a565e0c435061c4f23487ea
parent57db32ff71e204e11cbbf2acd9c42579dc809a1b (diff)
downloadpkgsrc-8d724d898e2c0d99a20b1addb6e20472193d02ca.tar.gz
Support FreeBSD.
-rw-r--r--lang/smlnj/Makefile.common12
-rw-r--r--lang/smlnj/PLIST.FreeBSD2
2 files changed, 8 insertions, 6 deletions
diff --git a/lang/smlnj/Makefile.common b/lang/smlnj/Makefile.common
index a090c3b30d5..d3b2e952809 100644
--- a/lang/smlnj/Makefile.common
+++ b/lang/smlnj/Makefile.common
@@ -1,20 +1,20 @@
-# $NetBSD: Makefile.common,v 1.8 2008/04/12 22:43:02 jlam Exp $
+# $NetBSD: Makefile.common,v 1.9 2009/12/15 06:35:29 asau Exp $
# smlnj also supports hppa, sparc, ppc, mlrisc & alpha
# pkg support for those platforms, and say, solaris-x86
# is left as an (easy) exercise for the reader.
-ONLY_FOR_PLATFORM= Linux-*-i386 NetBSD-*-i386 SunOS-*-sparc \
- NetBSD-*-sparc NetBSD-*-powerpc
+ONLY_FOR_PLATFORM= NetBSD-*-i386 NetBSD-*-sparc NetBSD-*-powerpc \
+ FreeBSD-*-i386 Linux-*-i386 SunOS-*-sparc
.include "../../mk/bsd.prefs.mk"
# Possible values of BOX and OS must be kept in sync with the
# currently ported platforms.
-.if ${OPSYS} == "SunOS" || ${OPSYS} == "Linux"
-OS= ${LOWER_OPSYS}
-.elif ${OPSYS} == "NetBSD"
+.if ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD"
OS= bsd
+.elif ${OPSYS} == "SunOS" || ${OPSYS} == "Linux"
+OS= ${LOWER_OPSYS}
.endif
PLIST_VARS+= nlffi # not available on all platforms
diff --git a/lang/smlnj/PLIST.FreeBSD b/lang/smlnj/PLIST.FreeBSD
new file mode 100644
index 00000000000..d4e88438ec0
--- /dev/null
+++ b/lang/smlnj/PLIST.FreeBSD
@@ -0,0 +1,2 @@
+lib/smlnj/bin/.run/run.${BOX}-freebsd.a
+lib/smlnj/bin/.run/run.${BOX}-freebsd.so