2014-09-29 07:40:07 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.23 2014/09/29 07:40:07 jasper Exp $
|
2012-05-15 20:45:12 +00:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
2012-04-12 13:46:36 +00:00
|
|
|
|
|
|
|
COMMENT= lua bindings to libraries using GObject-Introspection
|
|
|
|
|
2014-07-10 11:06:15 +00:00
|
|
|
GH_ACCOUNT= pavouk
|
|
|
|
GH_PROJECT= lgi
|
2014-09-10 08:42:33 +00:00
|
|
|
GH_TAGNAME= 0.8.0
|
|
|
|
GH_COMMIT= 051170efd8c176fbea7f16abf690dab176d96864
|
2014-09-29 07:40:07 +00:00
|
|
|
REVISION= 0
|
2014-07-10 11:06:15 +00:00
|
|
|
|
|
|
|
DISTNAME= ${GH_PROJECT}-${GH_TAGNAME}
|
2012-04-12 13:46:36 +00:00
|
|
|
PKGNAME= lua-${DISTNAME}
|
|
|
|
CATEGORIES= devel
|
|
|
|
|
|
|
|
HOMEPAGE= https://github.com/pavouk/lgi
|
|
|
|
|
|
|
|
# MIT
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
|
|
|
MODULES= devel/gettext \
|
|
|
|
lang/lua
|
|
|
|
|
|
|
|
WANTLIB += ffi girepository-1.0 glib-2.0 gmodule-2.0 gobject-2.0
|
2013-03-08 10:26:26 +00:00
|
|
|
WANTLIB += pthread
|
2012-04-12 13:46:36 +00:00
|
|
|
|
|
|
|
LIB_DEPENDS= devel/gobject-introspection
|
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
2012-07-10 15:22:44 +00:00
|
|
|
MAKE_ENV= MAKE=${MAKE_PROGRAM} LUA_CFLAGS="-I${MODLUA_INCL_DIR}" \
|
|
|
|
LUA_LIBDIR="${MODLUA_LIBDIR}" LUA_SHAREDIR="${MODLUA_DATADIR}"
|
2012-04-12 13:46:36 +00:00
|
|
|
|
2013-04-12 07:21:59 +00:00
|
|
|
TEST_TARGET= check
|
2013-03-11 10:50:00 +00:00
|
|
|
TEST_IS_INTERACTIVE=x11
|
2012-04-12 13:46:36 +00:00
|
|
|
|
2012-07-19 20:26:26 +00:00
|
|
|
pre-configure:
|
2013-05-21 07:50:28 +00:00
|
|
|
${SUBST_CMD} ${WRKSRC}/lgi/Makefile \
|
|
|
|
${WRKSRC}/lgi/core.c \
|
|
|
|
${WRKSRC}/lgi/core.lua
|
2012-07-19 20:26:26 +00:00
|
|
|
|
2012-04-12 13:46:36 +00:00
|
|
|
post-install:
|
2012-05-15 15:15:19 +00:00
|
|
|
${INSTALL_DATA_DIR} ${MODLUA_EXAMPLEDIR}
|
2012-04-12 13:46:36 +00:00
|
|
|
cd ${WRKSRC}/samples/ && umask 022 && \
|
2012-05-15 15:15:19 +00:00
|
|
|
pax -rw . ${MODLUA_EXAMPLEDIR}
|
2012-04-12 13:46:36 +00:00
|
|
|
|
2013-03-11 10:50:00 +00:00
|
|
|
pre-test:
|
2012-05-26 08:56:44 +00:00
|
|
|
${SUBST_CMD} ${WRKSRC}/tests/Makefile
|
|
|
|
|
2012-04-12 13:46:36 +00:00
|
|
|
.include <bsd.port.mk>
|