mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-04 11:23:46 +00:00
- Unbreak for 5-CURRENT
- calm processor warnings for assembler code on 5-CURRENT - mark the Alpha as currently unsupported - update WWW: link. Submitted by: Johannes 5 Joemann <joemann@beefree.free.de> [MAINTAINER]
This commit is contained in:
parent
7d277f7143
commit
b4b193d2e7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=77709
@ -14,8 +14,8 @@ MASTER_SITES= ftp://ftp.research.bell-labs.com/dist/smlnj/working/${PORTVERSION}
|
||||
DISTFILES= config.tgz runtime.tgz
|
||||
.if (${MACHINE_ARCH} == "i386")
|
||||
DISTFILES+= boot.x86-unix.tgz
|
||||
.elif (${MACHINE_ARCH} == "alpha")
|
||||
DISTFILES+= boot.alpha32-unix.tgz
|
||||
#.elif (${MACHINE_ARCH} == "alpha")
|
||||
#DISTFILES+= boot.alpha32-unix.tgz
|
||||
.endif
|
||||
DISTFILES+= ml-yacc.tgz ml-lex.tgz smlnj-lib.tgz cml.tgz
|
||||
.if defined(WITH_EVERYTHING) || defined(WITH_RECOMPILE) || defined(WITH_FLINT)
|
||||
@ -35,12 +35,14 @@ USE_GMAKE= yes
|
||||
|
||||
NO_LATEST_LINK= yes
|
||||
|
||||
ONLY_FOR_ARCHS= i386
|
||||
|
||||
.if (${MACHINE_ARCH} == "i386")
|
||||
MLARCH= x86
|
||||
.elif (${MACHINE_ARCH} == "alpha")
|
||||
MLARCH= alpha32
|
||||
.else
|
||||
BROKEN= not ported to ${MACHINE_ARCH}
|
||||
#.elif (${MACHINE_ARCH} == "alpha")
|
||||
#MLARCH= alpha32
|
||||
#.else
|
||||
#BROKEN= not ported to ${MACHINE_ARCH}
|
||||
.endif
|
||||
|
||||
.if defined(WITH_FLINT)
|
||||
@ -121,7 +123,8 @@ MLFLINTPATCH= optional-patch-flint-access
|
||||
|
||||
do-build:
|
||||
.if defined(WITH_RECOMPILE)
|
||||
${MV} "${WRKDIR}/config/targets.customized" "${WRKDIR}/config/targets.customized.later"
|
||||
${MV} "${WRKDIR}/config/targets.customized" \
|
||||
"${WRKDIR}/config/targets.customized.later"
|
||||
${SED} -E -e '/^#request[ ]+src-smlnj$$/s/^#//' \
|
||||
"${WRKDIR}/config/targets" > "${WRKDIR}/config/targets.customized"
|
||||
.endif
|
||||
@ -172,7 +175,8 @@ PLIST_SUB= MLARCH=${MLARCH}
|
||||
do-install:
|
||||
${MKDIR} "${MLROOT}"
|
||||
.if defined(WITH_RECOMPILE)
|
||||
${MV} "${WRKDIR}/config/targets.customized" "${WRKDIR}/config/targets.customized.later"
|
||||
${MV} "${WRKDIR}/config/targets.customized" \
|
||||
"${WRKDIR}/config/targets.customized.later"
|
||||
${ECHO_CMD} -n > "${WRKDIR}/config/targets.customized"
|
||||
.endif
|
||||
cd ${WRKDIR} && unset PWD && \
|
||||
|
33
lang/sml-nj-devel/files/do-patch-src-genposixnames
Normal file
33
lang/sml-nj-devel/files/do-patch-src-genposixnames
Normal file
@ -0,0 +1,33 @@
|
||||
--- src/runtime/config/gen-posix-names.sh.orig Mon Nov 27 14:24:39 2000
|
||||
+++ src/runtime/config/gen-posix-names.sh Tue Mar 11 23:09:11 2003
|
||||
@@ -39,17 +39,20 @@
|
||||
echo "#include <unistd.h>" > $SRCFILE
|
||||
$CPP $SRCFILE > $INCLFILE
|
||||
rm -f $SRCFILE
|
||||
-elif [ -r "/usr/include/sys/unistd.h" ]; then
|
||||
- INCLFILE=/usr/include/sys/unistd.h
|
||||
-elif [ -r "/usr/include/confname.h" ]; then
|
||||
- INCLFILE=/usr/include/confname.h
|
||||
-elif [ -r "/usr/include/unistd.h" ]; then
|
||||
- INCLFILE=/usr/include/unistd.h
|
||||
-elif [ -r "/usr/include/bsd/unistd.h" ]; then
|
||||
- INCLFILE=/usr/include/bsd/unistd.h
|
||||
else
|
||||
- echo "gen-posix-names.sh: unable to find <unistd.h>"
|
||||
- exit 1
|
||||
+ INCLFILE=""
|
||||
+ for f in "/usr/include/sys/unistd.h" \
|
||||
+ "/usr/include/confname.h" \
|
||||
+ "/usr/include/unistd.h" \
|
||||
+ "/usr/include/bsd/unistd.h"; do
|
||||
+ if [ -r "$f" ]; then
|
||||
+ INCLFILE="$INCLFILE $f"
|
||||
+ fi
|
||||
+ done
|
||||
+ if [ -z "$INCLFILE" ]; then
|
||||
+ echo "gen-posix-names.sh: unable to find <unistd.h>"
|
||||
+ exit 1
|
||||
+ fi
|
||||
fi
|
||||
|
||||
echo "/* $OUTF" >> $OUTF
|
11
lang/sml-nj-devel/files/do-patch-src-mk.x86-freebsd
Normal file
11
lang/sml-nj-devel/files/do-patch-src-mk.x86-freebsd
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/runtime/objs/mk.x86-freebsd.orig Mon Nov 6 22:41:04 2000
|
||||
+++ src/runtime/objs/mk.x86-freebsd Mon Mar 17 01:43:31 2003
|
||||
@@ -10,7 +10,7 @@
|
||||
ARFLAGS = Trcv
|
||||
CC = gcc -ansi
|
||||
CFLAGS = -O2
|
||||
-CPP = gcc -x c -E -P -ansi
|
||||
+CPP = gcc -x assembler-with-cpp -E -P -ansi
|
||||
#CPP = /usr/bin/cpp -P
|
||||
|
||||
XOBJS =
|
@ -1,5 +1,5 @@
|
||||
--- config/install.sh.orig Thu Oct 17 15:07:53 2002
|
||||
+++ config/install.sh Sun Nov 10 23:59:17 2002
|
||||
+++ config/install.sh Mon Mar 17 02:11:26 2003
|
||||
@@ -550,6 +550,28 @@
|
||||
######################################################################
|
||||
|
||||
@ -29,7 +29,16 @@
|
||||
# create the various sub directories
|
||||
#
|
||||
for dir in $BINDIR $HEAPDIR $RUNDIR $LIBDIR $SRCDIR ; do
|
||||
@@ -664,7 +686,7 @@
|
||||
@@ -656,6 +678,8 @@
|
||||
# build the run-time system
|
||||
#
|
||||
unpack "run-time" $SRCDIR runtime runtime
|
||||
+do_patch do-patch-src-genposixnames
|
||||
+do_patch do-patch-src-mk.x86-freebsd
|
||||
if [ -x $RUNDIR/run.$ARCH-$OPSYS ]; then
|
||||
vsay $this: Run-time system already exists.
|
||||
else
|
||||
@@ -664,7 +688,7 @@
|
||||
$MAKE -f mk.$ARCH-$OPSYS $EXTRA_DEFS
|
||||
if [ -x run.$ARCH-$OPSYS ]; then
|
||||
mv run.$ARCH-$OPSYS $RUNDIR
|
||||
@ -38,7 +47,7 @@
|
||||
else
|
||||
complain "$this: !!! Run-time system build failed for some reason."
|
||||
fi
|
||||
@@ -728,6 +750,8 @@
|
||||
@@ -728,6 +752,8 @@
|
||||
do
|
||||
unpack $src $ROOT/src $src $src
|
||||
done
|
||||
|
@ -1,7 +1,7 @@
|
||||
A Standard ML implementation from Bell-Labs. Implements the SML '97 definition
|
||||
including the new Basis library with a few minor omissions and discrepancies.
|
||||
|
||||
WWW: http://cm.bell-labs.com/cm/cs/what/smlnj/index.html
|
||||
WWW: http://www.smlnj.org/
|
||||
|
||||
If you are interested in a lighter weight implementation of ML,
|
||||
the Moscow-ML port is recommended.
|
||||
|
Loading…
x
Reference in New Issue
Block a user