~cypheon/pkgsrc-wip

pkgsrc-wip/lua-MessagePack/Makefile -rw-r--r-- 861 bytes
5f1bf4f5 — Johann Rudloff Subst PLIST paths for platform specific files for other architectures 6 months ago
                                                                                
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
# $NetBSD: Makefile,v 1.2 2014/11/08 08:49:01 jonthn Exp $

DISTNAME=	lua-MessagePack-0.3.1
PKGNAME=	${DISTNAME:S/lua/${LUA_PKGPREFIX}/1}
CATEGORIES=	devel
MASTER_SITES=	-https://github.com/fperrad/lua-MessagePack/archive/${PKGVERSION_NOREV}${EXTRACT_SUFX}

HOMEPAGE=	https://fperrad.github.io/lua-MessagePack
COMMENT=	MessagePack library for Lua
LICENSE=	mit

NO_BUILD=	yes
NO_CONFIGURE=	yes

INSTALLATION_DIRS+=	${LUA_LDIR}

.include "../../lang/lua/luaversion.mk"
# Just link src dir src{version} to simplify install target
post-extract:
	${LN} -s ${WRKSRC}/src ${WRKSRC}/src5.1
	${LN} -s ${WRKSRC}/src ${WRKSRC}/src5.2

do-install:
	${INSTALL_DATA} ${WRKSRC}/src${_LUA_DOT_VERSION}/MessagePack.lua \
	                ${DESTDIR}${PREFIX}/${LUA_LDIR}

.include "../../lang/lua/luaversion.mk"
.include "../../lang/lua/module.mk"
.include "../../mk/bsd.pkg.mk"