diff options
author | jlam <jlam> | 2008-03-03 15:21:07 +0000 |
---|---|---|
committer | jlam <jlam> | 2008-03-03 15:21:07 +0000 |
commit | 6bf0c42dc496151566450acc4ce8cda48be0af58 (patch) | |
tree | 41ee23c9647f042e84712f31b4d257d7db8cd51d /databases/lua-sqlite | |
parent | 86213e922b2fb88ae36e4de9c3a355bfe2923c08 (diff) | |
download | pkgsrc-6bf0c42dc496151566450acc4ce8cda48be0af58.tar.gz |
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'databases/lua-sqlite')
-rw-r--r-- | databases/lua-sqlite/Makefile | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/databases/lua-sqlite/Makefile b/databases/lua-sqlite/Makefile index bacd353c4d1..84c34d28a2a 100644 --- a/databases/lua-sqlite/Makefile +++ b/databases/lua-sqlite/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2008/02/28 11:58:48 rillig Exp $ +# $NetBSD: Makefile,v 1.11 2008/03/03 15:21:07 jlam Exp $ # DISTNAME= lsqlite_src @@ -12,21 +12,25 @@ MAINTAINER= pancake@phreaker.net HOMEPAGE= http://lua-users.org/wiki/LuaSqlite COMMENT= SQLite binding for LUA +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR} CFLAGS+= -fPIC LIBS+= -llua -lsqlite -AUTO_MKDIRS= yes +AUTO_MKDIRS= yes do-build: cd ${WRKSRC}; ${CC} -shared ${CFLAGS} ${LDFLAGS} lsqlite.c \ -o libluasqlite.so ${LIBS} do-install: - ${INSTALL_DATA} ${WRKSRC}/libluasqlite.so ${PREFIX}/lib - ${INSTALL_DATA} ${WRKSRC}/readme.txt ${PREFIX}/share/doc/lua-sqlite - ${INSTALL_DATA} ${WRKSRC}/test.lua ${PREFIX}/share/examples/lua-sqlite + ${INSTALL_DATA} ${WRKSRC}/libluasqlite.so ${DESTDIR}${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/readme.txt \ + ${DESTDIR}${PREFIX}/share/doc/lua-sqlite + ${INSTALL_DATA} ${WRKSRC}/test.lua \ + ${DESTDIR}${PREFIX}/share/examples/lua-sqlite .include "../../databases/sqlite/buildlink3.mk" .include "../../lang/lua/buildlink3.mk" |