openbsd-ports/lang/smlnj/Makefile

77 lines
1.9 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.11 2013/01/13 07:10:09 brad Exp $
ONLY_FOR_ARCHS= i386
2002-06-29 21:02:47 -04:00
COMMENT= New Jersey Standard ML
V= 110.0.7
PKGNAME= smlnj-$V
REVISION= 1
2002-06-29 21:02:47 -04:00
CATEGORIES= lang
HOMEPAGE= http://www.smlnj.org/
2002-06-29 21:02:47 -04:00
MAINTAINER= Jens Gerlach Christensen <vepjan@worldonline.dk>
# http://www.smlnj.org/license.html
PERMIT_PACKAGE_CDROM= without fee
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= without fee
PERMIT_DISTFILES_FTP= Yes
2005-02-24 08:20:41 -05:00
WANTLIB= c m
MASTER_SITES= ftp://ftp.research.bell-labs.com/dist/smlnj/release/$V/
DIST_SUBDIR= smlnj-$V
2002-06-29 21:02:47 -04:00
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
2002-06-29 21:02:47 -04:00
USE_GMAKE= Yes
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
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
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}` | \
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>