add lua.pc
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
+[Jörg Krause: add @MYLIBS@]
+Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Index: b/etc/lua.pc
===================================================================
+Description: An Extensible Extension Language
+Version: ${R}
+Requires:
-+Libs: -L${libdir} -llua -lm
++Libs: -L${libdir} -llua -lm @MYLIBS@
+Cflags: -I${includedir}
+
+# (end of lua.pc)
add lua.pc
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
+[Jörg Krause: add @MYLIBS@]
+Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Index: b/etc/lua.pc
===================================================================
+Description: An Extensible Extension Language
+Version: ${R}
+Requires:
-+Libs: -L${libdir} -llua -lm
++Libs: -L${libdir} -llua -lm @MYLIBS@
+Cflags: -I${includedir}
+
+# (end of lua.pc)
define LUA_INSTALL_STAGING_CMDS
$(TARGET_MAKE_ENV) $(MAKE) INSTALL_TOP="$(STAGING_DIR)/usr" -C $(@D) install
- $(INSTALL) -m 0644 -D $(@D)/etc/lua.pc \
- $(STAGING_DIR)/usr/lib/pkgconfig/lua.pc
+ sed -e "s/@MYLIBS@/$(LUA_MYLIBS)/g" $(@D)/etc/lua.pc \
+ > $(STAGING_DIR)/usr/lib/pkgconfig/lua.pc
endef
define LUA_INSTALL_TARGET_CMDS
define HOST_LUA_INSTALL_CMDS
$(HOST_MAKE_ENV) $(MAKE) INSTALL_TOP="$(HOST_DIR)" -C $(@D) install
- $(INSTALL) -m 0644 -D $(@D)/etc/lua.pc \
- $(HOST_DIR)/lib/pkgconfig/lua.pc
+ sed -e "s/@MYLIBS@/$(HOST_LUA_MYLIBS)/g" $(@D)/etc/lua.pc \
+ > $(HOST_DIR)/lib/pkgconfig/lua.pc
endef
$(eval $(generic-package))