aboutsummaryrefslogtreecommitdiff
path: root/devel/lua50-dfui
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-dfui
parentf4c5a682e5c43c1c1477307463458409ae3b3de5 (diff)
downloadports-c5aeb93cd5e4998728da54611bdf63c686a2fdfd.tar.gz
ports-c5aeb93cd5e4998728da54611bdf63c686a2fdfd.zip
Notes
Diffstat (limited to 'devel/lua50-dfui')
-rw-r--r--devel/lua50-dfui/Makefile23
-rw-r--r--devel/lua50-dfui/files/patch-Makefile10
-rw-r--r--devel/lua50-dfui/pkg-plist6
3 files changed, 16 insertions, 23 deletions
diff --git a/devel/lua50-dfui/Makefile b/devel/lua50-dfui/Makefile
index 6901938edb6f..340e3779d5fd 100644
--- a/devel/lua50-dfui/Makefile
+++ b/devel/lua50-dfui/Makefile
@@ -10,29 +10,28 @@ PORTVERSION= 0.1.20050901
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= philip
-PKGNAMEPREFIX= lua50-
+PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
DISTNAME= lua-dfui-0.1.20050901
MAINTAINER= andrew+ports@fubar.geek.nz
COMMENT= DFUI binding for Lua 5.0.x
-BUILD_DEPENDS= ${LOCALBASE}/include/lua.h:${PORTSDIR}/lang/lua50 \
- ${NONEXISTENT}:${PORTSDIR}/devel/lua50-compat51:extract
+BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/devel/lua50-compat51:extract
LIB_DEPENDS= dfui4.4:${PORTSDIR}/devel/libdfui
-RUN_DEPENDS= ${LOCALBASE}/include/lua.h:${PORTSDIR}/lang/lua50 \
- ${LOCALBASE}/share/lua/5.0/compat-5.1.lua:${PORTSDIR}/devel/lua50-compat51 \
- ${LOCALBASE}/share/lua/5.0/posix.lua:${PORTSDIR}/devel/lua50-posix
USE_BZIP2= yes
+USE_LUA= 5.0
+LUA_COMPS= compat51 posix
WRKSRC= ${WRKDIR}/lua-dfui-${PORTVERSION}
-COMPAT_SRC= `(cd ${PORTSDIR}/devel/lua50-compat51 && make -V WRKSRC)`
-MAKE_ENV= COMPAT=${COMPAT_SRC}
+COMPAT_SRC= `(cd ${PORTSDIR}/devel/lua50-compat51 && ${MAKE} -V WRKSRC)`
+MAKE_ENV= COMPAT="${COMPAT_SRC}"
+
+PLIST_FILES= %%LUA_MODLIBDIR%%/ldfui.so \
+ %%LUA_MODSHAREDIR%%/dfui.lua
do-install:
- ${MKDIR} ${PREFIX}/lib/lua/5.0
- ${INSTALL_PROGRAM} ${WRKSRC}/ldfui.so ${PREFIX}/lib/lua/5.0
- ${MKDIR} ${PREFIX}/share/lua/5.0
- ${INSTALL_DATA} ${WRKSRC}/dfui.lua ${PREFIX}/share/lua/5.0
+ ${INSTALL_PROGRAM} ${WRKSRC}/ldfui.so ${LUA_MODLIBDIR}
+ ${INSTALL_DATA} ${WRKSRC}/dfui.lua ${LUA_MODSHAREDIR}
.include <bsd.port.mk>
diff --git a/devel/lua50-dfui/files/patch-Makefile b/devel/lua50-dfui/files/patch-Makefile
index 6aea08024f70..22b843452367 100644
--- a/devel/lua50-dfui/files/patch-Makefile
+++ b/devel/lua50-dfui/files/patch-Makefile
@@ -1,5 +1,5 @@
---- Makefile.orig Tue Apr 18 13:49:53 2006
-+++ Makefile Tue Apr 18 13:54:23 2006
+--- Makefile.orig Mon Apr 17 21:40:11 2006
++++ Makefile Mon Aug 7 13:22:22 2006
@@ -1,11 +1,6 @@
# Makefile for luadfui.
# $Id: Makefile,v 1.13 2005/08/26 22:44:37 cpressey Exp $
@@ -18,13 +18,13 @@
CFLAGS+= ${WARNS} -fPIC
-CFLAGS+= -I${LUA}/include -I${COMPAT} -I../../libdfui
-CFLAGS+= -I/usr/local/include -I/usr/pkg/include
-+CFLAGS+= -I${COMPAT} -I${PREFIX}/include/dfui4
-+CFLAGS+= -I${PREFIX}/include
++CFLAGS+= -I${COMPAT} -I${LOCALBASE}/include/dfui4
++CFLAGS+= -I${LUA_INCDIR}
CFLAGS+= ${EXTRA_CFLAGS}
-LDFLAGS+= -L../../libdfui -L../../libaura -L${LUA}/lib/
-LDFLAGS+= -L/usr/local/lib -L/usr/pkg/lib
-LDFLAGS+= -ldfui -laura -lm -llua50 -llualib50
-+LDFLAGS+= -L${PREFIX}/lib
++LDFLAGS+= -L${LOCALBASE}/lib -L${LUA_LIBDIR}
+LDFLAGS+= -ldfui4 -laura3 -lm -llua -llualib
all: ${LIB}
diff --git a/devel/lua50-dfui/pkg-plist b/devel/lua50-dfui/pkg-plist
index 3d7f51fde599..e69de29bb2d1 100644
--- a/devel/lua50-dfui/pkg-plist
+++ b/devel/lua50-dfui/pkg-plist
@@ -1,6 +0,0 @@
-lib/lua/5.0/ldfui.so
-share/lua/5.0/dfui.lua
-@dirrmtry lib/lua/5.0
-@dirrmtry lib/lua
-@dirrmtry share/lua/5.0
-@dirrmtry share/lua