summaryrefslogtreecommitdiff
path: root/Ports
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2022-07-09 16:14:03 +0200
committerLinus Groh <mail@linusgroh.de>2022-07-13 21:22:52 +0100
commitfb877effb8dba8909ad439eca9334f392e71a03e (patch)
treeb0508eeeec5c5ff9430ce99728ae835d7a112cb7 /Ports
parent0057b24b9e140b9fb5293ebac8d37c324a8bb493 (diff)
downloadserenity-fb877effb8dba8909ad439eca9334f392e71a03e.zip
Meta+Ports: Automatically generate a meson cross file that we can use
Diffstat (limited to 'Ports')
-rw-r--r--Ports/glib/.gitignore2
-rw-r--r--Ports/glib/cross_file-i686.txt16
-rw-r--r--Ports/glib/cross_file-x86_64.txt16
-rwxr-xr-xPorts/glib/package.sh2
-rw-r--r--Ports/powdertoy/.gitignore2
-rw-r--r--Ports/powdertoy/cross_file-i686.txt16
-rw-r--r--Ports/powdertoy/cross_file-x86_64.txt16
-rwxr-xr-xPorts/powdertoy/package.sh2
8 files changed, 2 insertions, 70 deletions
diff --git a/Ports/glib/.gitignore b/Ports/glib/.gitignore
deleted file mode 100644
index 37d9917f4b..0000000000
--- a/Ports/glib/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-!cross_file-i686.txt
-!cross_file-x86_64.txt
diff --git a/Ports/glib/cross_file-i686.txt b/Ports/glib/cross_file-i686.txt
deleted file mode 100644
index 5fb0a1fe2a..0000000000
--- a/Ports/glib/cross_file-i686.txt
+++ /dev/null
@@ -1,16 +0,0 @@
-[binaries]
-c = 'i686-pc-serenity-gcc'
-cpp = 'i686-pc-serenity-g++'
-ar = 'i686-pc-serenity-ar'
-ranlib = 'i686-pc-serenity-ranlib'
-pkgconfig = 'pkg-config'
-
-[properties]
-sys_root = '../../../../Build/i686/Root'
-needs_exe_wrapper = true
-
-[host_machine]
-system = 'serenity'
-cpu_family = 'x86'
-cpu = 'i686'
-endian = 'little'
diff --git a/Ports/glib/cross_file-x86_64.txt b/Ports/glib/cross_file-x86_64.txt
deleted file mode 100644
index dc11c6ba1a..0000000000
--- a/Ports/glib/cross_file-x86_64.txt
+++ /dev/null
@@ -1,16 +0,0 @@
-[binaries]
-c = 'x86_64-pc-serenity-gcc'
-cpp = 'x86_64-pc-serenity-g++'
-ar = 'x86_64-pc-serenity-ar'
-ranlib = 'x86_64-pc-serenity-ranlib'
-pkgconfig = 'pkg-config'
-
-[properties]
-sys_root = '../../../../Build/x86_64/Root'
-needs_exe_wrapper = true
-
-[host_machine]
-system = 'serenity'
-cpu_family = 'x86'
-cpu = 'x86_64'
-endian = 'little'
diff --git a/Ports/glib/package.sh b/Ports/glib/package.sh
index 5d65011459..67a5e45a2b 100755
--- a/Ports/glib/package.sh
+++ b/Ports/glib/package.sh
@@ -4,7 +4,7 @@ version='2.73.0'
files="https://gitlab.gnome.org/GNOME/glib/-/archive/${version}/glib-${version}.tar.gz glib-${version}.tar.gz 3f573319adbdf572d79255e8bae85c7e2902d1aa6177d2646605a00c0a607eca"
auth_type='sha256'
useconfigure='true'
-configopts=("--cross-file" "../cross_file-${SERENITY_ARCH}.txt")
+configopts=("--cross-file" "${SERENITY_BUILD_DIR}/meson-cross-file.txt")
depends=("libiconv" "libffi" "zlib" "gettext" "pcre")
configure() {
diff --git a/Ports/powdertoy/.gitignore b/Ports/powdertoy/.gitignore
deleted file mode 100644
index 37d9917f4b..0000000000
--- a/Ports/powdertoy/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-!cross_file-i686.txt
-!cross_file-x86_64.txt
diff --git a/Ports/powdertoy/cross_file-i686.txt b/Ports/powdertoy/cross_file-i686.txt
deleted file mode 100644
index 5fb0a1fe2a..0000000000
--- a/Ports/powdertoy/cross_file-i686.txt
+++ /dev/null
@@ -1,16 +0,0 @@
-[binaries]
-c = 'i686-pc-serenity-gcc'
-cpp = 'i686-pc-serenity-g++'
-ar = 'i686-pc-serenity-ar'
-ranlib = 'i686-pc-serenity-ranlib'
-pkgconfig = 'pkg-config'
-
-[properties]
-sys_root = '../../../../Build/i686/Root'
-needs_exe_wrapper = true
-
-[host_machine]
-system = 'serenity'
-cpu_family = 'x86'
-cpu = 'i686'
-endian = 'little'
diff --git a/Ports/powdertoy/cross_file-x86_64.txt b/Ports/powdertoy/cross_file-x86_64.txt
deleted file mode 100644
index dc11c6ba1a..0000000000
--- a/Ports/powdertoy/cross_file-x86_64.txt
+++ /dev/null
@@ -1,16 +0,0 @@
-[binaries]
-c = 'x86_64-pc-serenity-gcc'
-cpp = 'x86_64-pc-serenity-g++'
-ar = 'x86_64-pc-serenity-ar'
-ranlib = 'x86_64-pc-serenity-ranlib'
-pkgconfig = 'pkg-config'
-
-[properties]
-sys_root = '../../../../Build/x86_64/Root'
-needs_exe_wrapper = true
-
-[host_machine]
-system = 'serenity'
-cpu_family = 'x86'
-cpu = 'x86_64'
-endian = 'little'
diff --git a/Ports/powdertoy/package.sh b/Ports/powdertoy/package.sh
index bfdb2d87ec..4b7c08c809 100755
--- a/Ports/powdertoy/package.sh
+++ b/Ports/powdertoy/package.sh
@@ -2,7 +2,7 @@
port=powdertoy
version=96.2.350
useconfigure=true
-configopts=("-Dbuildtype=release" "build-release" "--cross-file" "../cross_file-${SERENITY_ARCH}.txt")
+configopts=("-Dbuildtype=release" "build-release" "--cross-file" "${SERENITY_BUILD_DIR}/meson-cross-file.txt")
depends=("luajit" "curl" "libfftw3f" "zlib" "SDL2")
files="https://github.com/The-Powder-Toy/The-Powder-Toy/archive/refs/tags/v${version}.tar.gz The-Powder-Toy-${version}.tar.gz d95cbadee22632687661e8fc488bd64405d81c0dca737e16420f26e93ea5bf58"
auth_type=sha256