2013-03-11 07:35:43 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.14 2013/03/11 11:41:25 espie Exp $
|
2006-09-20 10:08:47 -04:00
|
|
|
|
2007-09-15 19:29:57 -04:00
|
|
|
COMMENT= Lua binding for the OpenSSL crypto libraries
|
2007-07-04 15:18:45 -04:00
|
|
|
SHARED_ONLY= Yes
|
2006-09-20 10:08:47 -04:00
|
|
|
|
2011-04-16 07:58:43 -04:00
|
|
|
DISTNAME= luacrypto-0.2.0
|
2012-09-19 04:15:08 -04:00
|
|
|
REVISION= 3
|
2006-09-20 10:08:47 -04:00
|
|
|
CATEGORIES= security
|
|
|
|
|
2011-04-18 14:12:47 -04:00
|
|
|
MASTER_SITES= http://luaforge.net/frs/download.php/1722/
|
2006-09-20 10:08:47 -04:00
|
|
|
HOMEPAGE= http://luacrypto.luaforge.net/
|
|
|
|
|
|
|
|
# MIT
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
2011-04-18 14:12:47 -04:00
|
|
|
WANTLIB= crypto ssl
|
2013-03-11 07:35:43 -04:00
|
|
|
MODLUA_TEST_DEPENDS=security/luacrypto
|
2006-09-20 10:08:47 -04:00
|
|
|
CFLAGS+= -fPIC -DPIC
|
|
|
|
|
2008-06-11 01:04:37 -04:00
|
|
|
MODULES= lang/lua
|
2006-09-20 10:08:47 -04:00
|
|
|
|
2012-07-10 11:22:44 -04:00
|
|
|
pre-configure:
|
|
|
|
${SUBST_CMD} ${WRKSRC}/config
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${MODLUA_LIBDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/crypto.so ${MODLUA_LIBDIR}
|
2012-05-15 11:15:19 -04:00
|
|
|
${INSTALL_DATA_DIR} ${MODLUA_DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/us/{*.html,*.png} ${MODLUA_DOCDIR}
|
2011-04-16 07:58:43 -04:00
|
|
|
|
2013-03-11 07:35:43 -04:00
|
|
|
do-test:
|
2012-07-10 11:22:44 -04:00
|
|
|
cd ${WRKDIST}/tests && ${MODLUA_BIN} test.lua message
|
2011-04-18 14:12:47 -04:00
|
|
|
|
2006-09-20 10:08:47 -04:00
|
|
|
.include <bsd.port.mk>
|