mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
0c6c357e36
PR: 200298 Submitted by: tkato432@yahoo.com
33 lines
735 B
Makefile
33 lines
735 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= lgi
|
|
PORTVERSION= 0.9.0
|
|
CATEGORIES= devel
|
|
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Lua bindings to libraries using GObject-Introspection
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= pavouk
|
|
|
|
USES= gmake lua pkgconfig
|
|
USE_GNOME= introspection:build,run
|
|
MAKE_ENV= LUA_CFLAGS="-I${LUA_INCDIR}"
|
|
MAKE_ARGS= PREFIX="${PREFIX}" LUA_LIBDIR="${LUA_MODLIBDIR}" \
|
|
LUA_INCDIR="${LUA_INCDIR}" LUA_VERSION="${LUA_VER}" \
|
|
CORE="corelgilua${LUA_VER_STR}.so"
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's/51/${LUA_VER_STR}/g' \
|
|
${WRKSRC}/lgi/core.c \
|
|
${WRKSRC}/lgi/core.lua
|
|
|
|
post-install:
|
|
@${STRIP_CMD} ${STAGEDIR}${LUA_MODLIBDIR}/lgi/*.so
|
|
|
|
.include <bsd.port.mk>
|