blob: e701cd5c043700a47d006da607868732297d40ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# New ports collection makefile for: moscow-ml
# Date created: 2 August 1998
# Whom: chuckr
#
# $FreeBSD$
#
PORTNAME= moscow_ml
PORTVERSION= 2.00
PORTREVISION= 1
CATEGORIES= lang
MASTER_SITES= ftp://ftp.dina.kvl.dk/pub/mosml/ \
ftp://ftp.csd.uu.se/pub/mirror/mosml/
DISTNAME= mos20src
MAINTAINER= chuckr@freefall.FreeBSD.org
COMMENT= Moscow ML, a lightweight implementation of Standard ML
LIB_DEPENDS= gmp.6:${PORTSDIR}/math/libgmp4
MOSMLHOME= $(PREFIX)/moscow_ml
ALL_TARGET= world MOSMLHOME=$(MOSMLHOME)
INSTALL_TARGET= install MOSMLHOME=$(MOSMLHOME)
WRKSRC= ${WRKDIR}/mosml/src
USE_PERL5= yes
post-install:
${SED} -e 's|^MOSMLHOME=.*|MOSMLHOME=${MOSMLHOME}|' \
${WRKDIR}/mosml/tools/Makefile.stub > ${MOSMLHOME}/tools/Makefile.stub
for file in ${WRKDIR}/mosml/doc/*; do \
if [ -f $${file} ]; then \
${INSTALL_DATA} $${file} ${MOSMLHOME}/doc; fi; done
@cd ${WRKDIR}/mosml && \
${TAR} -cf - examples | \
${TAR} -xf - -C "${MOSMLHOME}"
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} "${MOSMLHOME}/examples"
for file in ${MOSMLHOME}/bin/*; do \
if [ -f $${file} ]; then \
$(LN) -sf $${file} $(PREFIX)/bin; fi; done
.include <bsd.port.mk>
|