From cd9944f596134d93b2ede342a3f30a38e8a821ea Mon Sep 17 00:00:00 2001 From: pedro Date: Sun, 29 Oct 2006 19:45:54 +0000 Subject: [PATCH] Install lua.pc, okay jolan@ fgsch@ --- lang/lua/Makefile | 9 +++++++-- lang/lua/patches/patch-etc_lua_pc | 12 ++++++++++++ lang/lua/pkg/PLIST | 4 +++- 3 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 lang/lua/patches/patch-etc_lua_pc diff --git a/lang/lua/Makefile b/lang/lua/Makefile index b8b34e30c4a..731b45b04f7 100644 --- a/lang/lua/Makefile +++ b/lang/lua/Makefile @@ -1,9 +1,9 @@ -# $OpenBSD: Makefile,v 1.25 2006/09/25 02:39:06 pedro Exp $ +# $OpenBSD: Makefile,v 1.26 2006/10/29 19:45:54 pedro Exp $ COMMENT= "powerful, light-weight programming language" DISTNAME= lua-5.1.1 -PKGNAME= ${DISTNAME}p0 +PKGNAME= ${DISTNAME}p1 CATEGORIES= lang MASTER_SITES= http://www.lua.org/ftp/ \ @@ -30,5 +30,10 @@ NO_REGRESS= Yes pre-configure: @perl -pi -e 's:\@prefix@:${PREFIX}/:g;' ${WRKSRC}/src/luaconf.h + @perl -pi -e 's:\@prefix@:${PREFIX}/:g;' ${WRKSRC}/etc/lua.pc + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/lib/pkgconfig + ${INSTALL_DATA} ${WRKSRC}/etc/lua.pc ${PREFIX}/lib/pkgconfig .include diff --git a/lang/lua/patches/patch-etc_lua_pc b/lang/lua/patches/patch-etc_lua_pc new file mode 100644 index 00000000000..aae060afa69 --- /dev/null +++ b/lang/lua/patches/patch-etc_lua_pc @@ -0,0 +1,12 @@ +$OpenBSD: patch-etc_lua_pc,v 1.1 2006/10/29 19:45:54 pedro Exp $ +--- etc/lua.pc.orig Sun Oct 29 15:51:01 2006 ++++ etc/lua.pc Sun Oct 29 15:51:09 2006 +@@ -8,7 +8,7 @@ V= 5.1 + R= 5.1.1 + + # grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/' +-prefix= /usr/local ++prefix= @prefix@ + INSTALL_BIN= ${prefix}/bin + INSTALL_INC= ${prefix}/include + INSTALL_LIB= ${prefix}/lib diff --git a/lang/lua/pkg/PLIST b/lang/lua/pkg/PLIST index 6c2d579dcc6..671c909e6b3 100644 --- a/lang/lua/pkg/PLIST +++ b/lang/lua/pkg/PLIST @@ -1,4 +1,4 @@ -@comment $OpenBSD: PLIST,v 1.11 2006/09/25 02:39:06 pedro Exp $ +@comment $OpenBSD: PLIST,v 1.12 2006/10/29 19:45:54 pedro Exp $ bin/lua bin/luac include/lauxlib.h @@ -10,6 +10,8 @@ lib/liblua.a @lib lib/liblua.so.${LIBlua_VERSION} lib/lua/ lib/lua/5.1/ +lib/pkgconfig/ +lib/pkgconfig/lua.pc @man man/man1/lua.1 @man man/man1/luac.1 share/lua/