Lines 1-7
Link Here
|
1 |
# $FreeBSD$ |
1 |
# $FreeBSD$ |
2 |
|
2 |
|
3 |
PORTNAME= smlnj |
3 |
PORTNAME= smlnj |
4 |
PORTVERSION= 110.77 |
4 |
PORTVERSION= 110.84 |
5 |
CATEGORIES= lang |
5 |
CATEGORIES= lang |
6 |
MASTER_SITES= http://smlnj.cs.uchicago.edu/dist/working/${PORTVERSION}/ \ |
6 |
MASTER_SITES= http://smlnj.cs.uchicago.edu/dist/working/${PORTVERSION}/ \ |
7 |
ftp://mirror.free.de/http/smlnj.cs.uchicago.edu/dist/working/${PORTVERSION}/ |
7 |
ftp://mirror.free.de/http/smlnj.cs.uchicago.edu/dist/working/${PORTVERSION}/ |
Lines 18-24
Link Here
|
18 |
http://www.smlnj.org/license.html |
18 |
http://www.smlnj.org/license.html |
19 |
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept |
19 |
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept |
20 |
|
20 |
|
21 |
ONLY_FOR_ARCHS= i386 amd64 |
21 |
ONLY_FOR_ARCHS= amd64 i386 |
22 |
LLD_UNSAFE= yes |
22 |
LLD_UNSAFE= yes |
23 |
|
23 |
|
24 |
NO_WRKSUBDIR= yes |
24 |
NO_WRKSUBDIR= yes |
Lines 27-80
Link Here
|
27 |
SUB_LIST= EXEBINDIR=${MLBINRELATIVE} EXENAMES="${MLEXE}" |
27 |
SUB_LIST= EXEBINDIR=${MLBINRELATIVE} EXENAMES="${MLEXE}" |
28 |
PKGDEINSTALL= ${PKGINSTALL} |
28 |
PKGDEINSTALL= ${PKGINSTALL} |
29 |
|
29 |
|
30 |
# Calm portlint |
30 |
OPTIONS_DEFINE= EVERYTHING RECOMPILE POSITION64 |
31 |
CALM= |
31 |
RECOMPILE_IMPLIES= EVERYTHING |
32 |
|
32 |
POSITION64_IMPLIES= RECOMPILE |
33 |
OPTIONS_RADIO= RG1 |
33 |
EVERYTHING_DESC= install everything from the SML/NJ distribution |
34 |
OPTIONS_RADIO_RG1= EVERYTHING RECOMPILE POSITION64 |
|
|
35 |
OPTIONS_EXCLUDE_amd64= RECOMPILE POSITION64 |
36 |
EVERYTHING_DESC= install${CALM} everything from the SML/NJ distribution |
37 |
RECOMPILE_DESC= recompile the SML compiler - implies EVERYTHING |
34 |
RECOMPILE_DESC= recompile the SML compiler - implies EVERYTHING |
38 |
POSITION64_DESC= use 64bit file${CALM} positions - implies RECOMPILE |
35 |
POSITION64_DESC= use 64bit file positions - implies RECOMPILE |
39 |
|
36 |
|
40 |
.include <bsd.port.pre.mk> |
37 |
.include <bsd.port.pre.mk> |
41 |
|
38 |
|
42 |
# Recompiling the compiler currently fails on amd64 |
|
|
43 |
.if ${ARCH} == "i386" |
44 |
ML_RECOMPILE_OPTIONS= RECOMPILE POSITION64 |
45 |
.endif |
46 |
|
47 |
.if (${ARCH} == "amd64") |
39 |
.if (${ARCH} == "amd64") |
48 |
CFLAGS+= -m32 |
40 |
CFLAGS+= -m32 |
49 |
AS?= as |
41 |
AS?= as |
50 |
AS+= --32 |
42 |
ASFLAGS+= --32 |
51 |
.endif |
43 |
.endif |
52 |
.if (${ARCH} == "i386" || ${ARCH} == "amd64") |
44 |
.if (${ARCH} == "i386" || ${ARCH} == "amd64") |
53 |
MLARCH= x86 |
45 |
MLARCH= x86 |
54 |
DISTFILES+= boot.x86-unix.tgz |
46 |
DISTFILES+= boot.x86-unix.tgz |
55 |
.endif |
47 |
.endif |
56 |
DISTFILES+= MLRISC.tgz ckit.tgz cml.tgz doc.tgz heap2asm.tgz \ |
48 |
DISTFILES+= MLRISC.tgz asdl.tgz ckit.tgz cml.tgz doc.tgz heap2asm.tgz \ |
57 |
ml-burg.tgz ml-lpt.tgz ml-lex.tgz ml-yacc.tgz nlffi.tgz \ |
49 |
ml-burg.tgz ml-lex.tgz ml-lpt.tgz ml-yacc.tgz nlffi.tgz \ |
58 |
smlnj-lib.tgz trace-debug-profile.tgz |
50 |
old-basis.tgz smlnj-lib.tgz trace-debug-profile.tgz |
59 |
|
51 |
|
60 |
PLIST_SUB+= MLARCH=${MLARCH} |
52 |
PLIST_SUB+= MLARCH=${MLARCH} |
61 |
|
53 |
|
62 |
.if ${PORT_OPTIONS:MPOSITION64} || defined(ML_POSITION64) |
54 |
.if ${PORT_OPTIONS:MPOSITION64} |
63 |
ML_POSITION64?= ${PORT_OPTIONS:MPOSITION64} |
|
|
64 |
ML_RECOMPILE?= ${ML_POSITION64} |
65 |
ML_EVERYTHING?= ${ML_POSITION64} |
66 |
CMB_COMMAND= '(\#set o CMB.symval) "USE_64_BIT_POSITIONS" (SOME 1);' |
55 |
CMB_COMMAND= '(\#set o CMB.symval) "USE_64_BIT_POSITIONS" (SOME 1);' |
67 |
.else |
56 |
.else |
68 |
CMB_COMMAND= |
57 |
CMB_COMMAND= |
69 |
.endif |
58 |
.endif |
70 |
|
59 |
|
71 |
.if ${PORT_OPTIONS:MRECOMPILE} || defined(ML_RECOMPILE) |
60 |
.if ${PORT_OPTIONS:MEVERYTHING} |
72 |
ML_RECOMPILE?= ${PORT_OPTIONS:MRECOMPILE} |
|
|
73 |
ML_EVERYTHING?= ${ML_RECOMPILE} |
74 |
.endif |
75 |
|
76 |
.if ${PORT_OPTIONS:MEVERYTHING} || defined(ML_EVERYTHING) |
77 |
ML_EVERYTHING?= ${PORT_OPTIONS:MEVERYTHING} |
78 |
DISTFILES+= cm.tgz compiler.tgz eXene.tgz \ |
61 |
DISTFILES+= cm.tgz compiler.tgz eXene.tgz \ |
79 |
pgraph.tgz smlnj-c.tgz system.tgz |
62 |
pgraph.tgz smlnj-c.tgz system.tgz |
80 |
PLIST_SUB+= EVERYTHING="" |
63 |
PLIST_SUB+= EVERYTHING="" |
Lines 87-93
Link Here
|
87 |
MLBINRELATIVE= ${MLROOTRELATIVE}/bin |
70 |
MLBINRELATIVE= ${MLROOTRELATIVE}/bin |
88 |
MLBIN= ${MLROOT}/bin |
71 |
MLBIN= ${MLROOT}/bin |
89 |
MLLIB= ${MLROOT}/lib |
72 |
MLLIB= ${MLROOT}/lib |
90 |
MLSTDSRCDIRS= cml doc heap2asm ml-burg ml-lex ml-lpt ml-yacc nlffi smlnj-lib |
73 |
MLSTDSRCDIRS= asdl cml doc heap2asm ml-burg ml-lex ml-lpt ml-yacc \ |
|
|
74 |
nlffi smlnj-lib |
91 |
MLSRCDIRS= base ${MLSTDSRCDIRS} \ |
75 |
MLSRCDIRS= base ${MLSTDSRCDIRS} \ |
92 |
ckit eXene pgraph smlnj-c |
76 |
ckit eXene pgraph smlnj-c |
93 |
MLSRCS= |
77 |
MLSRCS= |
Lines 95-103
Link Here
|
95 |
MLSRCS+= ${MLROOT}/${srcdir} |
79 |
MLSRCS+= ${MLROOT}/${srcdir} |
96 |
.endfor |
80 |
.endfor |
97 |
MLTARGETS= heap2asm |
81 |
MLTARGETS= heap2asm |
98 |
MLEXE= heap2exec ml-antlr ml-build ml-burg ml-lex ml-makedepend \ |
82 |
MLEXE= asdlgen heap2exec ml-antlr ml-build ml-burg ml-lex \ |
99 |
ml-nlffigen ml-ulex ml-yacc sml |
83 |
ml-makedepend ml-nlffigen ml-ulex ml-yacc sml |
100 |
.if defined(ML_EVERYTHING) |
84 |
.if ${PORT_OPTIONS:MEVERYTHING} |
101 |
MLTARGETS+= eXene mlrisc-tools nowhere pgraph-util src-smlnj |
85 |
MLTARGETS+= eXene mlrisc-tools nowhere pgraph-util src-smlnj |
102 |
MLEXE+= nowhere |
86 |
MLEXE+= nowhere |
103 |
PLIST= ${WRKDIR}/.PLIST |
87 |
PLIST= ${WRKDIR}/.PLIST |
Lines 108-126
Link Here
|
108 |
|
92 |
|
109 |
pre-fetch: |
93 |
pre-fetch: |
110 |
@${ECHO} |
94 |
@${ECHO} |
111 |
.if ! defined(ML_EVERYTHING) |
95 |
.if ! ${PORT_OPTIONS:MEVERYTHING} |
112 |
@${ECHO} 'Use make ML_EVERYTHING=yes to also build/install' |
96 |
@${ECHO} 'Use port option EVERYTHING to also build/install' |
113 |
@${ECHO} ' eXene (X Windows toolkit),' |
97 |
@${ECHO} ' eXene (X Windows toolkit),' |
114 |
@${ECHO} ' nowhere (preprocessor for conditional patterns),' |
98 |
@${ECHO} ' nowhere (preprocessor for conditional patterns),' |
115 |
@${ECHO} ' various libraries, and all the sources.' |
99 |
@${ECHO} ' various libraries, and all the sources.' |
116 |
.endif |
100 |
.endif |
117 |
.if !empty(ML_RECOMPILE_OPTIONS:MRECOMPILE) && !defined(ML_RECOMPILE) |
101 |
.if ! ${PORT_OPTIONS:MRECOMPILE} |
118 |
@${ECHO} 'Use make ML_RECOMPILE=yes to recompile the compiler.' |
102 |
@${ECHO} 'Use port option RECOMPILE to recompile the compiler.' |
119 |
@${ECHO} ' This implies ML_EVERYTHING.' |
103 |
@${ECHO} ' This implies EVERYTHING.' |
120 |
.endif |
104 |
.endif |
121 |
.if !empty(ML_RECOMPILE_OPTIONS:MPOSITION64) && !defined(ML_POSITION64) |
105 |
.if ! ${PORT_OPTIONS:MPOSITION64} |
122 |
@${ECHO} 'Use make ML_POSITION64=yes to use 64bit file positions.' |
106 |
@${ECHO} 'Use port option POSITION64 to use 64bit file positions.' |
123 |
@${ECHO} ' This implies ML_RECOMPILE.' |
107 |
@${ECHO} ' This implies RECOMPILE.' |
124 |
.endif |
108 |
.endif |
125 |
@${ECHO} |
109 |
@${ECHO} |
126 |
|
110 |
|
Lines 145-151
Link Here
|
145 |
# Recompilation requires ml-lex and ml-yacc. All requested targets |
129 |
# Recompilation requires ml-lex and ml-yacc. All requested targets |
146 |
# will be built later using the recompiled core system after |
130 |
# will be built later using the recompiled core system after |
147 |
# removing targets.customized. See "do-build" below. |
131 |
# removing targets.customized. See "do-build" below. |
148 |
.if defined(ML_RECOMPILE) |
132 |
.if ${PORT_OPTIONS:MRECOMPILE} |
149 |
( ${ECHO_CMD} "request ml-yacc" && \ |
133 |
( ${ECHO_CMD} "request ml-yacc" && \ |
150 |
${ECHO_CMD} "request ml-lex" && \ |
134 |
${ECHO_CMD} "request ml-lex" && \ |
151 |
${ECHO_CMD} "request ml-lex-mllex-tool" && \ |
135 |
${ECHO_CMD} "request ml-lex-mllex-tool" && \ |
Lines 158-164
Link Here
|
158 |
# a subsequent make install. |
142 |
# a subsequent make install. |
159 |
# See base/system/README for information on recompiling the compiler. |
143 |
# See base/system/README for information on recompiling the compiler. |
160 |
|
144 |
|
161 |
.if defined(ML_RECOMPILE) |
145 |
.if ${PORT_OPTIONS:MRECOMPILE} |
162 |
RECOMPILEDIR= base/system |
146 |
RECOMPILEDIR= base/system |
163 |
.else |
147 |
.else |
164 |
RECOMPILEDIR= |
148 |
RECOMPILEDIR= |
Lines 174-182
Link Here
|
174 |
MLSTANDARDPATCHDIRS_CMD= cd ${FILESDIR} && \ |
158 |
MLSTANDARDPATCHDIRS_CMD= cd ${FILESDIR} && \ |
175 |
( for srcdir in ${MLSTDSRCDIRS} ; \ |
159 |
( for srcdir in ${MLSTDSRCDIRS} ; \ |
176 |
do if ${LS} do-patch-$${srcdir}_* 1>&- 2>&- ; \ |
160 |
do if ${LS} do-patch-$${srcdir}_* 1>&- 2>&- ; \ |
177 |
then ${ECHO_CMD} -n $${srcdir} " " ; break ; fi ; \ |
161 |
then ${ECHO_CMD} -n $${srcdir} " " ; fi ; \ |
178 |
done ) || ${TRUE} |
162 |
done ) || ${TRUE} |
179 |
.if defined(ML_EVERYTHING) |
163 |
.if ${PORT_OPTIONS:MEVERYTHING} |
180 |
MLSOURCEPATCHES_CMD= cd ${FILESDIR} && \ |
164 |
MLSOURCEPATCHES_CMD= cd ${FILESDIR} && \ |
181 |
( ${LS} do-patch-* 2>&- || \ |
165 |
( ${LS} do-patch-* 2>&- || \ |
182 |
${TRUE} ) |
166 |
${TRUE} ) |
Lines 192-200
Link Here
|
192 |
MLSTANDARDPATCHES=`${MLSTANDARDPATCHES_CMD}` \ |
176 |
MLSTANDARDPATCHES=`${MLSTANDARDPATCHES_CMD}` \ |
193 |
MLSTANDARDPATCHDIRS=`${MLSTANDARDPATCHDIRS_CMD}` \ |
177 |
MLSTANDARDPATCHDIRS=`${MLSTANDARDPATCHDIRS_CMD}` \ |
194 |
MLSOURCEPATCHES=`${MLSOURCEPATCHES_CMD}` \ |
178 |
MLSOURCEPATCHES=`${MLSOURCEPATCHES_CMD}` \ |
195 |
CFLAGS='${CFLAGS}' LDFLAGS='${LDFLAGS}' AS='${AS}' EXTRA_DEFS='${EXTRA_DEFS}' \ |
179 |
CFLAGS='${CFLAGS}' LDFLAGS='${LDFLAGS}' \ |
|
|
180 |
AS='${AS}' ASFLAGS='${ASFLAGS}' EXTRA_DEFS='${EXTRA_DEFS}' \ |
196 |
./config/install.sh |
181 |
./config/install.sh |
197 |
.if defined(ML_RECOMPILE) |
182 |
.if ${PORT_OPTIONS:MRECOMPILE} |
198 |
-${RM} ${WRKSRC}/config/targets.customized |
183 |
-${RM} ${WRKSRC}/config/targets.customized |
199 |
@${ECHO} '(* Recompiling the core system: *)' |
184 |
@${ECHO} '(* Recompiling the core system: *)' |
200 |
cd ${WRKSRC}/${RECOMPILEDIR} && ( \ |
185 |
cd ${WRKSRC}/${RECOMPILEDIR} && ( \ |
Lines 215-245
Link Here
|
215 |
./installml |
200 |
./installml |
216 |
@${ECHO} '(* Building requested targets: *)' |
201 |
@${ECHO} '(* Building requested targets: *)' |
217 |
cd ${WRKSRC} && unset PWD && \ |
202 |
cd ${WRKSRC} && unset PWD && \ |
218 |
FILESDIR="${FILESDIR}" PATCH="${PATCH}" PATCH_ARGS="-d ${PATCH_WRKSRC} ${PATCH_ARGS}" \ |
203 |
FILESDIR="${FILESDIR}" PATCH="${PATCH}" \ |
|
|
204 |
PATCH_ARGS="-d ${PATCH_WRKSRC} ${PATCH_ARGS}" \ |
219 |
MLNORUNTIMECLEAN=yes RECOMPILEDIR="${RECOMPILEDIR}" \ |
205 |
MLNORUNTIMECLEAN=yes RECOMPILEDIR="${RECOMPILEDIR}" \ |
220 |
CFLAGS='${CFLAGS}' LDFLAGS='${LDFLAGS}' AS='${AS}' EXTRA_DEFS='${EXTRA_DEFS}' \ |
206 |
CFLAGS='${CFLAGS}' LDFLAGS='${LDFLAGS}' \ |
|
|
207 |
AS='${AS}' ASFLAGS='${ASFLAGS}' EXTRA_DEFS='${EXTRA_DEFS}' \ |
221 |
./config/install.sh |
208 |
./config/install.sh |
222 |
.endif |
209 |
.endif |
223 |
|
210 |
|
224 |
# If Mac OS X resource files make it into the distribution tarballs, |
211 |
.if ${PORT_OPTIONS:MEVERYTHING} |
225 |
# then we have to remove them at several points during the |
|
|
226 |
# installation process. This is no longer necessary with FreeBSD 10 |
227 |
# as it uses libarchive 3.x (via bsdtar), but earlier versions |
228 |
# don't ignore such resource files and hence WRKSRC and STAGEDIR |
229 |
# are full of them. Once FreeBSD 9 will be out of service, all |
230 |
# lines in this Makefile can be removed which contain a pattern |
231 |
# for the prefix "._" of the resource files. Background information: |
232 |
# <https://github.com/libarchive/libarchive/wiki/TarExtendedAttributes#Apple_tar> |
233 |
|
234 |
post-build: |
212 |
post-build: |
235 |
${FIND} ${WRKSRC} -type f -name '\._*' -delete |
213 |
${CHMOD} a-x ${WRKSRC}/eXene/examples/basicwin/test.sh \ |
|
|
214 |
${WRKSRC}/smlnj-lib/HTML4/helper.py |
215 |
@${ECHO} '(* Cleaning asdl: *)' |
216 |
${FIND} ${WRKSRC}/asdl -type f \ |
217 |
-exec ${GREP} -F -l "${WRKDIR}" {} \; -delete |
218 |
.endif |
236 |
|
219 |
|
237 |
# Nowadays PLIST has to be computed before installation. We do it in |
220 |
# Nowadays PLIST has to be computed before installation. We do it in |
238 |
# "pre-install" because source extraction happens during "build". |
221 |
# "pre-install" because source extraction happens during "build". |
239 |
|
222 |
|
240 |
.if defined(ML_EVERYTHING) |
223 |
.if ${PORT_OPTIONS:MEVERYTHING} |
241 |
MLNOINSTALL= .cm |
224 |
MLNOINSTALL= .cm |
242 |
.if defined(ML_RECOMPILE) |
225 |
.if ${PORT_OPTIONS:MRECOMPILE} |
243 |
MLNOINSTALL+= sml.bin.${MLARCH}-unix sml.boot.${MLARCH}-unix \ |
226 |
MLNOINSTALL+= sml.bin.${MLARCH}-unix sml.boot.${MLARCH}-unix \ |
244 |
sml.lib sml.${MLARCH}-bsd |
227 |
sml.lib sml.${MLARCH}-bsd |
245 |
.endif |
228 |
.endif |
Lines 252-261
Link Here
|
252 |
.endif |
235 |
.endif |
253 |
|
236 |
|
254 |
pre-install: |
237 |
pre-install: |
255 |
.if defined(ML_EVERYTHING) |
238 |
.if ${PORT_OPTIONS:MEVERYTHING} |
256 |
@${ECHO} -n '(* Computing package list ...' |
239 |
@${ECHO} -n '(* Computing package list ...' |
257 |
@${TAR} -tzf ${WRKSRC}/runtime.tgz | \ |
240 |
@${TAR} -tzf ${WRKSRC}/runtime.tgz | \ |
258 |
${GREP} -E -v '(^|/)\._.*' | \ |
|
|
259 |
${SED} -E -n -e 's%^(.*[^/])$$%${MLROOTRELATIVE}/base/\1%p' \ |
241 |
${SED} -E -n -e 's%^(.*[^/])$$%${MLROOTRELATIVE}/base/\1%p' \ |
260 |
> ${MLRUNTIMEPLIST} |
242 |
> ${MLRUNTIMEPLIST} |
261 |
@${MLRUNTIMEPATCHES_CMD} | \ |
243 |
@${MLRUNTIMEPATCHES_CMD} | \ |
Lines 274-279
Link Here
|
274 |
${AWK} '{ print "${MLROOTRELATIVE}/" $$0 }' ) ; \ |
256 |
${AWK} '{ print "${MLROOTRELATIVE}/" $$0 }' ) ; \ |
275 |
( ${FIND} -s -d ${MLSRCDIRS} -type d -empty | \ |
257 |
( ${FIND} -s -d ${MLSRCDIRS} -type d -empty | \ |
276 |
${AWK} '{ print "@dir ${MLROOTRELATIVE}/" $$0 }' ) ) | \ |
258 |
${AWK} '{ print "@dir ${MLROOTRELATIVE}/" $$0 }' ) ) | \ |
|
|
259 |
${EGREP} -v "^${MLROOTRELATIVE}/base/runtime" | \ |
277 |
${EGREP} -v ${MLSRCEXCLUDEREGEX} > ${MLSRCPLIST} |
260 |
${EGREP} -v ${MLSRCEXCLUDEREGEX} > ${MLSRCPLIST} |
278 |
@${SED} -e 's/^%%EVERYTHING%%//' ${MLPLISTFILES} | \ |
261 |
@${SED} -e 's/^%%EVERYTHING%%//' ${MLPLISTFILES} | \ |
279 |
${GREP} -h -v "^@dir" | ${SORT} -u > ${PLIST} |
262 |
${GREP} -h -v "^@dir" | ${SORT} -u > ${PLIST} |
Lines 304-310
Link Here
|
304 |
# When staging CM_PATHCONFIG has to point to the final |
287 |
# When staging CM_PATHCONFIG has to point to the final |
305 |
# ${MLLIB}/pathconfig (in ${PREFIX}) while building the compiler. |
288 |
# ${MLLIB}/pathconfig (in ${PREFIX}) while building the compiler. |
306 |
|
289 |
|
307 |
.if defined(ML_EVERYTHING) |
290 |
.if ${PORT_OPTIONS:MEVERYTHING} |
308 |
MLSRCEXCLUDES= |
291 |
MLSRCEXCLUDES= |
309 |
.for excl in ${MLNOINSTALL} |
292 |
.for excl in ${MLNOINSTALL} |
310 |
MLSRCEXCLUDES+= --exclude "${excl}" |
293 |
MLSRCEXCLUDES+= --exclude "${excl}" |
Lines 313-324
Link Here
|
313 |
|
296 |
|
314 |
do-install: |
297 |
do-install: |
315 |
${MKDIR} "${STAGEDIR}${MLROOT}" |
298 |
${MKDIR} "${STAGEDIR}${MLROOT}" |
316 |
.if ! defined(ML_RECOMPILE) |
299 |
.if ! ${PORT_OPTIONS:MRECOMPILE} |
317 |
cd ${WRKSRC} && unset PWD && \ |
300 |
cd ${WRKSRC} && unset PWD && \ |
318 |
FILESDIR="${FILESDIR}" PATCH="${PATCH}" PATCH_ARGS="-d ${PATCH_WRKSRC} ${PATCH_ARGS}" \ |
301 |
FILESDIR="${FILESDIR}" PATCH="${PATCH}" PATCH_ARGS="-d ${PATCH_WRKSRC} ${PATCH_ARGS}" \ |
319 |
STAGEDIR="${STAGEDIR}" MLLIB="${MLLIB}" \ |
302 |
STAGEDIR="${STAGEDIR}" MLLIB="${MLLIB}" \ |
320 |
INSTALLDIR="${STAGEDIR}${MLROOT}" \ |
303 |
INSTALLDIR="${STAGEDIR}${MLROOT}" \ |
321 |
CFLAGS='${CFLAGS}' LDFLAGS='${LDFLAGS}' AS='${AS}' EXTRA_DEFS='${EXTRA_DEFS}' \ |
304 |
CFLAGS='${CFLAGS}' LDFLAGS='${LDFLAGS}' \ |
|
|
305 |
AS='${AS}' ASFLAGS='${ASFLAGS}' EXTRA_DEFS='${EXTRA_DEFS}' \ |
322 |
./config/install.sh |
306 |
./config/install.sh |
323 |
.else |
307 |
.else |
324 |
@${ECHO} '(* Rebuilding the recompiled libs: *)' |
308 |
@${ECHO} '(* Rebuilding the recompiled libs: *)' |
Lines 330-345
Link Here
|
330 |
@${ECHO} '(* Rebuilding the recompiled heap: *)' |
314 |
@${ECHO} '(* Rebuilding the recompiled heap: *)' |
331 |
cd ${WRKSRC}/${RECOMPILEDIR} && \ |
315 |
cd ${WRKSRC}/${RECOMPILEDIR} && \ |
332 |
./makeml |
316 |
./makeml |
333 |
@${ECHO} '(* Installing into ${MLROOT}: *)' |
317 |
@${ECHO} '(* Installing into ${STAGEDIR}${MLROOT}: *)' |
334 |
cd ${WRKSRC} && unset PWD && \ |
318 |
cd ${WRKSRC} && unset PWD && \ |
335 |
FILESDIR="${FILESDIR}" PATCH="${PATCH}" PATCH_ARGS="-d ${PATCH_WRKSRC} ${PATCH_ARGS}" \ |
319 |
FILESDIR="${FILESDIR}" PATCH="${PATCH}" PATCH_ARGS="-d ${PATCH_WRKSRC} ${PATCH_ARGS}" \ |
336 |
STAGEDIR="${STAGEDIR}" MLLIB="${MLLIB}" \ |
320 |
STAGEDIR="${STAGEDIR}" MLLIB="${MLLIB}" \ |
337 |
INSTALLDIR="${STAGEDIR}${MLROOT}" RECOMPILEDIR="${RECOMPILEDIR}" \ |
321 |
INSTALLDIR="${STAGEDIR}${MLROOT}" RECOMPILEDIR="${RECOMPILEDIR}" \ |
338 |
CFLAGS='${CFLAGS}' LDFLAGS='${LDFLAGS}' AS='${AS}' EXTRA_DEFS='${EXTRA_DEFS}' \ |
322 |
CFLAGS='${CFLAGS}' LDFLAGS='${LDFLAGS}' \ |
|
|
323 |
AS='${AS}' ASFLAGS='${ASFLAGS}' EXTRA_DEFS='${EXTRA_DEFS}' \ |
339 |
./config/install.sh |
324 |
./config/install.sh |
340 |
.endif |
325 |
.endif |
341 |
[ ! -d ${STAGEDIR} ] || \ |
|
|
342 |
${FIND} ${STAGEDIR} -type f -name '\._*' -delete |
343 |
@${ECHO} '(* Installing man pages. *)' |
326 |
@${ECHO} '(* Installing man pages. *)' |
344 |
.for mansect in 1 2 3 4 5 6 7 8 9 |
327 |
.for mansect in 1 2 3 4 5 6 7 8 9 |
345 |
@[ ! -d ${WRKSRC}/doc/man/man${mansect} ] || \ |
328 |
@[ ! -d ${WRKSRC}/doc/man/man${mansect} ] || \ |
Lines 352-379
Link Here
|
352 |
( eval $${MLARCHOPSYS} ; \ |
335 |
( eval $${MLARCHOPSYS} ; \ |
353 |
${STRIP_CMD} "${STAGEDIR}${MLBIN}/.run/run.$${ARCH}-$${OPSYS}" \ |
336 |
${STRIP_CMD} "${STAGEDIR}${MLBIN}/.run/run.$${ARCH}-$${OPSYS}" \ |
354 |
"${STAGEDIR}${MLBIN}/.run/run.$${ARCH}-$${OPSYS}.so" ) |
337 |
"${STAGEDIR}${MLBIN}/.run/run.$${ARCH}-$${OPSYS}.so" ) |
355 |
.if defined(ML_EVERYTHING) |
338 |
.if ${PORT_OPTIONS:MEVERYTHING} |
356 |
@${ECHO} '(* Cleaning base/runtime: *)' |
339 |
@${ECHO} '(* Cleaning base/runtime: *)' |
357 |
cd ${WRKSRC}/base/runtime/objs && ${MAKE_CMD} clean |
340 |
cd ${WRKSRC}/base/runtime/objs && ${MAKE_CMD} clean |
|
|
341 |
@${ECHO} '(* Cleaning asdl: *)' |
342 |
${FIND} ${WRKSRC}/asdl -type f \ |
343 |
-exec ${GREP} -F -l "${WRKDIR}" {} \; -delete |
358 |
@${ECHO} -n '(* Installing sources into ${STAGEDIR}${MLROOT} ...' |
344 |
@${ECHO} -n '(* Installing sources into ${STAGEDIR}${MLROOT} ...' |
359 |
@cd ${WRKSRC} && ${TAR} -cf - ${MLSRCEXCLUDES} ${MLSRCDIRS} | \ |
345 |
@cd ${WRKSRC} && ${TAR} -cf - ${MLSRCEXCLUDES} ${MLSRCDIRS} | \ |
360 |
${TAR} -xf - -C "${STAGEDIR}${MLROOT}" |
346 |
${TAR} -xf - -C "${STAGEDIR}${MLROOT}" |
361 |
@${ECHO} ' done. *)' |
347 |
@${ECHO} ' done. *)' |
362 |
.endif |
348 |
.endif |
363 |
|
|
|
364 |
# Only execute ${PKGINSTALL} when installing to ${PREFIX}, |
349 |
# Only execute ${PKGINSTALL} when installing to ${PREFIX}, |
365 |
# but not when staging. |
350 |
# but not when staging. |
366 |
.ifmake install${CALM} |
351 |
.ifmake install${CALM_PORTLINT} |
367 |
PKG_PREFIX=${PREFIX} MULTIEXEC_WRAPPER_VERBOSE=yes \ |
352 |
PKG_PREFIX=${PREFIX} MULTIEXEC_WRAPPER_VERBOSE=yes \ |
368 |
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL |
353 |
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL |
369 |
.endif |
354 |
.endif |
370 |
|
355 |
|
371 |
${FIND} ${STAGEDIR} -type f -name '\._*' -delete |
|
|
372 |
MLARCHOPSYS=`${STAGEDIR}${MLBIN}/.arch-n-opsys` && \ |
373 |
( eval $${MLARCHOPSYS} ; \ |
374 |
${STRIP_CMD} "${STAGEDIR}${MLBIN}/.run/run.$${ARCH}-$${OPSYS}" \ |
375 |
"${STAGEDIR}${MLBIN}/.run/run.$${ARCH}-$${OPSYS}.so" ) |
376 |
|
377 |
.ifndef MULTIEXEC_WRAPPER_VERBOSE |
356 |
.ifndef MULTIEXEC_WRAPPER_VERBOSE |
378 |
deinstall: |
357 |
deinstall: |
379 |
export MULTIEXEC_WRAPPER_VERBOSE=yes && \ |
358 |
export MULTIEXEC_WRAPPER_VERBOSE=yes && \ |