From f7c5d0d1292257400c0bdcb39037d0cb06549680 Mon Sep 17 00:00:00 2001 From: sparshg <43041139+sparshg@users.noreply.github.com> Date: Tue, 30 May 2023 16:14:58 +0530 Subject: [PATCH 1/3] Add pygame2 and its dependencies --- SDL2/SDL2_image-2.6.3.json | 19 +++++++++++++++ SDL2/SDL2_mixer-2.6.3.json | 22 +++++++++++++++++ SDL2/SDL2_ttf-2.20.2.json | 22 +++++++++++++++++ pygame2/pygame-2.4.0.json | 48 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 111 insertions(+) create mode 100644 SDL2/SDL2_image-2.6.3.json create mode 100644 SDL2/SDL2_mixer-2.6.3.json create mode 100644 SDL2/SDL2_ttf-2.20.2.json create mode 100644 pygame2/pygame-2.4.0.json diff --git a/SDL2/SDL2_image-2.6.3.json b/SDL2/SDL2_image-2.6.3.json new file mode 100644 index 00000000..c96c66ca --- /dev/null +++ b/SDL2/SDL2_image-2.6.3.json @@ -0,0 +1,19 @@ +{ + "name": "SDL2_image", + "config-opts": ["--disable-static"], + "rm-configure": true, + "sources": [ + { + "type": "archive", + "url": "https://github.com/libsdl-org/SDL_image/releases/download/release-2.6.3/SDL2_image-2.6.3.tar.gz", + "sha256": "931c9be5bf1d7c8fae9b7dc157828b7eee874e23c7f24b44ba7eff6b4836312c" + }, + { + "type": "script", + "dest-filename": "autogen.sh", + "commands": [ + "AUTOMAKE=\"automake --foreign\" autoreconf -vfi" + ] + } + ] +} diff --git a/SDL2/SDL2_mixer-2.6.3.json b/SDL2/SDL2_mixer-2.6.3.json new file mode 100644 index 00000000..d41e776b --- /dev/null +++ b/SDL2/SDL2_mixer-2.6.3.json @@ -0,0 +1,22 @@ +{ + "name": "SDL2_mixer", + "config-opts": ["--disable-static"], + "rm-configure": true, + "sources": [ + { + "type": "archive", + "url": "https://github.com/libsdl-org/SDL_mixer/releases/download/release-2.6.3/SDL2_mixer-2.6.3.tar.gz", + "sha256": "7a6ba86a478648ce617e3a5e9277181bc67f7ce9876605eea6affd4a0d6eea8f" + }, + { + "type": "script", + "dest-filename": "autogen.sh", + "commands": [ + "rm acinclude/libtool.m4", + "rm acinclude/lt*", + "AUTOMAKE=\"automake --foreign\" autoreconf -vfi -I acinclude", + "cp -p /usr/share/automake-*/config.{sub,guess} build-scripts" + ] + } + ] +} diff --git a/SDL2/SDL2_ttf-2.20.2.json b/SDL2/SDL2_ttf-2.20.2.json new file mode 100644 index 00000000..bb03fd2a --- /dev/null +++ b/SDL2/SDL2_ttf-2.20.2.json @@ -0,0 +1,22 @@ +{ + "name": "SDL2_ttf", + "config-opts": ["--disable-static"], + "rm-configure": true, + "config-opts": [ + "ac_cv_path_FREETYPE_CONFIG=pkg-config freetype2" + ], + "sources": [ + { + "type": "archive", + "url": "https://github.com/libsdl-org/SDL_ttf/releases/download/release-2.20.2/SDL2_ttf-2.20.2.tar.gz", + "sha256": "9dc71ed93487521b107a2c4a9ca6bf43fb62f6bddd5c26b055e6b91418a22053" + }, + { + "type": "script", + "dest-filename": "autogen.sh", + "commands": [ + "AUTOMAKE=\"automake --foreign\" autoreconf -vfi" + ] + } + ] +} diff --git a/pygame2/pygame-2.4.0.json b/pygame2/pygame-2.4.0.json new file mode 100644 index 00000000..ce68e691 --- /dev/null +++ b/pygame2/pygame-2.4.0.json @@ -0,0 +1,48 @@ +{ + "name": "pygame2", + "sources": [ + { + "type": "archive", + "url": "https://files.pythonhosted.org/packages/b9/42/154038c4988d750ded799dc5d6ca4e631db93888e3d76084625b0588dfd2/pygame-2.4.0.tar.gz", + "sha256": "e3603e70e96ee30af1954ce57d4922a059402f368013e7138e90f1c03d185267" + } + ], + "buildsystem": "simple", + "build-commands": [ + "pip3 install --ignore-installed --no-deps --prefix=/app ." + ], + "build-options": { + "env": { + "PORTMIDI_INC_PORTTIME": "1", + "PYGAME_EXTRA_BASE": "/app" + }, + "arch": { + "aarch64": { + "env": { + "ORIGLIBDIRS": "/lib:/lib64:/lib/aarch64-linux-gnu" + } + }, + "arm": { + "env": { + "ORIGLIBDIRS": "/lib:/lib/arm-linux-gnueabihf" + } + }, + "i386": { + "env": { + "ORIGLIBDIRS": "/lib:/lib/i386-linux-gnu" + } + }, + "x86_64": { + "env": { + "ORIGLIBDIRS": "/lib:/lib64:/lib/x86_64-linux-gnu" + } + } + } + }, + "modules": [ + "../SDL2/SDL2-with-libdecor.json", + "../SDL2/SDL2_image-2.6.3.json", + "../SDL2/SDL2_ttf-2.20.2.json", + "../SDL2/SDL2_mixer-2.6.3.json" + ] +} From 1b8dcb0c0588b301c471747f6a48aae1096f0b3c Mon Sep 17 00:00:00 2001 From: sparshg <43041139+sparshg@users.noreply.github.com> Date: Mon, 5 Jun 2023 18:46:01 +0530 Subject: [PATCH 2/3] remove unnecessary modules --- SDL2/SDL2_image-2.6.3.json | 19 ------------------- SDL2/SDL2_mixer-2.6.3.json | 22 ---------------------- SDL2/SDL2_ttf-2.20.2.json | 22 ---------------------- pygame2/pygame-2.4.0.json | 8 +------- 4 files changed, 1 insertion(+), 70 deletions(-) delete mode 100644 SDL2/SDL2_image-2.6.3.json delete mode 100644 SDL2/SDL2_mixer-2.6.3.json delete mode 100644 SDL2/SDL2_ttf-2.20.2.json diff --git a/SDL2/SDL2_image-2.6.3.json b/SDL2/SDL2_image-2.6.3.json deleted file mode 100644 index c96c66ca..00000000 --- a/SDL2/SDL2_image-2.6.3.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "SDL2_image", - "config-opts": ["--disable-static"], - "rm-configure": true, - "sources": [ - { - "type": "archive", - "url": "https://github.com/libsdl-org/SDL_image/releases/download/release-2.6.3/SDL2_image-2.6.3.tar.gz", - "sha256": "931c9be5bf1d7c8fae9b7dc157828b7eee874e23c7f24b44ba7eff6b4836312c" - }, - { - "type": "script", - "dest-filename": "autogen.sh", - "commands": [ - "AUTOMAKE=\"automake --foreign\" autoreconf -vfi" - ] - } - ] -} diff --git a/SDL2/SDL2_mixer-2.6.3.json b/SDL2/SDL2_mixer-2.6.3.json deleted file mode 100644 index d41e776b..00000000 --- a/SDL2/SDL2_mixer-2.6.3.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "SDL2_mixer", - "config-opts": ["--disable-static"], - "rm-configure": true, - "sources": [ - { - "type": "archive", - "url": "https://github.com/libsdl-org/SDL_mixer/releases/download/release-2.6.3/SDL2_mixer-2.6.3.tar.gz", - "sha256": "7a6ba86a478648ce617e3a5e9277181bc67f7ce9876605eea6affd4a0d6eea8f" - }, - { - "type": "script", - "dest-filename": "autogen.sh", - "commands": [ - "rm acinclude/libtool.m4", - "rm acinclude/lt*", - "AUTOMAKE=\"automake --foreign\" autoreconf -vfi -I acinclude", - "cp -p /usr/share/automake-*/config.{sub,guess} build-scripts" - ] - } - ] -} diff --git a/SDL2/SDL2_ttf-2.20.2.json b/SDL2/SDL2_ttf-2.20.2.json deleted file mode 100644 index bb03fd2a..00000000 --- a/SDL2/SDL2_ttf-2.20.2.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "SDL2_ttf", - "config-opts": ["--disable-static"], - "rm-configure": true, - "config-opts": [ - "ac_cv_path_FREETYPE_CONFIG=pkg-config freetype2" - ], - "sources": [ - { - "type": "archive", - "url": "https://github.com/libsdl-org/SDL_ttf/releases/download/release-2.20.2/SDL2_ttf-2.20.2.tar.gz", - "sha256": "9dc71ed93487521b107a2c4a9ca6bf43fb62f6bddd5c26b055e6b91418a22053" - }, - { - "type": "script", - "dest-filename": "autogen.sh", - "commands": [ - "AUTOMAKE=\"automake --foreign\" autoreconf -vfi" - ] - } - ] -} diff --git a/pygame2/pygame-2.4.0.json b/pygame2/pygame-2.4.0.json index ce68e691..52e19224 100644 --- a/pygame2/pygame-2.4.0.json +++ b/pygame2/pygame-2.4.0.json @@ -38,11 +38,5 @@ } } } - }, - "modules": [ - "../SDL2/SDL2-with-libdecor.json", - "../SDL2/SDL2_image-2.6.3.json", - "../SDL2/SDL2_ttf-2.20.2.json", - "../SDL2/SDL2_mixer-2.6.3.json" - ] + } } From 29f631b417e4dde27eeb105f4993ffb065e00990 Mon Sep 17 00:00:00 2001 From: Sparsh Goenka <43041139+sparshg@users.noreply.github.com> Date: Wed, 14 Jun 2023 13:44:47 +0530 Subject: [PATCH 3/3] Remove unsupported archs --- pygame2/pygame-2.4.0.json | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pygame2/pygame-2.4.0.json b/pygame2/pygame-2.4.0.json index 52e19224..ee80ed3c 100644 --- a/pygame2/pygame-2.4.0.json +++ b/pygame2/pygame-2.4.0.json @@ -22,16 +22,6 @@ "ORIGLIBDIRS": "/lib:/lib64:/lib/aarch64-linux-gnu" } }, - "arm": { - "env": { - "ORIGLIBDIRS": "/lib:/lib/arm-linux-gnueabihf" - } - }, - "i386": { - "env": { - "ORIGLIBDIRS": "/lib:/lib/i386-linux-gnu" - } - }, "x86_64": { "env": { "ORIGLIBDIRS": "/lib:/lib64:/lib/x86_64-linux-gnu"