summaryrefslogtreecommitdiff
path: root/lang/opendylan/Makefile
blob: 2b15f0d8c40da34d21d027df346d3143efc8a359 (plain) (blame)
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
# Created by: alepulver
# $FreeBSD$

PORTNAME=	opendylan
DISTVERSION=	2013.2
CATEGORIES=	lang
MASTER_SITES=	http://opendylan.org/downloads/opendylan/${DISTVERSION}/
DISTNAME=	${PORTNAME}-${DISTVERSION}-x86-freebsd

MAINTAINER=	hannes@mehnert.org
COMMENT=	Open Dylan project native command-line compiler for Dylan

BROKEN=		unfetchable

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/License.txt

IA32_BINARY_PORT=	yes
USES=		tar:bzip2
WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSION}
DATADIR=	${PREFIX}/lib/${PORTNAME}

WRAPPERS=	dylan-compiler make-dylan-app dswank parser-compiler

OPTIONS_DEFINE=	DOCS

do-build:
.for f in ${WRAPPERS}
	@(${ECHO_CMD} "#!${SH}"; \
	${ECHO_CMD} 'export LD_LIBRARY_PATH="${DATADIR}/lib"'; \
	${ECHO_CMD} 'exec ${DATADIR}/bin/${f} "$$@"') > ${WRKSRC}/${f}
.endfor

do-install:
	@${MKDIR} ${STAGEDIR}${DATADIR}
.for d in bin databases lib sources
	${CP} -r ${WRKSRC}/${d} ${STAGEDIR}${DATADIR}
.endfor
.for f in ${WRAPPERS}
	${INSTALL_SCRIPT} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin
.endfor

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>