| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.common,v 1.13 2015/04/22 07:41:38 dholland Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.14 2016/04/14 21:59:08 dholland Exp $ |
2 | # | | 2 | # |
3 | # used by lang/smlnj/Makefile | | 3 | # used by lang/smlnj/Makefile |
4 | | | 4 | |
5 | # smlnj supports i386, hppa, sparc, ppc, mlrisc & alpha | | 5 | # smlnj supports i386, hppa, sparc, ppc, mlrisc & alpha |
6 | # but this package only handles i386, ppc, and sparc. | | 6 | # but this package only handles i386, ppc, and sparc. |
7 | # Extending this is left as an (easy) exercise for the reader. | | 7 | # Extending this is left as an (easy) exercise for the reader. |
8 | ONLY_FOR_PLATFORM+= *-*-alpha *-*-hppa *-*-i386 \ | | 8 | ONLY_FOR_PLATFORM+= *-*-alpha *-*-hppa *-*-i386 \ |
9 | *-*-mlrisc *-*-sparc *-*-powerpc | | 9 | *-*-mlrisc *-*-sparc *-*-powerpc |
10 | BROKEN_ON_PLATFORM= *-*-alpha *-*-hppa *-*-mlrisc | | 10 | BROKEN_ON_PLATFORM= *-*-alpha *-*-hppa *-*-mlrisc |
11 | | | 11 | |
12 | # This package also only supports netbsd, freebsd, linux, and solaris. | | 12 | # This package also only supports netbsd, freebsd, linux, and solaris. |
13 | # Making it work on other OSes shouldn't be all that hard. | | 13 | # Making it work on other OSes shouldn't be all that hard. |
14 | BROKEN_EXCEPT_ON_PLATFORM+= NetBSD-*-* FreeBSD-*-* Linux-*-* SunOS-*-* | | 14 | BROKEN_EXCEPT_ON_PLATFORM+= NetBSD-*-* FreeBSD-*-* Linux-*-* SunOS-*-* |
| @@ -25,27 +25,27 @@ ONLY_FOR_PLATFORM+= Linux-*-x86_64 NetBS | | | @@ -25,27 +25,27 @@ ONLY_FOR_PLATFORM+= Linux-*-x86_64 NetBS |
25 | .include "../../mk/bsd.prefs.mk" | | 25 | .include "../../mk/bsd.prefs.mk" |
26 | | | 26 | |
27 | # Possible values of BOX and OS must be kept in sync with the | | 27 | # Possible values of BOX and OS must be kept in sync with the |
28 | # currently ported platforms. | | 28 | # currently ported platforms. |
29 | | | 29 | |
30 | .if ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD" | | 30 | .if ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD" |
31 | OS= bsd | | 31 | OS= bsd |
32 | .elif ${OPSYS} == "SunOS" || ${OPSYS} == "Linux" | | 32 | .elif ${OPSYS} == "SunOS" || ${OPSYS} == "Linux" |
33 | OS= ${LOWER_OPSYS} | | 33 | OS= ${LOWER_OPSYS} |
34 | .endif | | 34 | .endif |
35 | | | 35 | |
36 | PLIST_VARS+= nlffi # not available on all platforms | | 36 | PLIST_VARS+= nlffi # not available on all platforms |
37 | | | 37 | |
38 | .if ${MACHINE_ARCH} == "i386" | | 38 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" |
39 | BOX= x86 | | 39 | BOX= x86 |
40 | PLIST.nlffi= yes | | 40 | PLIST.nlffi= yes |
41 | .elif ${MACHINE_ARCH} == "powerpc" | | 41 | .elif ${MACHINE_ARCH} == "powerpc" |
42 | BOX= ppc | | 42 | BOX= ppc |
43 | .elif ${MACHINE_ARCH} == "sparc" | | 43 | .elif ${MACHINE_ARCH} == "sparc" |
44 | BOX= ${MACHINE_ARCH} | | 44 | BOX= ${MACHINE_ARCH} |
45 | PLIST.nlffi= yes | | 45 | PLIST.nlffi= yes |
46 | .else | | 46 | .else |
47 | # for "make fetch", default to i386 instead of trying to download | | 47 | # for "make fetch", default to i386 instead of trying to download |
48 | # a non-existing file | | 48 | # a non-existing file |
49 | BOX= x86 | | 49 | BOX= x86 |
50 | PLIST.nlffi= yes | | 50 | PLIST.nlffi= yes |
51 | .endif | | 51 | .endif |