2013-01-16 07:20:40 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.14 2013/01/16 12:20:40 sthen Exp $
|
2002-06-29 09:25:10 -04:00
|
|
|
|
2013-01-14 11:19:50 -05:00
|
|
|
ONLY_FOR_ARCHS=i386
|
2002-06-29 21:02:47 -04:00
|
|
|
|
2007-09-15 20:27:05 -04:00
|
|
|
COMMENT= New Jersey Standard ML
|
2012-11-01 17:31:55 -04:00
|
|
|
|
2013-01-14 11:16:59 -05:00
|
|
|
V= 110.75
|
2012-11-01 17:31:55 -04:00
|
|
|
|
|
|
|
PKGNAME= smlnj-$V
|
2002-06-29 21:02:47 -04:00
|
|
|
CATEGORIES= lang
|
|
|
|
|
2011-04-28 15:28:15 -04:00
|
|
|
HOMEPAGE= http://www.smlnj.org/
|
|
|
|
|
|
|
|
# http://www.smlnj.org/license.html
|
|
|
|
PERMIT_PACKAGE_CDROM= without fee
|
2012-10-15 11:18:31 -04:00
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
2011-04-28 15:28:15 -04:00
|
|
|
PERMIT_DISTFILES_CDROM= without fee
|
2012-10-15 11:18:31 -04:00
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2011-04-28 15:28:15 -04:00
|
|
|
|
2005-02-24 08:20:41 -05:00
|
|
|
WANTLIB= c m
|
2002-06-29 09:25:10 -04:00
|
|
|
|
2013-01-14 11:16:59 -05:00
|
|
|
MASTER_SITES= http://smlnj.cs.uchicago.edu/dist/working/$V/
|
2012-11-01 17:31:55 -04:00
|
|
|
DIST_SUBDIR= smlnj-$V
|
2002-06-29 21:02:47 -04:00
|
|
|
|
2013-01-14 11:16:59 -05:00
|
|
|
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
|
2002-06-29 09:25:10 -04:00
|
|
|
|
2002-06-29 21:02:47 -04:00
|
|
|
SML_BASE= ${PREFIX}/smlnj
|
|
|
|
SML_LIBDIR= ${SML_BASE}/lib
|
|
|
|
SML_BINDIR= ${SML_BASE}/bin
|
2013-01-14 11:16:59 -05:00
|
|
|
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
|
2002-06-29 09:25:10 -04:00
|
|
|
|
|
|
|
post-extract:
|
2013-01-14 11:16:59 -05:00
|
|
|
mkdir -p ${WRKDIR}/base
|
2002-06-29 09:25:10 -04:00
|
|
|
cd ${WRKDIR} && \
|
2013-01-14 11:16:59 -05:00
|
|
|
mv cm compiler runtime base
|
2002-06-29 09:25:10 -04:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKDIR} && unset PWD && \
|
|
|
|
FILESDIR="$(FILESDIR)" ./config/install.sh
|
2002-10-27 09:12:47 -05:00
|
|
|
|
2002-06-29 09:25:10 -04:00
|
|
|
do-install:
|
|
|
|
rm -rf ${SML_BASE}
|
2013-01-14 11:16:59 -05:00
|
|
|
mkdir ${SML_BASE} ${SML_BINDIR} ${SML_LIBDIR}
|
2002-06-29 09:25:10 -04:00
|
|
|
tar -C ${WRKDIR} -cf - bin | tar -C ${SML_BASE} -xf -
|
2013-01-14 11:16:59 -05:00
|
|
|
tar -C ${WRKDIR} -cf - lib | tar -C ${SML_BASE} -xf -
|
2013-01-16 07:20:40 -05:00
|
|
|
# Remove symlinks which may have been copied if ccache was used
|
|
|
|
rm -f ${SML_BASE}/bin/{g,}cc ${SML_BASE}/bin/{g,c}++
|
2002-06-29 09:25:10 -04:00
|
|
|
cd ${PREFIX}/bin && \
|
|
|
|
for file in ${SML_EXES}; do \
|
|
|
|
ln -s ../smlnj/bin/$$file .; \
|
|
|
|
done
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|