summaryrefslogtreecommitdiff
path: root/audio/lua-mpd/Makefile
blob: 58321aeaddbb1a13668982af3ddbc6a3cfc70051 (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

PORTNAME=	mpd
PORTVERSION=	0.1
PORTREVISION=	1
DISTVERSIONPREFIX=	v
CATEGORIES=	audio
PKGNAMEPREFIX=	${LUA_PKGNAMEPREFIX}

MAINTAINER=	demelier.david@gmail.com
COMMENT=	Lua library for musicpd

RUN_DEPENDS=	${LUA_REFMODLIBDIR}/socket/core.so:net/luasocket@${LUA_FLAVOR}

OPTIONS_DEFINE=	DOCS
DOCSDIR=	${LUA_DOCSDIR}

GH_ACCOUNT=	silentbicycle
GH_PROJECT=	lua-mpd

USES=		lua:51,module
USE_GITHUB=	yes
NO_BUILD=	yes

do-install:
	@${MKDIR} ${STAGEDIR}${LUA_MODSHAREDIR}
	${INSTALL_DATA} ${WRKSRC}/mpd.lua ${STAGEDIR}${LUA_MODSHAREDIR}
	@${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${DOCSDIR}/modules ${STAGEDIR}${DOCSDIR}/files
	${INSTALL_DATA} ${WRKSRC}/index.html ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/luadoc.css ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/files/mpd.html ${STAGEDIR}${DOCSDIR}/files
	${INSTALL_DATA} ${WRKSRC}/modules/mpd.html ${STAGEDIR}${DOCSDIR}/modules

.include <bsd.port.mk>