aboutsummaryrefslogtreecommitdiff
path: root/devel/distel/Makefile
blob: 8b207eddc8832715cdd672aa02cced271f9b693b (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
# $FreeBSD$

PORTNAME=	distel
PORTVERSION=	4.1.1
CATEGORIES=	devel elisp

MAINTAINER=	olgeni@FreeBSD.org
COMMENT=	Distel extends Emacs Lisp with Erlang-style message passing

BUILD_DEPENDS+=	erlc:lang/erlang

USE_GITHUB=	yes
GH_ACCOUNT=	massemanet

PLIST_SUB=	VERSION="${PORTVERSION}"

USE_EMACS=	yes
NO_ARCH=	yes

DISTEL_DOCS=	AUTHORS ChangeLog INSTALL INSTALL.WIN32 NEWS README README.ie-session
DISTEL_ROOT=	${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}

do-build:
	@${MKDIR} ${WRKSRC}/ebin
	@cd ${WRKSRC} && erlc -W0 -o ebin/ +debug_info src/*.erl

do-install:
	@${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR}/${PORTNAME}
	${INSTALL_DATA} ${WRKSRC}/elisp/*el ${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR}/${PORTNAME}

	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	for FILE in ${DISTEL_DOCS}; do \
		${INSTALL_DATA} ${WRKSRC}/$${FILE} ${STAGEDIR}${DOCSDIR}; \
	done
	${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${STAGEDIR}${DOCSDIR}
	@${MKDIR} ${STAGEDIR}${DOCSDIR}/html
	${INSTALL_DATA} ${WRKSRC}/doc/distel/*.html ${STAGEDIR}${DOCSDIR}/html

	@${MKDIR} ${STAGEDIR}${DISTEL_ROOT}/src
	@${MKDIR} ${STAGEDIR}${DISTEL_ROOT}/ebin
	${INSTALL_DATA} ${WRKSRC}/src/*.erl ${STAGEDIR}${DISTEL_ROOT}/src
	${INSTALL_DATA} ${WRKSRC}/ebin/*.beam ${STAGEDIR}${DISTEL_ROOT}/ebin

.include <bsd.port.mk>