Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] kodi-platform: fix cross-build
@ 2021-01-01 20:33 ndowens
  2021-01-01 20:34 ` [PR PATCH] [Updated] " ndowens
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: ndowens @ 2021-01-01 20:33 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 321 bytes --]

There is a new pull request by ndowens against master on the void-packages repository

https://github.com/ndowens/void-packages kodi-platform
https://github.com/void-linux/void-packages/pull/27608

kodi-platform: fix cross-build


A patch file from https://github.com/void-linux/void-packages/pull/27608.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-kodi-platform-27608.patch --]
[-- Type: text/x-diff, Size: 1646 bytes --]

From 24ad155ab6cffd3f086e3c7fd68142d653742cef Mon Sep 17 00:00:00 2001
From: Nathan Owens <ndowens@artixlinux.org>
Date: Fri, 1 Jan 2021 10:14:09 -0600
Subject: [PATCH] kodi-platform: fix cross-build

---
 srcpkgs/kodi-platform/template | 20 ++++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/kodi-platform/template b/srcpkgs/kodi-platform/template
index 71884f3ee38..1765054e374 100644
--- a/srcpkgs/kodi-platform/template
+++ b/srcpkgs/kodi-platform/template
@@ -3,7 +3,8 @@ pkgname=kodi-platform
 version=17.1.0
 revision=1
 build_style=cmake
-configure_args="-DCMAKE_INSTALL_LIBDIR=/usr/lib"
+configure_args="-DCMAKE_INSTALL_LIBDIR=/usr/lib
+ -DCMAKE_MODULE_PATH=${XBPS_CROSS_BASE}/usr/share/kodi/cmake"
 makedepends="kodi-devel tinyxml-devel p8-platform-devel"
 short_desc="Kodi platform support library"
 maintainer="Helmut Pozimski <helmut@pozimski.eu>"
@@ -11,7 +12,22 @@ license="GPL-2.0-or-later"
 homepage="https://github.com/xbmc/kodi-platform"
 distfiles="https://github.com/xbmc/kodi-platform/archive/${version}.tar.gz"
 checksum=39de7eb6db14de3fa33ca0e56243c3307e7598187e73ad930dabccdf068bd9b2
-nocross="kodi cmake files use absolute paths"
+
+post_build() {
+	# Remove cross-cruft
+	if [ "$CROSS_BUILD" ]; then
+		vsed -e '/libdir/s,=.*,=/usr/lib,' \
+			-e '/CXX/s,=.*,=c++,' \
+			-e '/CC/s,=.*,=gcc,' \
+			-e "s,${XBPS_CROSS_BASE},,g" \
+			-i build/kodiplatform.pc
+	
+		vsed -e 's,/usr//,/usr/,g' \
+			-e "s,${XBPS_CROSS_BASE},,g" \
+			-e 's,/usr/usr,/usr,g' \
+			-i build/kodiplatform-config.cmake
+	fi
+}
 
 kodi-platform-devel_package() {
 	short_desc+=" - development files"

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2021-03-16 21:03 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-01 20:33 [PR PATCH] kodi-platform: fix cross-build ndowens
2021-01-01 20:34 ` [PR PATCH] [Updated] " ndowens
2021-01-03  1:14 ` [PR PATCH] [Updated] [WIP]kodi-platform: " ndowens
2021-01-03  1:15 ` ndowens
2021-01-03  1:15 ` [PR PATCH] [Closed]: " ndowens
2021-01-03  1:15 ` ndowens
2021-01-03  1:19 ` [PR PATCH] [Updated] " ndowens
2021-01-03  1:19 ` ndowens
2021-01-03  1:30 ` [PR PATCH] [Updated] " ndowens
2021-01-03  1:32 ` ndowens
2021-01-03  1:36 ` ndowens
2021-01-03  2:39 ` [PR PATCH] [Updated] " ndowens
2021-01-03  2:48 ` ndowens
2021-02-18  6:46 ` [PR REVIEW] kodi-platform: " ericonr
2021-02-18  6:46 ` ericonr
2021-03-16 21:03 ` ericonr
2021-03-16 21:03 ` [PR PATCH] [Closed]: " ericonr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).