summaryrefslogtreecommitdiff
path: root/lang/smlnj11072
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2016-07-03 18:21:39 +0000
committerdholland <dholland@pkgsrc.org>2016-07-03 18:21:39 +0000
commitd03e57470c12db8b9e40f05985b08061fd75138e (patch)
treec7b224ee99766bc0abcabc15fafaf3c0c39ee3e7 /lang/smlnj11072
parentad513f587aa744526926db67e208d615bec40540 (diff)
downloadpkgsrc-d03e57470c12db8b9e40f05985b08061fd75138e.tar.gz
Sync ONLY_FOR logic from base smlnj package.
Diffstat (limited to 'lang/smlnj11072')
-rw-r--r--lang/smlnj11072/Makefile.common26
1 files changed, 20 insertions, 6 deletions
diff --git a/lang/smlnj11072/Makefile.common b/lang/smlnj11072/Makefile.common
index 7b77ff05058..64992379517 100644
--- a/lang/smlnj11072/Makefile.common
+++ b/lang/smlnj11072/Makefile.common
@@ -1,10 +1,24 @@
-# $NetBSD: Makefile.common,v 1.1 2016/07/03 17:50:31 dholland Exp $
+# $NetBSD: Makefile.common,v 1.2 2016/07/03 18:21:39 dholland 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= NetBSD-*-i386 NetBSD-*-sparc NetBSD-*-powerpc \
- FreeBSD-*-i386 Linux-*-i386 SunOS-*-sparc
+# smlnj supports i386, hppa, sparc, ppc, mlrisc & alpha
+# but this package only handles i386, ppc, and sparc.
+# Extending this is left as an (easy) exercise for the reader.
+ONLY_FOR_PLATFORM+= *-*-alpha *-*-hppa *-*-i386 \
+ *-*-mlrisc *-*-sparc *-*-powerpc
+BROKEN_ON_PLATFORM= *-*-alpha *-*-hppa *-*-mlrisc
+
+# This package also only supports netbsd, freebsd, linux, and solaris.
+# Making it work on other OSes shouldn't be all that hard.
+BROKEN_EXCEPT_ON_PLATFORM+= NetBSD-*-* FreeBSD-*-* Linux-*-* SunOS-*-*
+
+# Furthermore, some OS/machine combinations aren't handled and might
+# need hacking to work if enabled.
+BROKEN_ON_PLATFORM+= FreeBSD-*-sparc FreeBSD-*-powerpc
+BROKEN_ON_PLATFORM+= Linux-*-sparc Linux-*-powerpc
+BROKEN_ON_PLATFORM+= SunOS-*-i386 SunOS-*-powerpc
+
+# there are 32-on-64 hacks for amd64 on linux
+ONLY_FOR_PLATFORM+= Linux-*-x86_64
.include "../../mk/bsd.prefs.mk"