aboutsummaryrefslogtreecommitdiffstats
path: root/devel/lua50-posix
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2006-09-15 16:17:11 +0800
committerlinimon <linimon@FreeBSD.org>2006-09-15 16:17:11 +0800
commitf2d8437c35c46dc1131c982c1f25abcd7d641fb3 (patch)
tree61136cc420c647223541df746f011f5307a7b184 /devel/lua50-posix
parent6c16383d95de00351d4ecaf674a95f310d209a6b (diff)
downloadfreebsd-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 'devel/lua50-posix')
-rw-r--r--devel/lua50-posix/Makefile15
-rw-r--r--devel/lua50-posix/files/patch-Makefile24
-rw-r--r--devel/lua50-posix/pkg-plist6
3 files changed, 25 insertions, 20 deletions
diff --git a/devel/lua50-posix/Makefile b/devel/lua50-posix/Makefile
index 238bcaf406ba..37ec1872664c 100644
--- a/devel/lua50-posix/Makefile
+++ b/devel/lua50-posix/Makefile
@@ -5,23 +5,24 @@
# $FreeBSD$
#
-PORTNAME= lua50-posix
+PORTNAME= posix
PORTVERSION= 5.0
CATEGORIES= devel
MASTER_SITES= http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/5.0/
+PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
DISTFILES= lposix.tar.gz
MAINTAINER= andrew+ports@fubar.geek.nz
COMMENT= A POSIX layer for Lua
-BUILD_DEPENDS= ${LOCALBASE}/include/lua.h:${PORTSDIR}/lang/lua50
-
+USE_LUA= 5.0
WRKSRC= ${WRKDIR}/posix
+PLIST_FILES= %%LUA_MODSHAREDIR%%/posix.lua \
+ %%LUA_MODLIBDIR%%/lposix.so
+
do-install:
- @ ${MKDIR} ${PREFIX}/share/lua/5.0
- @ ${INSTALL_DATA} ${WRKSRC}/posix.lua ${PREFIX}/share/lua/5.0
- @ ${MKDIR} ${PREFIX}/lib/lua/5.0
- @ ${INSTALL_PROGRAM} ${WRKSRC}/lposix.so ${PREFIX}/lib/lua/5.0
+ @${INSTALL_DATA} ${WRKSRC}/posix.lua ${LUA_MODSHAREDIR}
+ @${INSTALL_PROGRAM} ${WRKSRC}/lposix.so ${LUA_MODLIBDIR}
.include <bsd.port.mk>
diff --git a/devel/lua50-posix/files/patch-Makefile b/devel/lua50-posix/files/patch-Makefile
index 8c8f05bddff7..b0eb70640eb4 100644
--- a/devel/lua50-posix/files/patch-Makefile
+++ b/devel/lua50-posix/files/patch-Makefile
@@ -1,20 +1,30 @@
---- Makefile.orig Mon Mar 27 12:25:04 2006
-+++ Makefile Mon Mar 27 12:43:24 2006
-@@ -1,7 +1,7 @@
+--- Makefile.orig Wed Nov 5 21:26:49 2003
++++ Makefile Mon Aug 7 00:38:38 2006
+@@ -1,13 +1,13 @@
# makefile for POSIX library for Lua
# change these to reflect your Lua installation
-LUA= /tmp/lhf/lua-5.0
+-LUAINC= $(LUA)/include
+-LUALIB= $(LUA)/lib
+-LUABIN= $(LUA)/bin
+LUA= ${PREFIX}
- LUAINC= $(LUA)/include
- LUALIB= $(LUA)/lib
- LUABIN= $(LUA)/bin
++LUAINC= $(LUA_INCDIR)
++LUALIB= $(LUA_LIBDIR)
++LUABIN= $(LUA_BINDIR)
+
+ # no need to change anything below here
+-CFLAGS= -fPIC $(INCS) $(WARN) -O2 $G
++CFLAGS+= -fPIC $(INCS) $(WARN) -O2 $G
+ WARN= -pedantic -Wall
+ INCS= -I$(LUAINC)
+
@@ -21,7 +21,7 @@
all: test
test: $T
- $(LUABIN)/lua -l$(MYNAME) test.lua
-+ LD_PRELOAD=${PREFIX}/lib/liblua.so:${PREFIX}/lib/liblualib.so $(LUABIN)/lua -l$(MYNAME) test.lua
++ LD_PRELOAD=${LUA_LIBDIR}/liblua.so:${LUA_LIBDIR}/liblualib.so $(LUABIN)/lua -l$(MYNAME) test.lua
$T: $(OBJS)
$(CC) -o $@ -shared $(OBJS)
diff --git a/devel/lua50-posix/pkg-plist b/devel/lua50-posix/pkg-plist
index 036b7a2881f3..e69de29bb2d1 100644
--- a/devel/lua50-posix/pkg-plist
+++ b/devel/lua50-posix/pkg-plist
@@ -1,6 +0,0 @@
-share/lua/5.0/posix.lua
-lib/lua/5.0/lposix.so
-@dirrmtry share/lua/5.0
-@dirrmtry share/lua
-@dirrmtry lib/lua/5.0
-@dirrmtry lib/lua