summaryrefslogtreecommitdiffstats
path: root/patches/lua-5.3.4/0002-Install-pkgconfig-file.patch
diff options
context:
space:
mode:
authorDenis OSTERLAND <denis.osterland@diehl.com>2017-09-15 09:07:52 +0000
committerMichael Olbrich <m.olbrich@pengutronix.de>2017-10-01 11:11:39 +0200
commitf9c77733a107416cba8e028759187a3e20147568 (patch)
treeec2c762c0afd451d3912f148d5d4fcd9184144d6 /patches/lua-5.3.4/0002-Install-pkgconfig-file.patch
parent37429eb0cfb797b3b323f606e7bd7b99c43deece (diff)
downloadptxdist-f9c77733a107416cba8e028759187a3e20147568.tar.gz
ptxdist-f9c77733a107416cba8e028759187a3e20147568.tar.xz
lua: version bump 5.1.4 -> 5.3.4
Instead of write own build rules with autoconf tools, only adapt projects make files to work in ptxdist environment. Signed-off-by: Denis Osterland <Denis.Osterland@diehl.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'patches/lua-5.3.4/0002-Install-pkgconfig-file.patch')
-rw-r--r--patches/lua-5.3.4/0002-Install-pkgconfig-file.patch61
1 files changed, 61 insertions, 0 deletions
diff --git a/patches/lua-5.3.4/0002-Install-pkgconfig-file.patch b/patches/lua-5.3.4/0002-Install-pkgconfig-file.patch
new file mode 100644
index 000000000..5717178af
--- /dev/null
+++ b/patches/lua-5.3.4/0002-Install-pkgconfig-file.patch
@@ -0,0 +1,61 @@
+From: Denis Osterland <Denis.Osterland@diehl.com>
+Date: Thu, 29 Jun 2017 14:54:04 +0200
+Subject: [PATCH] Install pkgconfig file.
+
+Signed-off-by: Denis Osterland <Denis.Osterland@diehl.com>
+---
+ Makefile | 8 ++++++--
+ lua.pc.in | 12 ++++++++++++
+ 2 files changed, 18 insertions(+), 2 deletions(-)
+ create mode 100644 lua.pc.in
+
+diff --git a/Makefile b/Makefile
+index 2b2968449fb5..0ecd0198169f 100644
+--- a/Makefile
++++ b/Makefile
+@@ -57,14 +57,15 @@ $(PLATS) clean:
+ test: dummy
+ src/lua -v
+
+-install: dummy
+- cd src && $(MKDIR) $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB) $(INSTALL_MAN) $(INSTALL_LMOD) $(INSTALL_CMOD)
++install: dummy lua.pc
++ cd src && $(MKDIR) $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB)/pkgconfig $(INSTALL_MAN) $(INSTALL_LMOD) $(INSTALL_CMOD)
+ cd src && $(INSTALL_EXEC) $(TO_BIN) $(INSTALL_BIN)
+ cd src && $(INSTALL_DATA) $(TO_INC) $(INSTALL_INC)
+ cd src && $(INSTALL_DATA) $(TO_LIB) $(INSTALL_LIB)
+ cd src && $(INSTALL_EXEC) liblua.so.$R $(INSTALL_LIB)
+ ln -s liblua.so.$R $(INSTALL_LIB)/liblua.so.$V
+ ln -s liblua.so.$V $(INSTALL_LIB)/liblua.so
++ $(INSTALL_DATA) lua.pc $(INSTALL_LIB)/pkgconfig
+ cd doc && $(INSTALL_DATA) $(TO_MAN) $(INSTALL_MAN)
+
+ uninstall:
+@@ -111,6 +112,9 @@ pc:
+ @echo "libdir=$(INSTALL_LIB)"
+ @echo "includedir=$(INSTALL_INC)"
+
++lua.pc: lua.pc.in
++ sed -e "s/@VERSION@/$R/g" $< > $@
++
+ # list targets that do not create files (but not all makes understand .PHONY)
+ .PHONY: all $(PLATS) clean test install local none dummy echo pecho lecho
+
+diff --git a/lua.pc.in b/lua.pc.in
+new file mode 100644
+index 000000000000..637b4e6b4c14
+--- /dev/null
++++ b/lua.pc.in
+@@ -0,0 +1,12 @@
++prefix=${pcfiledir}/../..
++libdir=${prefix}/lib
++includedir=${prefix}/include
++
++Name: Lua
++Description: Lua language engine
++Version: @VERSION@
++Requires:
++Libs: -L${libdir} -llua
++Libs.private: -lm -ldl
++Cflags: -I${includedir}
++