2013-09-20 19:13:42 +02:00
|
|
|
# Created by: sunghyuk
|
2008-03-12 12:00:02 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= luajava
|
|
|
|
PORTVERSION= 1.1
|
2008-06-06 16:17:21 +02:00
|
|
|
PORTREVISION= 1
|
2008-03-12 12:00:02 +01:00
|
|
|
CATEGORIES= devel java
|
|
|
|
MASTER_SITES= http://luaforge.net/frs/download.php/2105/
|
|
|
|
|
|
|
|
MAINTAINER= sunghyuk@gmail.com
|
2012-07-29 13:17:02 +02:00
|
|
|
COMMENT= Lua scripting tool for Java
|
2008-03-12 12:00:02 +01:00
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_LUA= 5.1
|
|
|
|
LUA_COMPS= lua
|
|
|
|
.if ${USE_LUA} == 5.0
|
|
|
|
LUA_COMPS+= compat51
|
|
|
|
.endif
|
|
|
|
USE_JAVA= yes
|
|
|
|
USE_LDCONFIG= yes
|
2009-11-20 23:53:09 +01:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2008-03-12 12:00:02 +01:00
|
|
|
|
|
|
|
ALL_TARGET= run
|
|
|
|
USE_DOS2UNIX= yes
|
|
|
|
DOS2UNIX_REGEX= .*\.*
|
|
|
|
|
2013-09-20 19:13:42 +02:00
|
|
|
NO_STAGE= yes
|
2008-03-12 12:00:02 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|%%LUA_DIR%%|${PREFIX}|' ${WRKSRC}/config
|
|
|
|
@${REINPLACE_CMD} -e 's|%%LUA_LIBDIR%%|${LUA_LIBDIR}|' ${WRKSRC}/config
|
|
|
|
@${REINPLACE_CMD} -e 's|%%LUA_INCDIR%%|${LUA_INCDIR}|' ${WRKSRC}/config
|
|
|
|
@${REINPLACE_CMD} -e 's|%%JAVA_HOME%%|${JAVA_HOME}|' ${WRKSRC}/config
|
|
|
|
@${REINPLACE_CMD} -e 's|linux|freebsd|' ${WRKSRC}/config
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/libluajava-1.1.so ${LUA_MODLIBDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/luajava-1.1.jar ${JAVAJARDIR}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
(cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} \* ${DOCSDIR})
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|