Skip to contentSkip to conversation

lua5.1: install lua5.1.pc properly

PATCH New Andreas Oberritter 1 participant 1 message Oct 25, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lua5.1: install lua5.1.pc properly

---
 recipes/lua/lua5.1_5.1.4.bb |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
recipes/lua/lua5.1_5.1.4.bb +3 -2
index e3d56fd..814f83e 100644
@@ -4,7 +4,7 @@ LICENSE = "MIT"
 HOMEPAGE = "http://www.lua.org/"
 
 DEPENDS += "readline"
-PR = "r8"
+PR = "r9"
 SRC_URI = "http://www.lua.org/ftp/lua-${PV}.tar.gz \
            file://bitwise_operators.patch \
            file://lua5.1.pc \
@@ -25,7 +25,6 @@ do_configure_prepend() {
 }
 
 do_compile () {
-	cp ${WORKDIR}/lua5.1.pc ${S}/
 	oe_runmake linux
 }
 
@@ -37,6 +36,8 @@ do_install () {
 		'INSTALL_MAN=${D}${mandir}/man1' \
 		'INSTALL_SHARE=${D}${datadir}/lua' \
 		install
+	install -d ${D}${libdir}/pkgconfig
+	install -m 0644 ${WORKDIR}/lua5.1.pc ${D}${libdir}/pkgconfig/lua5.1.pc
 }
 NATIVE_INSTALL_WORKS = 1
 BBCLASSEXTEND = "native"
Signature · 1 line
1.7.1