Makefile 1.3 KB
Newer Older
1
2
3
4
5
# $FreeBSD$

PORTNAME=	common_lib
PORTVERSION=	3.3.4
CATEGORIES=	devel
olgeni's avatar
olgeni committed
6
PKGNAMEPREFIX=	erlang-
7
8
9
10
11

MAINTAINER=	olgeni@FreeBSD.org
COMMENT=	Library of commonly used Erlang functions

BUILD_DEPENDS=	erlc:${PORTSDIR}/lang/erlang \
12
		txt2tags:${PORTSDIR}/textproc/txt2tags
13
14
15
16
17
18
19
20
RUN_DEPENDS=	erl:${PORTSDIR}/lang/erlang

PLIST_SUB=	VERSION="${PORTVERSION}"

USE_GITHUB=	yes
GH_ACCOUNT=	iamaleksey

ALL_TARGET=	compile doc
bapt's avatar
bapt committed
21
USES=		dos2unix gmake iconv:build
olgeni's avatar
olgeni committed
22
DOS2UNIX_GLOB=	Makefile *.hrl *.erl
23
24
25
26
27

post-extract:
	@${REINPLACE_CMD} -e "s@&lt;@<@g" -e "s@&gt;@>@g" ${WRKSRC}/doc/*.ndoc

do-install:
olgeni's avatar
olgeni committed
28
29
30
31
32
33
34
35
36
37
38
	@for manpage in ${WRKSRC}/doc/man/*; do \
		${MV} $${manpage} $${manpage}.src; \
		${ICONV_CMD} -f UTF-8 -t ISO-8859-1 $${manpage}.src > $${manpage}; \
	done
	${INSTALL_MAN} ${WRKSRC}/doc/man/*.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
	${INSTALL_MAN} ${WRKSRC}/doc/man/*.3 ${STAGEDIR}${MAN1PREFIX}/man/man3
	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/common_lib-${PORTVERSION}
	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/common_lib-${PORTVERSION}/ebin
	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/common_lib-${PORTVERSION}/src
	${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/common_lib-${PORTVERSION}/ebin
	${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/common_lib-${PORTVERSION}/src
39
40

.include <bsd.port.mk>