aboutsummaryrefslogtreecommitdiff
path: root/devel/lua50-pty
diff options
context:
space:
mode:
authorMark Linimon <linimon@FreeBSD.org>2006-09-15 08:17:11 +0000
committerMark Linimon <linimon@FreeBSD.org>2006-09-15 08:17:11 +0000
commitc5aeb93cd5e4998728da54611bdf63c686a2fdfd (patch)
treef418d7aa01e7bae10fc4d0734eec45cd9e925529 /devel/lua50-pty
parentf4c5a682e5c43c1c1477307463458409ae3b3de5 (diff)
downloadports-c5aeb93cd5e4998728da54611bdf63c686a2fdfd.tar.gz
ports-c5aeb93cd5e4998728da54611bdf63c686a2fdfd.zip
Notes
Diffstat (limited to 'devel/lua50-pty')
-rw-r--r--devel/lua50-pty/Makefile23
-rw-r--r--devel/lua50-pty/files/Makefile4
2 files changed, 12 insertions, 15 deletions
diff --git a/devel/lua50-pty/Makefile b/devel/lua50-pty/Makefile
index 9ed7a77557a7..b80cb3f86806 100644
--- a/devel/lua50-pty/Makefile
+++ b/devel/lua50-pty/Makefile
@@ -10,18 +10,20 @@ PORTVERSION= 1.25
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= philip
-PKGNAMEPREFIX= lua50-
+PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
DISTFILES= pty.lua?rev=1.2 pty.c?rev=1.25
MAINTAINER= andrew+ports@fubar.geek.nz
COMMENT= Pty (pseudo-terminal) bindings for Lua 5.0.x
-BUILD_DEPENDS= ${LOCALBASE}/include/lua.h:${PORTSDIR}/lang/lua50 \
- ${NONEXISTENT}:${PORTSDIR}/devel/lua50-compat51:extract
-RUN_DEPENDS= ${LOCALBASE}/include/lua.h:${PORTSDIR}/lang/lua50 \
- ${LOCALBASE}/share/lua/5.0/compat-5.1.lua:${PORTSDIR}/devel/lua50-compat51
+USE_LUA= 5.0
+LUA_COMPS= lua compat51
-COMPAT_SRC= `(cd ${PORTSDIR}/devel/lua50-compat51 && make -V WRKSRC)`
+COMPAT_SRC!= `(cd ${PORTSDIR}/devel/lua50-compat51 && ${MAKE} -V WRKSRC)`
+MAKE_ENV= COMPATDIR="${COMPAT_SRC}"
+
+PLIST_FILES= %%LUA_MODSHAREDIR%%/pty.lua \
+ %%LUA_MODLIBDIR%%/lpty.so
do-extract:
@${MKDIR} ${WRKSRC}
@@ -30,13 +32,8 @@ do-extract:
.endfor
@${CP} ${FILESDIR}/Makefile ${WRKSRC}
-post-patch:
- @${REINPLACE_CMD} -e "s|%%COMPATDIR%%|${COMPAT_SRC}|" ${WRKSRC}/Makefile
-
do-install:
- ${MKDIR} ${PREFIX}/lib/lua/5.0
- ${INSTALL_PROGRAM} ${WRKSRC}/lpty.so ${PREFIX}/lib/lua/5.0
- ${MKDIR} ${PREFIX}/share/lua/5.0
- ${INSTALL_DATA} ${WRKSRC}/pty.lua ${PREFIX}/share/lua/5.0
+ ${INSTALL_PROGRAM} ${WRKSRC}/lpty.so ${LUA_MODLIBDIR}
+ ${INSTALL_DATA} ${WRKSRC}/pty.lua ${LUA_MODSHAREDIR}
.include <bsd.port.mk>
diff --git a/devel/lua50-pty/files/Makefile b/devel/lua50-pty/files/Makefile
index 99df27729cd8..e6a0fb23c49f 100644
--- a/devel/lua50-pty/files/Makefile
+++ b/devel/lua50-pty/files/Makefile
@@ -3,9 +3,9 @@
SHLIB= pty
SHLIB_NAME= lpty.so
-SRCS= pty.c %%COMPATDIR%%/compat-5.1.c
+SRCS= pty.c ${COMPATDIR}/compat-5.1.c
-CFLAGS+= -I${PREFIX}/include
+CFLAGS+= -I${LUA_INCDIR}
LDFLAGS+= -L/usr/lib -lutil
.include <bsd.lib.mk>