34d753f122
ok jasper@ nigel@
74 lines
1.7 KiB
Makefile
74 lines
1.7 KiB
Makefile
# $OpenBSD: Makefile,v 1.16 2013/02/15 12:06:11 sthen Exp $
|
|
|
|
ONLY_FOR_ARCHS=i386
|
|
|
|
COMMENT= New Jersey Standard ML
|
|
|
|
V= 110.75
|
|
REVISION= 1
|
|
|
|
PKGNAME= smlnj-$V
|
|
CATEGORIES= lang
|
|
|
|
HOMEPAGE= http://www.smlnj.org/
|
|
|
|
# http://www.smlnj.org/license.html
|
|
PERMIT_PACKAGE_CDROM= without fee
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= without fee
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
WANTLIB= c m
|
|
|
|
MASTER_SITES= http://smlnj.cs.uchicago.edu/dist/working/$V/
|
|
DIST_SUBDIR= smlnj-$V
|
|
|
|
DISTFILES= MLRISC.tgz \
|
|
boot.x86-unix.tgz \
|
|
ckit.tgz cm.tgz cml.tgz \
|
|
compiler.tgz config.tgz \
|
|
eXene.tgz heap2asm.tgz \
|
|
ml-burg.tgz ml-lex.tgz \
|
|
ml-lpt.tgz ml-yacc.tgz \
|
|
nlffi.tgz pgraph.tgz \
|
|
runtime.tgz smlnj-c.tgz \
|
|
smlnj-lib.tgz system.tgz \
|
|
trace-debug-profile.tgz
|
|
|
|
SML_BASE= ${PREFIX}/smlnj
|
|
SML_LIBDIR= ${SML_BASE}/lib
|
|
SML_BINDIR= ${SML_BASE}/bin
|
|
SML_EXES= heap2exec ml-antlr ml-build \
|
|
ml-burg ml-lex \
|
|
ml-makedepend ml-nlffigen \
|
|
ml-ulex ml-yacc sml
|
|
|
|
USE_GMAKE= Yes
|
|
NO_REGRESS= Yes
|
|
|
|
post-extract:
|
|
mkdir -p ${WRKDIR}/base
|
|
cd ${WRKDIR} && \
|
|
mv cm compiler runtime base
|
|
|
|
do-build:
|
|
cd ${WRKDIR} && unset PWD && \
|
|
for file in "config/_*"; do \
|
|
${SUBST_CMD} ${WRKDIR}/$$file; \
|
|
done; \
|
|
FILESDIR="$(FILESDIR)" SMLNJ_HOME="${WRKSRC}" ./config/install.sh
|
|
|
|
do-install:
|
|
rm -rf ${SML_BASE}
|
|
mkdir ${SML_BASE} ${SML_BINDIR} ${SML_LIBDIR}
|
|
tar -C ${WRKDIR} -cf - bin | tar -C ${SML_BASE} -xf -
|
|
tar -C ${WRKDIR} -cf - lib | tar -C ${SML_BASE} -xf -
|
|
# Remove symlinks which may have been copied if ccache was used
|
|
rm -f ${SML_BASE}/bin/{g,}cc ${SML_BASE}/bin/{g,c}++
|
|
cd ${PREFIX}/bin && \
|
|
for file in ${SML_EXES}; do \
|
|
ln -s ../smlnj/bin/$$file .; \
|
|
done
|
|
|
|
.include <bsd.port.mk>
|