mirror of
https://github.com/openwrt/packages.git
synced 2026-10-12 05:57:04 +04:00
xz: drop relative-pkg-config-paths patch for a SED
liblzma.pc is generated by a make rule that expands $(libdir) and $(includedir) to absolute paths, which OpenWrt's pkg-config wrapper cannot redirect at the staging directory. Rewrite the staged copy with SED instead of patching the template, as ~50 other packages here do. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
This commit is contained in:
1 parent
f6e2e2815a
commit
b931f9376a
2 files changed
+3
-13
No files matched your search
@@ -103,6 +103,9 @@ define Build/InstallDev
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/liblzma.pc \
|
||||
$(1)/usr/lib/pkgconfig/
|
||||
$(SED) \
|
||||
's,^libdir=.*,libdir=$$$${exec_prefix}/lib,;s,^includedir=.*,includedir=$$$${prefix}/include,' \
|
||||
$(1)/usr/lib/pkgconfig/liblzma.pc
|
||||
endef
|
||||
|
||||
define Package/xz-utils/install
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
--- a/src/liblzma/liblzma.pc.in
|
||||
+++ b/src/liblzma/liblzma.pc.in
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
prefix=@prefix@
|
||||
exec_prefix=@exec_prefix@
|
||||
-libdir=@libdir@
|
||||
-includedir=@includedir@
|
||||
+libdir=${exec_prefix}/lib
|
||||
+includedir=${prefix}/include
|
||||
|
||||
Name: liblzma
|
||||
Description: General purpose data compression library
|
||||
Reference in new issue
Block a user