mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +00:00
Merge pull request #6175 from heitbaum/pkginfo
PKGCONFIG use ./lib/pkgconfig/ for both host and target
This commit is contained in:
commit
e07a360c6e
@ -11,3 +11,7 @@ PKG_DEPENDS_HOST="cmake:host"
|
|||||||
PKG_DEPENDS_TARGET="toolchain"
|
PKG_DEPENDS_TARGET="toolchain"
|
||||||
PKG_LONGDESC="A general purpose (ZIP) data compression library."
|
PKG_LONGDESC="A general purpose (ZIP) data compression library."
|
||||||
PKG_TOOLCHAIN="cmake-make"
|
PKG_TOOLCHAIN="cmake-make"
|
||||||
|
|
||||||
|
PKG_CMAKE_OPTS_HOST="-DINSTALL_PKGCONFIG_DIR=${TOOLCHAIN}/lib/pkgconfig"
|
||||||
|
|
||||||
|
PKG_CMAKE_OPTS_TARGET="-DINSTALL_PKGCONFIG_DIR=/usr/lib/pkgconfig"
|
||||||
|
@ -100,6 +100,7 @@ PKG_MESON_OPTS_TARGET="--libdir=/usr/lib \
|
|||||||
-Dmount-path=/usr/bin/mount \
|
-Dmount-path=/usr/bin/mount \
|
||||||
-Dumount-path=/usr/bin/umount \
|
-Dumount-path=/usr/bin/umount \
|
||||||
-Ddebug-tty=${DEBUG_TTY} \
|
-Ddebug-tty=${DEBUG_TTY} \
|
||||||
|
-Dpkgconfigdatadir=/usr/lib/pkgconfig \
|
||||||
-Dversion-tag=${PKG_VERSION}"
|
-Dversion-tag=${PKG_VERSION}"
|
||||||
|
|
||||||
pre_configure_target() {
|
pre_configure_target() {
|
||||||
|
@ -24,6 +24,7 @@ pre_configure_target() {
|
|||||||
--disable-runtime-deps \
|
--disable-runtime-deps \
|
||||||
--enable-nls \
|
--enable-nls \
|
||||||
--disable-rpath \
|
--disable-rpath \
|
||||||
|
--datadir=/usr/lib \
|
||||||
--with-gnu-ld"
|
--with-gnu-ld"
|
||||||
|
|
||||||
if [ "${DISPLAYSERVER}" = "x11" ]; then
|
if [ "${DISPLAYSERVER}" = "x11" ]; then
|
||||||
|
@ -13,6 +13,11 @@ PKG_LONGDESC="Abstract network code for X."
|
|||||||
|
|
||||||
PKG_CONFIGURE_OPTS_TARGET="--without-xmlto"
|
PKG_CONFIGURE_OPTS_TARGET="--without-xmlto"
|
||||||
|
|
||||||
|
pre_configure_target() {
|
||||||
|
sed -i 's|^pkgconfigdir = .*|pkgconfigdir = /usr/lib/pkgconfig|' ${PKG_BUILD}/Makefile.am
|
||||||
|
sed -i 's|^pkgconfigdir = .*|pkgconfigdir = /usr/lib/pkgconfig|' ${PKG_BUILD}/Makefile.in
|
||||||
|
}
|
||||||
|
|
||||||
post_makeinstall_target() {
|
post_makeinstall_target() {
|
||||||
mkdir -p ${SYSROOT_PREFIX}/usr/lib/pkgconfig
|
mkdir -p ${SYSROOT_PREFIX}/usr/lib/pkgconfig
|
||||||
cp xtrans.pc ${SYSROOT_PREFIX}/usr/lib/pkgconfig
|
cp xtrans.pc ${SYSROOT_PREFIX}/usr/lib/pkgconfig
|
||||||
|
@ -11,4 +11,5 @@ PKG_DEPENDS_TARGET="toolchain util-macros"
|
|||||||
PKG_LONGDESC="combined X.Org X11 Protocol headers"
|
PKG_LONGDESC="combined X.Org X11 Protocol headers"
|
||||||
PKG_TOOLCHAIN="meson"
|
PKG_TOOLCHAIN="meson"
|
||||||
|
|
||||||
PKG_MESON_OPTS_TARGET="-Dlegacy=false"
|
PKG_MESON_OPTS_TARGET="-Dlegacy=false \
|
||||||
|
-Dpkgconfigdatadir=/usr/lib/pkgconfig"
|
||||||
|
@ -0,0 +1,48 @@
|
|||||||
|
commit 989e25ecc4dc75c842f13b2b6457df9a3533ac72
|
||||||
|
Author: heitbaum <rudi@heitbaum.com>
|
||||||
|
Date: Sun Feb 6 07:56:38 2022 +0000
|
||||||
|
|
||||||
|
meson: enable override of arch-independent pkg-config
|
||||||
|
|
||||||
|
Add meson_option pkgconfigdatadir to set the directory for
|
||||||
|
arch-independent pkg-config files.
|
||||||
|
|
||||||
|
Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
|
||||||
|
|
||||||
|
diff --git a/meson.build b/meson.build
|
||||||
|
index 5c15cc9..bb9c7c1 100644
|
||||||
|
--- a/meson.build
|
||||||
|
+++ b/meson.build
|
||||||
|
@@ -57,12 +57,14 @@ pc_data = configuration_data()
|
||||||
|
pc_data.set('prefix', get_option('prefix'))
|
||||||
|
# meson does not allow installing the includedir outside of the prefix
|
||||||
|
pc_data.set('includedir', '${prefix}/' + get_option('includedir'))
|
||||||
|
+# Dirs of external packages
|
||||||
|
+pkgconfigdatadir = get_option('pkgconfigdatadir') != '' ? get_option('pkgconfigdatadir') : get_option('datadir') / 'pkgconfig'
|
||||||
|
|
||||||
|
foreach pc : pcs
|
||||||
|
configure_file(
|
||||||
|
input : pc + '.pc.in',
|
||||||
|
output : pc + '.pc',
|
||||||
|
- install_dir : get_option('datadir') + '/pkgconfig',
|
||||||
|
+ install_dir : pkgconfigdatadir,
|
||||||
|
configuration : pc_data,
|
||||||
|
)
|
||||||
|
endforeach
|
||||||
|
@@ -100,7 +102,7 @@ if get_option('legacy') == true
|
||||||
|
configure_file(
|
||||||
|
input : pc + '.pc.in',
|
||||||
|
output : pc + '.pc',
|
||||||
|
- install_dir : get_option('datadir') + '/pkgconfig',
|
||||||
|
+ install_dir : pkgconfigdatadir,
|
||||||
|
configuration : pc_data,
|
||||||
|
)
|
||||||
|
endforeach
|
||||||
|
diff --git a/meson_options.txt b/meson_options.txt
|
||||||
|
index 757cd72..4c80f32 100644
|
||||||
|
--- a/meson_options.txt
|
||||||
|
+++ b/meson_options.txt
|
||||||
|
@@ -1 +1,3 @@
|
||||||
|
option('legacy', type: 'boolean', value: false)
|
||||||
|
+option('pkgconfigdatadir', type : 'string', value : '',
|
||||||
|
+ description : 'directory for arch-independent pkg-config files')
|
@ -10,6 +10,11 @@ PKG_URL="http://xorg.freedesktop.org/archive/individual/util/${PKG_NAME}-${PKG_V
|
|||||||
PKG_DEPENDS_TARGET="toolchain"
|
PKG_DEPENDS_TARGET="toolchain"
|
||||||
PKG_LONGDESC="X.org autoconf utilities such as M4 macros."
|
PKG_LONGDESC="X.org autoconf utilities such as M4 macros."
|
||||||
|
|
||||||
|
pre_configure_target() {
|
||||||
|
sed -i 's|^pkgconfigdir = .*|pkgconfigdir = /usr/lib/pkgconfig|' ${PKG_BUILD}/Makefile.am
|
||||||
|
sed -i 's|^pkgconfigdir = .*|pkgconfigdir = /usr/lib/pkgconfig|' ${PKG_BUILD}/Makefile.in
|
||||||
|
}
|
||||||
|
|
||||||
post_makeinstall_target() {
|
post_makeinstall_target() {
|
||||||
rm -rf ${INSTALL}/usr
|
rm -rf ${INSTALL}/usr
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user