aboutsummaryrefslogtreecommitdiff
path: root/devel/luajava/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/luajava/Makefile')
-rw-r--r--devel/luajava/Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/devel/luajava/Makefile b/devel/luajava/Makefile
index 0c0d9cd28880..197ae3cba712 100644
--- a/devel/luajava/Makefile
+++ b/devel/luajava/Makefile
@@ -10,7 +10,7 @@ MASTER_SITES= http://luaforge.net/frs/download.php/2105/
MAINTAINER= sunghyuk@gmail.com
COMMENT= Lua scripting tool for Java
-USE_GMAKE= yes
+USES= gmake dos2unix
USE_LUA= 5.1
LUA_COMPS= lua
.if ${USE_LUA} == 5.0
@@ -21,10 +21,8 @@ USE_LDCONFIG= yes
MAKE_JOBS_UNSAFE= yes
ALL_TARGET= run
-USE_DOS2UNIX= yes
DOS2UNIX_REGEX= .*\.*
-NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e 's|%%LUA_DIR%%|${PREFIX}|' ${WRKSRC}/config
@${REINPLACE_CMD} -e 's|%%LUA_LIBDIR%%|${LUA_LIBDIR}|' ${WRKSRC}/config
@@ -33,13 +31,15 @@ post-patch:
@${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}
+ ${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}
post-install:
.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- (cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} \* ${DOCSDIR})
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR})
.endif
.include <bsd.port.mk>