2007-09-15 20:27:05 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.6 2007/09/16 00:27:06 merdely Exp $
|
2002-06-29 09:25:10 -04:00
|
|
|
|
2002-06-29 21:02:47 -04:00
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
|
2007-09-15 20:27:05 -04:00
|
|
|
COMMENT= New Jersey Standard ML
|
2002-06-29 21:02:47 -04:00
|
|
|
PKGNAME= smlnj-110.0.7
|
|
|
|
CATEGORIES= lang
|
|
|
|
|
|
|
|
MAINTAINER= Jens Gerlach Christensen <vepjan@worldonline.dk>
|
2002-06-29 09:25:10 -04:00
|
|
|
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2005-02-24 08:20:41 -05:00
|
|
|
WANTLIB= c m
|
2002-06-29 09:25:10 -04:00
|
|
|
|
|
|
|
MASTER_SITES= ftp://ftp.research.bell-labs.com/dist/smlnj/release/110.0.7/
|
2002-06-29 21:02:47 -04:00
|
|
|
DIST_SUBDIR= smlnj-110.0.7
|
|
|
|
DISTFILES= bin.x86-unix.tar.Z cm.tar.Z cml.tar.Z \
|
|
|
|
config.tar.Z eXene.tar.Z \
|
|
|
|
ml-burg.tar.Z ml-lex.tar.Z \
|
|
|
|
ml-yacc.tar.Z runtime.tar.Z \
|
|
|
|
smlnj-c.tar.Z smlnj-lib.tar.Z
|
|
|
|
#EXTRACT_ONLY= config.tar.Z
|
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
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
|
|
|
|
SML_SRCDIR= ${SML_BASE}/src
|
|
|
|
SML_EXES= ml-burg ml-lex ml-yacc sml sml-cm
|
2002-06-29 09:25:10 -04:00
|
|
|
|
|
|
|
post-extract:
|
|
|
|
mkdir -p ${WRKDIR}/src
|
|
|
|
cd ${WRKDIR} && \
|
|
|
|
mv cm cml eXene ml-burg ml-lex ml-yacc runtime smlnj-lib src
|
|
|
|
#post-extract:
|
|
|
|
# cd ${WRKDIR} && ln -sf ${DISTDIR}/${DIST_SUBDIR}/* .
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKDIR} && unset PWD && \
|
|
|
|
FILESDIR="$(FILESDIR)" ./config/install.sh
|
2002-10-27 09:12:47 -05:00
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
2002-06-29 09:25:10 -04:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
rm -rf ${SML_BASE}
|
|
|
|
-mkdir ${SML_BASE} ${SML_BINDIR} ${SML_LIBDIR}
|
|
|
|
tar -C ${WRKDIR} -cf - bin | tar -C ${SML_BASE} -xf -
|
|
|
|
rm -f ${SML_BINDIR}/.run-sml
|
|
|
|
sed -e "s,^BIN_DIR=.*\$$,BIN_DIR=${TRUEPREFIX}/smlnj/bin," \
|
|
|
|
< ${WRKDIR}/bin/.run-sml > ${SML_BINDIR}/.run-sml
|
|
|
|
chmod 755 ${SML_BINDIR}/.run-sml
|
|
|
|
cd ${WRKDIR} && tar -cf - `find . -name x86-unix` | \
|
|
|
|
tar -C ${SML_BASE} -xf -
|
2006-11-02 06:22:15 -05:00
|
|
|
cd ${WRKDIR} && tar -cf - `${FILESDIR}/get-cm ${WRKDIR}` | \
|
2002-06-29 09:25:10 -04:00
|
|
|
tar -C ${SML_BASE} -xf -
|
|
|
|
for file in ${WRKDIR}/lib/*; do\
|
|
|
|
sed -e "s,${WRKDIR},${TRUEPREFIX}/smlnj," < $$file > \
|
|
|
|
${SML_LIBDIR}/`basename $$file`; \
|
|
|
|
done
|
|
|
|
cd ${PREFIX}/bin && \
|
|
|
|
for file in ${SML_EXES}; do \
|
|
|
|
ln -s ../smlnj/bin/$$file .; \
|
|
|
|
done
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|