summaryrefslogtreecommitdiff
path: root/textproc/lua-expat
diff options
context:
space:
mode:
authorjoerg <joerg>2009-07-07 21:08:34 +0000
committerjoerg <joerg>2009-07-07 21:08:34 +0000
commit8c7713112b8f3b0fdd73020c5f8ca5d6db083b32 (patch)
treec9a41b0911d2204f0ceb7e24df240249b710e648 /textproc/lua-expat
parent3b8f005706c7093f6387aaffda3ac6e35411c7b0 (diff)
downloadpkgsrc-8c7713112b8f3b0fdd73020c5f8ca5d6db083b32.tar.gz
user-destdir support
Diffstat (limited to 'textproc/lua-expat')
-rw-r--r--textproc/lua-expat/Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/textproc/lua-expat/Makefile b/textproc/lua-expat/Makefile
index 639a432dc5e..e095eef659a 100644
--- a/textproc/lua-expat/Makefile
+++ b/textproc/lua-expat/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2009/05/20 00:58:28 wiz Exp $
+# $NetBSD: Makefile,v 1.13 2009/07/07 21:10:16 joerg Exp $
#
DISTNAME= luaexpat-1.0a
@@ -11,17 +11,18 @@ MAINTAINER= pancake@phreaker.net
HOMEPAGE= http://www.keplerproject.org/luaexpat/
COMMENT= XML parser for LUA based on expat
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_TOOLS+= gmake
MAKE_FILE= makefile
CFLAGS+= -fPIC
-INSTALLATION_DIRS= lib
+INSTALLATION_DIRS= lib share/examples/lua
do-install:
- ${INSTALL_DATA} ${WRKSRC}/liblxp.so ${PREFIX}/lib/liblualxp.so
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/lua
- ${INSTALL_DATA} ${WRKSRC}/test.lua ${PREFIX}/share/examples/lua/lxp.lua
+ ${INSTALL_DATA} ${WRKSRC}/liblxp.so ${DESTDIR}${PREFIX}/lib/liblualxp.so
+ ${INSTALL_DATA} ${WRKSRC}/test.lua ${DESTDIR}${PREFIX}/share/examples/lua/lxp.lua
.include "../../textproc/expat/buildlink3.mk"
.include "../../lang/lua/buildlink3.mk"