summaryrefslogtreecommitdiff
path: root/lang/moscow_ml/Makefile
blob: 595f1d3f0807d3cefe9047d1ce4bab9341cc58e7 (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
43
44
45
46
47
# $NetBSD: Makefile,v 1.39 2018/08/22 09:45:21 wiz Exp $

DISTNAME=	mos201src
PKGNAME=	moscow_ml-2.01
PKGREVISION=	7
CATEGORIES=	lang
MASTER_SITES=	http://www.itu.dk/people/sestoft/mosml/

MAINTAINER=	pkgsrc-users@NetBSD.org
#HOMEPAGE=	http://www.dina.kvl.dk/~sestoft/mosml.html
COMMENT=	Moscow ML, a version of Standard ML

WRKSRC=		${WRKDIR}/mosml/src
USE_TOOLS+=	perl pax

BUILD_TARGET=	clean world
MAKE_JOBS_SAFE=	no

INSTALLATION_DIRS+=	share/examples/moscow_ml/calc
INSTALLATION_DIRS+=	share/examples/moscow_ml/cgi
INSTALLATION_DIRS+=	share/examples/moscow_ml/lexyacc
INSTALLATION_DIRS+=	share/examples/moscow_ml/lexyacc/cl
INSTALLATION_DIRS+=	share/examples/moscow_ml/manual
INSTALLATION_DIRS+=	share/examples/moscow_ml/mls
INSTALLATION_DIRS+=	share/examples/moscow_ml/modules
INSTALLATION_DIRS+=	share/examples/moscow_ml/parsercomb
INSTALLATION_DIRS+=	share/examples/moscow_ml/paulson
INSTALLATION_DIRS+=	share/examples/moscow_ml/pretty
INSTALLATION_DIRS+=	share/examples/moscow_ml/small
INSTALLATION_DIRS+=	share/examples/moscow_ml/units
INSTALLATION_DIRS+=	share/examples/moscow_ml/weak
INSTALLATION_DIRS+=	share/examples/moscow_ml/webserver

.include "../../mk/dlopen.buildlink3.mk"
BUILDLINK_TRANSFORM+=	opt:-ldl:${BUILDLINK_LDADD.dl:Q}

post-extract:
	${CHMOD} -x ${WRKDIR}/mosml/examples/modules/matrix.sml

post-install:
	cd ${WRKDIR}/mosml/examples && ${PAX} -rw . \
		${DESTDIR}${PREFIX}/share/examples/moscow_ml
	${CHOWN} -R ${SHAREOWN}:${SHAREGRP} \
		${DESTDIR}${PREFIX}/share/examples/moscow_ml
	${CHMOD} -R ugo+rX ${DESTDIR}${PREFIX}/share/examples/moscow_ml

.include "../../mk/bsd.pkg.mk"