openbsd-ports/devel/lua-lgi/Makefile

45 lines
931 B
Makefile
Raw Normal View History

2013-04-12 03:21:59 -04:00
# $OpenBSD: Makefile,v 1.16 2013/04/12 07:21:59 jasper Exp $
SHARED_ONLY= Yes
COMMENT= lua bindings to libraries using GObject-Introspection
2013-04-12 03:21:59 -04:00
DISTNAME= lgi-0.7.1
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 05:26:26 -05:00
WANTLIB += pthread
LIB_DEPENDS= devel/gobject-introspection
2013-03-08 05:26:26 -05:00
MASTER_SITES= http://distfiles.nl/
USE_GMAKE= Yes
MAKE_ENV= MAKE=${MAKE_PROGRAM} LUA_CFLAGS="-I${MODLUA_INCL_DIR}" \
LUA_LIBDIR="${MODLUA_LIBDIR}" LUA_SHAREDIR="${MODLUA_DATADIR}"
2013-04-12 03:21:59 -04:00
TEST_TARGET= check
2013-03-11 06:50:00 -04:00
TEST_IS_INTERACTIVE=x11
2012-07-19 16:26:26 -04:00
pre-configure:
${SUBST_CMD} ${WRKSRC}/lgi/Makefile
post-install:
2012-05-15 11:15:19 -04:00
${INSTALL_DATA_DIR} ${MODLUA_EXAMPLEDIR}
cd ${WRKSRC}/samples/ && umask 022 && \
2012-05-15 11:15:19 -04:00
pax -rw . ${MODLUA_EXAMPLEDIR}
2013-03-11 06:50:00 -04:00
pre-test:
${SUBST_CMD} ${WRKSRC}/tests/Makefile
.include <bsd.port.mk>