Sun Jan 4 08:57:36 2015 UTC ()
Use ONLY_FOR_PLATFORM only to indicate what the compiler knows how to
target. For stuff the packaging doesn't handle, use BROKEN.


(dholland)
diff -r1.10 -r1.11 pkgsrc/lang/smlnj/Makefile.common

cvs diff -r1.10 -r1.11 pkgsrc/lang/smlnj/Makefile.common (expand / switch to unified diff)

--- pkgsrc/lang/smlnj/Makefile.common 2014/10/05 16:41:07 1.10
+++ pkgsrc/lang/smlnj/Makefile.common 2015/01/04 08:57:36 1.11
@@ -1,23 +1,34 @@ @@ -1,23 +1,34 @@
1# $NetBSD: Makefile.common,v 1.10 2014/10/05 16:41:07 wiz Exp $ 1# $NetBSD: Makefile.common,v 1.11 2015/01/04 08:57:36 dholland Exp $
2# 2#
3# used by lang/smlnj/Makefile 3# used by lang/smlnj/Makefile
4# used by lang/twelf/Makefile 4# used by lang/twelf/Makefile
5 5
6# smlnj also supports hppa, sparc, ppc, mlrisc & alpha 6# smlnj supports i386, hppa, sparc, ppc, mlrisc & alpha
7# pkg support for those platforms, and say, solaris-x86 7# but this package only handles i386, ppc, and sparc.
8# is left as an (easy) exercise for the reader. 8# Extending this is left as an (easy) exercise for the reader.
9ONLY_FOR_PLATFORM= NetBSD-*-i386 NetBSD-*-sparc NetBSD-*-powerpc \ 9ONLY_FOR_PLATFORM+= *-*-alpha *-*-hppa *-*-i386
10 FreeBSD-*-i386 Linux-*-i386 SunOS-*-sparc 10 *-*-mlrisc *-*-sparc *-*-powerpc
 11BROKEN_ON_PLATFORM= *-*-alpha *-*-hppa *-*-mlrisc
 12
 13# This package also only supports netbsd, freebsd, linux, and solaris.
 14# Making it work on other OSes shouldn't be all that hard.
 15BROKEN_EXCEPT_ON_PLATFORM+= NetBSD-*-* FreeBSD-*-* Linux-*-* SunOS-*-*
 16
 17# Furthermore, some OS/machine combinations aren't handled and might
 18# need hacking to work if enabled.
 19BROKEN_ON_PLATFORM+= FreeBSD-*-sparc FreeBSD-*-powerpc
 20BROKEN_ON_PLATFORM+= Linux-*-sparc Linux-*-powerpc
 21BROKEN_ON_PLATFORM+= SunOS-*-i386 SunOS-*-powerpc
11 22
12.include "../../mk/bsd.prefs.mk" 23.include "../../mk/bsd.prefs.mk"
13 24
14# Possible values of BOX and OS must be kept in sync with the 25# Possible values of BOX and OS must be kept in sync with the
15# currently ported platforms. 26# currently ported platforms.
16 27
17.if ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD" 28.if ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD"
18OS= bsd 29OS= bsd
19.elif ${OPSYS} == "SunOS" || ${OPSYS} == "Linux" 30.elif ${OPSYS} == "SunOS" || ${OPSYS} == "Linux"
20OS= ${LOWER_OPSYS} 31OS= ${LOWER_OPSYS}
21.endif 32.endif
22 33
23PLIST_VARS+= nlffi # not available on all platforms 34PLIST_VARS+= nlffi # not available on all platforms