Install lua.pc, okay jolan@ fgsch@

This commit is contained in:
pedro 2006-10-29 19:45:54 +00:00
parent 80959f9f6b
commit cd9944f596
3 changed files with 22 additions and 3 deletions

View File

@ -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 <bsd.port.mk>

View File

@ -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

View File

@ -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/