2012-08-12 13:24:56 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.14 2012/08/12 17:25:31 jasper Exp $
|
2007-09-15 05:48:31 -04:00
|
|
|
|
2009-12-16 10:05:14 -05:00
|
|
|
COMMENT = multiple states library for the lua language
|
|
|
|
SHARED_ONLY = Yes
|
2007-09-15 05:48:31 -04:00
|
|
|
|
2011-04-18 14:14:12 -04:00
|
|
|
DISTNAME = rings-1.2.3
|
2009-12-16 10:05:14 -05:00
|
|
|
PKGNAME = lua${DISTNAME}
|
2012-07-10 11:22:44 -04:00
|
|
|
REVISION = 2
|
2009-12-16 10:05:14 -05:00
|
|
|
CATEGORIES = devel
|
2007-09-15 05:48:31 -04:00
|
|
|
|
2009-12-16 10:05:14 -05:00
|
|
|
HOMEPAGE = http://www.keplerproject.org/rings/
|
2007-09-15 05:48:31 -04:00
|
|
|
|
|
|
|
# MIT
|
2009-12-16 10:05:14 -05:00
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM =Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
2007-09-15 05:48:31 -04:00
|
|
|
|
2011-04-18 14:14:12 -04:00
|
|
|
MASTER_SITES = http://github.com/downloads/keplerproject/rings/
|
2007-09-15 05:48:31 -04:00
|
|
|
|
2009-12-16 10:05:14 -05:00
|
|
|
MODULES = lang/lua
|
|
|
|
|
2012-07-10 11:22:44 -04:00
|
|
|
CFLAGS += -I${MODLUA_INCL_DIR}
|
|
|
|
COMPILE = ${CC} ${CFLAGS} -fPIC ${CFLAGS} -c
|
2009-12-16 10:05:14 -05:00
|
|
|
LINK = ${CC} ${CFLAGS} -fPIC -shared -L${LOCALBASE}/lib -o
|
2007-09-15 05:48:31 -04:00
|
|
|
|
2012-08-12 13:24:56 -04:00
|
|
|
REGRESS_FILES = sample sample_state test
|
|
|
|
|
2007-09-15 05:48:31 -04:00
|
|
|
do-build:
|
|
|
|
cd ${WRKDIST}/src && ${COMPILE} rings.c
|
|
|
|
cd ${WRKDIST}/src && ${LINK} rings.so rings.o
|
|
|
|
|
|
|
|
do-install:
|
2012-05-15 11:15:19 -04:00
|
|
|
${INSTALL_DATA_DIR} ${MODLUA_DATADIR} ${MODLUA_DOCDIR} ${MODLUA_LIBDIR}
|
2010-06-22 14:59:51 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/stable.lua ${MODLUA_DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/*.so ${MODLUA_LIBDIR}
|
2012-05-15 11:15:19 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/us/* ${MODLUA_DOCDIR}
|
2007-09-15 05:48:31 -04:00
|
|
|
|
|
|
|
do-regress:
|
|
|
|
cp ${WRKDIST}/src/*.so ${WRKDIST}/tests
|
|
|
|
cp ${WRKDIST}/src/*.lua ${WRKDIST}/tests
|
2012-08-12 13:24:56 -04:00
|
|
|
.for r in ${REGRESS_FILES}
|
|
|
|
cd ${WRKDIST}/tests && ${MODLUA_BIN} $r.lua
|
|
|
|
.endfor
|
2007-09-15 05:48:31 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|