openbsd-ports/sysutils/luastatgrab/Makefile

46 lines
1.1 KiB
Makefile
Raw Normal View History

2011-04-18 04:09:19 -04:00
# $OpenBSD: Makefile,v 1.5 2011/04/18 08:09:19 jasper Exp $
SHARED_ONLY= Yes
COMMENT= libstatgrab bindings for Lua
DISTNAME= lua-statgrab-0.3.0
PKGNAME= ${DISTNAME:S/-//}
2011-04-18 04:09:19 -04:00
REVISION= 0
CATEGORIES= sysutils devel
HOMEPAGE= http://luaforge.net/projects/lua-statgrab
# MIT
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MODULES= lang/lua
2011-04-18 04:09:19 -04:00
MASTER_SITES= http://luaforge.net/frs/download.php/4756/
2010-11-11 14:00:48 -05:00
WANTLIB = statgrab
2010-11-20 12:22:40 -05:00
LIB_DEPENDS= sysutils/libstatgrab
REGRESS_DEPENDS=${BUILD_PKGPATH}
do-build:
cd ${WRKDIR} && \
${CC} ${CFLAGS} -fPIC -I${LOCALBASE}/include -shared\
`pkg-config --cflags libstatgrab` \
`pkg-config --libs libstatgrab` \
${WRKSRC}/libstatgrab.c -o ${WRKSRC}/libstatgrab.so
do-install:
${INSTALL_DATA_DIR} ${MODLUA_LIBDIR} ${MODLUA_DATADIR} \
${PREFIX}/share/doc/luastatgrab/
${INSTALL_DATA} ${WRKSRC}/libstatgrab.so ${MODLUA_LIBDIR}
${INSTALL_DATA} ${WRKSRC}/statgrab.lua ${MODLUA_DATADIR}
${INSTALL_DATA} ${WRKSRC}/API.txt ${PREFIX}/share/doc/luastatgrab
do-regress:
cd ${WRKSRC} && ${LOCALBASE}/bin/lua *.lua
.include <bsd.port.mk>