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
|
2014-05-24 05:20:24 +02:00
|
|
|
PORTREVISION= 2
|
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
|
|
|
|
2014-05-26 17:28:28 +02:00
|
|
|
USES= gmake dos2unix lua:51
|
2008-03-12 12:00:02 +01:00
|
|
|
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
|
|
|
|
DOS2UNIX_REGEX= .*\.*
|
|
|
|
|
2014-07-04 01:57:07 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2014-05-24 09:01:48 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${JAVA_PORT_VERSION} == 1.7
|
|
|
|
PLIST_SUB+= JDK17=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= JDK17="@comment "
|
|
|
|
.endif
|
|
|
|
|
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
|
2014-06-06 23:39:23 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|%%LUA_VER%%|${LUA_VER}|' ${WRKSRC}/config
|
2008-03-12 12:00:02 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|%%JAVA_HOME%%|${JAVA_HOME}|' ${WRKSRC}/config
|
|
|
|
@${REINPLACE_CMD} -e 's|linux|freebsd|' ${WRKSRC}/config
|
|
|
|
|
|
|
|
do-install:
|
2014-05-23 19:26:36 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/libluajava-1.1.so ${STAGEDIR}${LUA_MODLIBDIR}
|
|
|
|
${MKDIR} ${STAGEDIR}${JAVAJARDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/luajava-1.1.jar ${STAGEDIR}${JAVAJARDIR}
|
2008-03-12 12:00:02 +01:00
|
|
|
|
2015-12-02 19:58:11 +01:00
|
|
|
do-install-DOCS-on:
|
2014-05-23 19:26:36 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2014-07-04 01:57:07 +02:00
|
|
|
(cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
|
2008-03-12 12:00:02 +01:00
|
|
|
|
2014-05-24 09:01:48 +02:00
|
|
|
.include <bsd.port.post.mk>
|