freebsd-ports/devel/luajava/Makefile
Edwin Groothuis 090059a210 Bump portrevision due to upgrade of devel/gettext.
The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).

PR:             ports/124340
Submitted by:   edwin@
Approved by:    portmgr (pav)
2008-06-06 14:17:21 +00:00

47 lines
1.1 KiB
Makefile

# New ports collection makefile for: luajava
# Date created: 5 December 2007
# Whom: sunghyuk
#
# $FreeBSD$
#
PORTNAME= luajava
PORTVERSION= 1.1
PORTREVISION= 1
CATEGORIES= devel java
MASTER_SITES= http://luaforge.net/frs/download.php/2105/
MAINTAINER= sunghyuk@gmail.com
COMMENT= Lua scripting tool for java
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
ALL_TARGET= run
USE_DOS2UNIX= yes
DOS2UNIX_REGEX= .*\.*
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>