aboutsummaryrefslogtreecommitdiffstats
path: root/devel/erlang-getopt/Makefile
blob: 9c35bf6e851958ed8749d16e3fcb9358573b7f35 (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
# $FreeBSD$

PORTNAME=   getopt
PORTVERSION=    0.8.2
DISTVERSIONPREFIX=v
CATEGORIES= devel
PKGNAMEPREFIX=  erlang-

MAINTAINER= olgeni@FreeBSD.org
COMMENT=    Command line parsing library for Erlang

LICENSE=    BSD3CLAUSE

BUILD_DEPENDS=  ${LOCALBASE}/bin/erl:${PORTSDIR}/lang/erlang
RUN_DEPENDS:=   ${BUILD_DEPENDS}

PLIST_SUB=  VERSION="${PORTVERSION}"

USES=       gmake
USE_GITHUB= yes
GH_ACCOUNT= jcomellas

do-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
    @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}
    @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
    @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
    ${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
    ${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src

.include <bsd.port.mk>