aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2020-07-22 06:19:29 -0600
committerAriadne Conill <ariadne@dereferenced.org>2020-07-22 06:19:29 -0600
commite65cff8f76cc8db77da84cf5e1030a4b73e8265c (patch)
treef8e526012b7c973205d465254d4c1a9aa523baf4
parentc1459fe9b8053b0b72434e8108f6b3d229a26450 (diff)
downloadaports-e65cff8f76cc8db77da84cf5e1030a4b73e8265c.tar.gz
aports-e65cff8f76cc8db77da84cf5e1030a4b73e8265c.tar.bz2
aports-e65cff8f76cc8db77da84cf5e1030a4b73e8265c.tar.xz
testing/horizon: add mips64 host defines
-rw-r--r--testing/horizon/APKBUILD6
-rw-r--r--testing/horizon/mips64-host.patch15
2 files changed, 19 insertions, 2 deletions
diff --git a/testing/horizon/APKBUILD b/testing/horizon/APKBUILD
index f897881580..118ebd5296 100644
--- a/testing/horizon/APKBUILD
+++ b/testing/horizon/APKBUILD
@@ -19,7 +19,8 @@ makedepends="bcnm-dev boost-dev cmake curl-dev eudev-dev libarchive-dev
linux-headers parted-dev skalibs-dev util-linux-dev libxkbfile-dev"
subpackages="$pkgname-image $pkgname-dbg $pkgname-dev $pkgname-doc
$pkgname-tools"
-source="https://distfiles.adelielinux.org/source/horizon-$pkgver.tar.xz"
+source="https://distfiles.adelielinux.org/source/horizon-$pkgver.tar.xz
+ mips64-host.patch"
build() {
if [ "$CBUILD" != "$CHOST" ]; then
@@ -125,4 +126,5 @@ PROFILE
"$subpkgdir"/usr/share/xsessions/horizon.desktop
}
-sha512sums="99c1d939abc33c4a072712e75c6c8ada16deb1fe59b9da839dffd695a0d40dbf48499cc00751285300127a7fc701e8e1c434e9f8a222f1981ccbebd6ee72e43e horizon-0.9.3.tar.xz"
+sha512sums="99c1d939abc33c4a072712e75c6c8ada16deb1fe59b9da839dffd695a0d40dbf48499cc00751285300127a7fc701e8e1c434e9f8a222f1981ccbebd6ee72e43e horizon-0.9.3.tar.xz
+b3f78b967dd2238270b929c3528705fad6c61bf1b5a1c35ad6ba9d68fd8ef9896449c21ad8ee1a390fb25f185abeafa30c6ca593e2c338203343799eda213fe4 mips64-host.patch"
diff --git a/testing/horizon/mips64-host.patch b/testing/horizon/mips64-host.patch
new file mode 100644
index 0000000000..58808560fe
--- /dev/null
+++ b/testing/horizon/mips64-host.patch
@@ -0,0 +1,15 @@
+diff --git a/hscript/meta.cc b/hscript/meta.cc
+index d79f3f5..fe8931d 100644
+--- a/hscript/meta.cc
++++ b/hscript/meta.cc
+@@ -722,6 +722,10 @@ const std::string my_arch(const Horizon::Script *script) {
+ return "pmmx";
+ # elif defined(__x86_64__)
+ return "x86_64";
++# elif defined(__mips64) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
++ return "mips64";
++# elif defined(__mips64) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
++ return "mips64le";
+ # else
+ # error Unknown architecture.
+ # endif