2012-09-20 17:10:42 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.13 2012/09/20 21:10:42 jasper Exp $
|
2012-05-15 16:45:12 -04:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
2012-04-12 09:46:36 -04:00
|
|
|
|
|
|
|
COMMENT= lua bindings to libraries using GObject-Introspection
|
|
|
|
|
2012-07-19 16:06:34 -04:00
|
|
|
DISTNAME= lgi-0.6.2
|
2012-04-12 09:46:36 -04:00
|
|
|
PKGNAME= lua-${DISTNAME}
|
2012-09-20 17:10:42 -04:00
|
|
|
REVISION= 2
|
2012-04-12 09:46:36 -04:00
|
|
|
CATEGORIES= devel
|
|
|
|
|
|
|
|
HOMEPAGE= https://github.com/pavouk/lgi
|
|
|
|
|
|
|
|
# MIT
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
MODULES= devel/gettext \
|
|
|
|
lang/lua
|
|
|
|
|
|
|
|
WANTLIB += ffi girepository-1.0 glib-2.0 gmodule-2.0 gobject-2.0
|
|
|
|
WANTLIB += gthread-2.0
|
|
|
|
|
|
|
|
LIB_DEPENDS= devel/gobject-introspection
|
|
|
|
|
|
|
|
MASTER_SITES= https://github.com/downloads/pavouk/lgi/ \
|
|
|
|
http://distfiles.nl/
|
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
2012-07-10 11:22:44 -04:00
|
|
|
MAKE_ENV= MAKE=${MAKE_PROGRAM} LUA_CFLAGS="-I${MODLUA_INCL_DIR}" \
|
|
|
|
LUA_LIBDIR="${MODLUA_LIBDIR}" LUA_SHAREDIR="${MODLUA_DATADIR}"
|
2012-04-12 09:46:36 -04:00
|
|
|
|
|
|
|
REGRESS_TARGET= check
|
2012-05-26 04:56:44 -04:00
|
|
|
REGRESS_IS_INTERACTIVE=x11
|
2012-04-12 09:46:36 -04:00
|
|
|
|
2012-07-19 16:26:26 -04:00
|
|
|
pre-configure:
|
|
|
|
${SUBST_CMD} ${WRKSRC}/lgi/Makefile
|
|
|
|
|
2012-04-12 09:46:36 -04:00
|
|
|
post-install:
|
2012-05-15 11:15:19 -04:00
|
|
|
${INSTALL_DATA_DIR} ${MODLUA_EXAMPLEDIR}
|
2012-04-12 09:46:36 -04:00
|
|
|
cd ${WRKSRC}/samples/ && umask 022 && \
|
2012-05-15 11:15:19 -04:00
|
|
|
pax -rw . ${MODLUA_EXAMPLEDIR}
|
2012-04-12 09:46:36 -04:00
|
|
|
|
2012-05-26 04:56:44 -04:00
|
|
|
pre-regress:
|
|
|
|
${SUBST_CMD} ${WRKSRC}/tests/Makefile
|
|
|
|
|
2012-04-12 09:46:36 -04:00
|
|
|
.include <bsd.port.mk>
|