36 lines
1,020 B
Makefile
36 lines
1,020 B
Makefile
# $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
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
do-install:
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
|
|
.endif
|
|
@${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>
|