diff options
author | linimon <linimon@FreeBSD.org> | 2006-09-15 16:17:11 +0800 |
---|---|---|
committer | linimon <linimon@FreeBSD.org> | 2006-09-15 16:17:11 +0800 |
commit | f2d8437c35c46dc1131c982c1f25abcd7d641fb3 (patch) | |
tree | 61136cc420c647223541df746f011f5307a7b184 /lang/lua | |
parent | 6c16383d95de00351d4ecaf674a95f310d209a6b (diff) | |
download | freebsd-ports-gnome-f2d8437c35c46dc1131c982c1f25abcd7d641fb3.tar.gz freebsd-ports-gnome-f2d8437c35c46dc1131c982c1f25abcd7d641fb3.tar.zst freebsd-ports-gnome-f2d8437c35c46dc1131c982c1f25abcd7d641fb3.zip |
Modify these files to reflect bsd.lua.mk as tested on the cluster.
PR: ports/101612
Submitted by: alepulver
Hat: portmgr
Diffstat (limited to 'lang/lua')
-rw-r--r-- | lang/lua/Makefile | 52 | ||||
-rw-r--r-- | lang/lua/pkg-plist | 81 |
2 files changed, 104 insertions, 29 deletions
diff --git a/lang/lua/Makefile b/lang/lua/Makefile index 35540a42841c..96de7f0e5f3a 100644 --- a/lang/lua/Makefile +++ b/lang/lua/Makefile @@ -19,20 +19,58 @@ MASTER_SITES= http://www.lua.org/ftp/ \ MAINTAINER= him@richardkiss.com COMMENT= Small, compilable scripting language providing easy access to C code -MAN1= lua.1 luac.1 +USE_LUA= 5.1 +LUA_COMPS= # only define variables +ALL_TARGET= bsd -MAKE_ARGS= bsd +MAN1= lua-${LUA_VER}.1 luac-${LUA_VER}.1 +DOCSDIR= ${PREFIX}/share/doc/${LUA_SUBDIR} +LATEST_LINK= ${LUA_SUBDIR} -CONFLICTS= lua-4* lua-5.0* +LUA_BIN= lua luac +LUA_INC= lua.h luaconf.h lualib.h lauxlib.h ../etc/lua.hpp +LUA_MAN= ${LUA_BIN:S/$/.1/} post-patch: - @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/Makefile + @${REINPLACE_CMD} -Ee \ + 's|^(CC=).*|\1 ${CC}| ; \ + s|^(CFLAGS=)|\1 ${CFLAGS}| ; \ + s|/usr/local|${PREFIX}|' \ + ${WRKSRC}/Makefile ${WRKSRC}/src/Makefile -post-install: +post-build: + @${RM} -f ${WRKSRC}/test/lua ${WRKSRC}/test/luac + +do-install: +# Programs. + ${MKDIR} ${LUA_BINDIR} +.for f in ${LUA_BIN} + ${INSTALL_PROGRAM} ${WRKSRC}/src/${f} ${LUA_BINDIR} + ${LN} -sf ${LUA_SUBDIR}/${f} ${PREFIX}/bin/${f}-${LUA_VER} +.endfor +# Include files. + ${MKDIR} ${LUA_INCDIR} +.for f in ${LUA_INC} + ${INSTALL_DATA} ${WRKSRC}/src/${f} ${LUA_INCDIR} +.endfor +# Libraries. + ${MKDIR} ${LUA_LIBDIR} + ${INSTALL_DATA} ${WRKSRC}/src/liblua.a ${LUA_LIBDIR} +# Manual pages. +.for f in ${LUA_MAN} + ${INSTALL_MAN} ${WRKSRC}/doc/${f} \ + ${PREFIX}/man/man1/${f:C/.1$//}-${LUA_VER}.1 +.endfor +# Documentation. .if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - @cd ${WRKSRC}/doc && ${INSTALL_DATA} *.html *.css *.gif ${DOCSDIR} + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} + cd ${WRKSRC}/doc && ${INSTALL_DATA} *.html *.gif ${DOCSDIR} + ${CP} -r ${WRKSRC}/etc ${WRKSRC}/test ${DOCSDIR} .endif +# Module directories. + ${MKDIR} ${LUA_MODLIBDIR} + ${MKDIR} ${LUA_MODSHAREDIR} .if ${MACHINE_ARCH:L} == "amd64" CFLAGS+= -fPIC diff --git a/lang/lua/pkg-plist b/lang/lua/pkg-plist index 0e1c8d85a72b..9655c72683b5 100644 --- a/lang/lua/pkg-plist +++ b/lang/lua/pkg-plist @@ -1,22 +1,59 @@ -@exec mkdir -p %D/lib/lua/5.1 -@exec mkdir -p %D/share/lua/5.1 -%%DOCSDIR%%/contents.html -%%DOCSDIR%%/logo.gif -%%DOCSDIR%%/lua.css -%%DOCSDIR%%/lua.html -%%DOCSDIR%%/luac.html -%%DOCSDIR%%/manual.html -%%DOCSDIR%%/readme.html -bin/lua -bin/luac -include/lauxlib.h -include/lua.h -include/lua.hpp -include/luaconf.h -include/lualib.h -lib/liblua.a -@dirrm %%DOCSDIR%% -@dirrm share/lua/5.1 -@dirrm share/lua -@dirrm lib/lua/5.1 -@dirrm lib/lua +@exec mkdir -p %D/share/lua/%%LUA_VER%% +@exec mkdir -p %D/lib/lua/%%LUA_VER%% +bin/lua-%%LUA_VER%% +%%LUA_BINDIR%%/lua +%%LUA_BINDIR%%/luac +bin/luac-%%LUA_VER%% +%%LUA_INCDIR%%/lauxlib.h +%%LUA_INCDIR%%/lua.h +%%LUA_INCDIR%%/lua.hpp +%%LUA_INCDIR%%/luaconf.h +%%LUA_INCDIR%%/lualib.h +%%LUA_LIBDIR%%/liblua.a +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/contents.html +%%PORTDOCS%%%%DOCSDIR%%/etc/Makefile +%%PORTDOCS%%%%DOCSDIR%%/etc/README +%%PORTDOCS%%%%DOCSDIR%%/etc/all.c +%%PORTDOCS%%%%DOCSDIR%%/etc/lua.hpp +%%PORTDOCS%%%%DOCSDIR%%/etc/lua.ico +%%PORTDOCS%%%%DOCSDIR%%/etc/lua.pc +%%PORTDOCS%%%%DOCSDIR%%/etc/luavs.bat +%%PORTDOCS%%%%DOCSDIR%%/etc/min.c +%%PORTDOCS%%%%DOCSDIR%%/etc/noparser.c +%%PORTDOCS%%%%DOCSDIR%%/etc/strict.lua +%%PORTDOCS%%%%DOCSDIR%%/logo.gif +%%PORTDOCS%%%%DOCSDIR%%/lua.html +%%PORTDOCS%%%%DOCSDIR%%/luac.html +%%PORTDOCS%%%%DOCSDIR%%/manual.html +%%PORTDOCS%%%%DOCSDIR%%/readme.html +%%PORTDOCS%%%%DOCSDIR%%/test/README +%%PORTDOCS%%%%DOCSDIR%%/test/bisect.lua +%%PORTDOCS%%%%DOCSDIR%%/test/cf.lua +%%PORTDOCS%%%%DOCSDIR%%/test/echo.lua +%%PORTDOCS%%%%DOCSDIR%%/test/env.lua +%%PORTDOCS%%%%DOCSDIR%%/test/factorial.lua +%%PORTDOCS%%%%DOCSDIR%%/test/fib.lua +%%PORTDOCS%%%%DOCSDIR%%/test/fibfor.lua +%%PORTDOCS%%%%DOCSDIR%%/test/globals.lua +%%PORTDOCS%%%%DOCSDIR%%/test/hello.lua +%%PORTDOCS%%%%DOCSDIR%%/test/life.lua +%%PORTDOCS%%%%DOCSDIR%%/test/luac.lua +%%PORTDOCS%%%%DOCSDIR%%/test/printf.lua +%%PORTDOCS%%%%DOCSDIR%%/test/readonly.lua +%%PORTDOCS%%%%DOCSDIR%%/test/sieve.lua +%%PORTDOCS%%%%DOCSDIR%%/test/sort.lua +%%PORTDOCS%%%%DOCSDIR%%/test/table.lua +%%PORTDOCS%%%%DOCSDIR%%/test/trace-calls.lua +%%PORTDOCS%%%%DOCSDIR%%/test/trace-globals.lua +%%PORTDOCS%%%%DOCSDIR%%/test/xd.lua +@dirrm share/lua/%%LUA_VER%% +@dirrmtry share/lua +%%PORTDOCS%%@dirrm %%DOCSDIR%%/test +%%PORTDOCS%%@dirrm %%DOCSDIR%%/etc +%%PORTDOCS%%@dirrm %%DOCSDIR%% +@dirrm %%LUA_LIBDIR%% +@dirrm lib/lua/%%LUA_VER%% +@dirrmtry lib/lua +@dirrm %%LUA_INCDIR%% +@dirrm %%LUA_BINDIR%% |