changeset 1801:cce9df887cfd

install the *.pc script along with package lua
author Volker Grabsch <vog@notjusthosting.com>
date Sat, 30 Apr 2011 15:32:20 +0200
parents c580f9c16b8d
children 5df0bfc44e8d
files src/lua.mk
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lua.mk	Fri Apr 29 14:00:00 2011 +0200
+++ b/src/lua.mk	Sat Apr 30 15:32:20 2011 +0200
@@ -32,9 +32,11 @@
         RANLIB='$(TARGET)-ranlib' \
         INSTALL='$(INSTALL)' \
         install ranlib
+    $(SED) -i 's,^prefix=.*,prefix=$(PREFIX)/$(TARGET),' '$(1)/etc/lua.pc'
+    $(INSTALL) -m644 '$(1)/etc/lua.pc' '$(PREFIX)/$(TARGET)/lib/pkgconfig/lua.pc'
 
     '$(TARGET)-gcc' \
         -W -Wall -Werror -ansi -pedantic \
         '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-lua.exe' \
-        -llua
+        `'$(TARGET)-pkg-config' lua --cflags --libs`
 endef