| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.12 2020/01/26 17:31:32 rillig Exp $ | | 1 | # $NetBSD: Makefile,v 1.13 2022/09/16 19:53:44 he Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= boot.${BOX}-unix | | 4 | DISTNAME= boot.${BOX}-unix |
5 | PKGNAME= smlnj-${SML_VERSION} | | 5 | PKGNAME= smlnj-${SML_VERSION} |
6 | PKGREVISION= 1 | | 6 | PKGREVISION= 1 |
7 | CATEGORIES= lang | | 7 | CATEGORIES= lang |
8 | MASTER_SITES= http://smlnj.cs.uchicago.edu/dist/working/${SML_VERSION}/ | | 8 | MASTER_SITES= http://smlnj.cs.uchicago.edu/dist/working/${SML_VERSION}/ |
9 | DISTFILES= MLRISC.tgz \ | | 9 | DISTFILES= MLRISC.tgz \ |
10 | boot.${BOX}-unix.tgz \ | | 10 | boot.${BOX}-unix.tgz \ |
11 | ckit.tgz \ | | 11 | ckit.tgz \ |
12 | cm.tgz \ | | 12 | cm.tgz \ |
13 | cml.tgz \ | | 13 | cml.tgz \ |
14 | compiler.tgz \ | | 14 | compiler.tgz \ |
| @@ -89,40 +89,26 @@ do-extract: | | | @@ -89,40 +89,26 @@ do-extract: |
89 | export extract_file; \ | | 89 | export extract_file; \ |
90 | cd ${WRKDIR}/src; ${EXTRACT_CMD} | | 90 | cd ${WRKDIR}/src; ${EXTRACT_CMD} |
91 | | | 91 | |
92 | # symlink the rest of the distfiles | | 92 | # symlink the rest of the distfiles |
93 | # also copy in new configs | | 93 | # also copy in new configs |
94 | post-extract: | | 94 | post-extract: |
95 | cd ${WRKDIR} && ${LN} -sf ${_DISTDIR}/* . | | 95 | cd ${WRKDIR} && ${LN} -sf ${_DISTDIR}/* . |
96 | cp ${FILESDIR}/mk.* ${WRKDIR}/src/runtime/objs/ | | 96 | cp ${FILESDIR}/mk.* ${WRKDIR}/src/runtime/objs/ |
97 | | | 97 | |
98 | # make the necessary copy of the runtime, _after_ patching src | | 98 | # make the necessary copy of the runtime, _after_ patching src |
99 | post-patch: | | 99 | post-patch: |
100 | cd ${WRKDIR}/src && pax -rw runtime ${WRKDIR}/base/ | | 100 | cd ${WRKDIR}/src && pax -rw runtime ${WRKDIR}/base/ |
101 | | | 101 | |
102 | # Turn of nlffi on powerpc (I guess it doesn't work?) | | | |
103 | # | | | |
104 | # XXX: this switch doesn't work any more as the line in question doesn't | | | |
105 | # exist in the current version. Someone with a PPC build machine, | | | |
106 | # please check it out and either change it to match the file if still | | | |
107 | # needed, or get rid of it. | | | |
108 | .if ${MACHINE_ARCH} == "powerpc" | | | |
109 | SUBST_CLASSES+= nlffi | | | |
110 | SUBST_STAGE.nlffi= pre-configure | | | |
111 | SUBST_MESSAGE.nlffi= Turning off nlffi | | | |
112 | SUBST_FILES.nlffi= config/targets | | | |
113 | SUBST_SED.nlffi= -e '/^request nlffi$$/d' | | | |
114 | .endif # powerpc | | | |
115 | | | | |
116 | # resolve definition of SML_BASE | | 102 | # resolve definition of SML_BASE |
117 | SUBST_CLASSES+= smlbase | | 103 | SUBST_CLASSES+= smlbase |
118 | SUBST_STAGE.smlbase= pre-configure | | 104 | SUBST_STAGE.smlbase= pre-configure |
119 | SUBST_MESSAGE.smlbase= Setting SML_BASE | | 105 | SUBST_MESSAGE.smlbase= Setting SML_BASE |
120 | SUBST_FILES.smlbase= ${SML_SCRIPTS:S/^/config\//} | | 106 | SUBST_FILES.smlbase= ${SML_SCRIPTS:S/^/config\//} |
121 | SUBST_VARS.smlbase= SML_BASE | | 107 | SUBST_VARS.smlbase= SML_BASE |
122 | | | 108 | |
123 | # resolve definition of CFLAGS in patched files | | 109 | # resolve definition of CFLAGS in patched files |
124 | # (note that we need to do this in both src/runtime and base/runtime) | | 110 | # (note that we need to do this in both src/runtime and base/runtime) |
125 | SUBST_CLASSES+= cflags | | 111 | SUBST_CLASSES+= cflags |
126 | SUBST_STAGE.cflags= pre-configure | | 112 | SUBST_STAGE.cflags= pre-configure |
127 | SUBST_MESSAGE.cflags= Setting CFLAGS | | 113 | SUBST_MESSAGE.cflags= Setting CFLAGS |
128 | SUBST_FILES.cflags= src/runtime/objs/* base/runtime/objs/* | | 114 | SUBST_FILES.cflags= src/runtime/objs/* base/runtime/objs/* |