From dfee2deab309b66eb84a193dff982ce6b29913a8 Mon Sep 17 00:00:00 2001 From: Nathan Owens Date: Thu, 31 Dec 2020 09:20:46 -0600 Subject: [PATCH] ZMusic: fix cross build --- srcpkgs/ZMusic/patches/0001-fix-cross.patch | 28 +++++++++++++++++++++ srcpkgs/ZMusic/template | 1 - 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/ZMusic/patches/0001-fix-cross.patch diff --git a/srcpkgs/ZMusic/patches/0001-fix-cross.patch b/srcpkgs/ZMusic/patches/0001-fix-cross.patch new file mode 100644 index 00000000000..ede6c979833 --- /dev/null +++ b/srcpkgs/ZMusic/patches/0001-fix-cross.patch @@ -0,0 +1,28 @@ +From b430f543c850acfb98751bfcf5343afb397cf049 Mon Sep 17 00:00:00 2001 +From: Nathan Owens +Date: Thu, 31 Dec 2020 09:18:14 -0600 +Subject: [PATCH] fix cross + +--- + CMakeLists.txt | 5 ----- + 1 file changed, 5 deletions(-) + +diff --git CMakeLists.txt CMakeLists.txt +index 5f4cb14..28e622b 100644 +--- CMakeLists.txt ++++ CMakeLists.txt +@@ -24,11 +24,6 @@ if( FORCE_CROSSCOMPILE ) + set( CMAKE_CROSSCOMPILING TRUE ) + endif() + +-if(CMAKE_CROSSCOMPILING) +- set(IMPORT_EXECUTABLES "IMPORTFILE-NOTFOUND" CACHE FILEPATH "Export file from native build.") +- include(${IMPORT_EXECUTABLES}) +-endif() +- + + # Macro for building libraries without debugging information + macro( make_release_only ) +-- +2.30.0 + diff --git a/srcpkgs/ZMusic/template b/srcpkgs/ZMusic/template index b75b6d0c409..4151153cc83 100644 --- a/srcpkgs/ZMusic/template +++ b/srcpkgs/ZMusic/template @@ -14,7 +14,6 @@ license="GPL-3.0-or-later" homepage="https://github.com/coelckers/ZMusic" distfiles="${homepage}/archive/${version}.tar.gz" checksum=5f432b022e023175eae7701625f79287e9ffe889a444179681381026b4fb93bf -nocross=yes if [ "$XBPS_TARGET_LIBC" = musl ]; then makedepends+=" musl-fts-devel"