summaryrefslogtreecommitdiff
path: root/lang/lfe/Makefile
blob: e9a2290d8295094cdb7ef16aa8629a7f236e5ffa (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
PORTNAME=	lfe
PORTVERSION=	1.3
DISTVERSIONPREFIX=	v
CATEGORIES=	lang

MAINTAINER=	hrs@FreeBSD.org
COMMENT=	Lisp Flavored Erlang
WWW=		https://lfe.io

LICENSE=	APACHE20

USES=		erlang gmake
USE_GITHUB=	yes
GH_ACCOUNT=	rvirding
ALL_TARGET=	compile
PORTDOCS=	README.md

OPTIONS_DEFINE=	DOCS

do-build:
	cd ${BUILD_WRKSRC} && \
	    ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET}

post-install:
	@${MKDIR} ${STAGEDIR}${ERL_APP_ROOT}/bin
.for FILE in lfe lfec lfedoc lfescript
	${INSTALL_SCRIPT} ${WRKSRC}/bin/${FILE} ${STAGEDIR}${ERL_APP_ROOT}/bin
	${LN} -sf ${ERL_APP_ROOT:S,^${PREFIX}/,,:S,^,../,}/bin/${FILE} \
	    ${STAGEDIR}${PREFIX}/bin
.endfor
.for FILE in lfe.1 lfescript.1
	${INSTALL_MAN} ${WRKSRC}/doc/man/${FILE} \
		${STAGEDIR}${MAN1PREFIX}/man/man1
.endfor
.for FILE in lfe_lib.3 lfe_doc.3 lfe_clj.3 lfe_cl.3 lfe_gen.3 \
	lfe_io.3 lfe_macro.3 lfe_comp.3 lfe_bits.3
	${INSTALL_MAN} ${WRKSRC}/doc/man/${FILE} \
		${STAGEDIR}${MAN1PREFIX}/man/man3
.endfor
.for FILE in lfe_guide.7 lfe_types.7
	${INSTALL_MAN} ${WRKSRC}/doc/man/${FILE} \
		${STAGEDIR}${MAN1PREFIX}/man/man7
.endfor

.include <bsd.port.mk>