| @@ -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. |
9 | ONLY_FOR_PLATFORM= NetBSD-*-i386 NetBSD-*-sparc NetBSD-*-powerpc \ | | 9 | ONLY_FOR_PLATFORM+= *-*-alpha *-*-hppa *-*-i386 |
10 | FreeBSD-*-i386 Linux-*-i386 SunOS-*-sparc | | 10 | *-*-mlrisc *-*-sparc *-*-powerpc |
| | | 11 | BROKEN_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. |
| | | 15 | BROKEN_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. |
| | | 19 | BROKEN_ON_PLATFORM+= FreeBSD-*-sparc FreeBSD-*-powerpc |
| | | 20 | BROKEN_ON_PLATFORM+= Linux-*-sparc Linux-*-powerpc |
| | | 21 | BROKEN_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" |
18 | OS= bsd | | 29 | OS= bsd |
19 | .elif ${OPSYS} == "SunOS" || ${OPSYS} == "Linux" | | 30 | .elif ${OPSYS} == "SunOS" || ${OPSYS} == "Linux" |
20 | OS= ${LOWER_OPSYS} | | 31 | OS= ${LOWER_OPSYS} |
21 | .endif | | 32 | .endif |
22 | | | 33 | |
23 | PLIST_VARS+= nlffi # not available on all platforms | | 34 | PLIST_VARS+= nlffi # not available on all platforms |