From 4efd841c0eff6f976688264cf128b18dae3a377d Mon Sep 17 00:00:00 2001 From: Frederik Carlier Date: Sat, 30 Sep 2023 22:06:12 +0200 Subject: [PATCH] Add gnustep-back --- patches/gnustep-back-remove-tools.patch | 13 +++++++++ phases/51-gnustep-back.sh | 36 +++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 patches/gnustep-back-remove-tools.patch create mode 100644 phases/51-gnustep-back.sh diff --git a/patches/gnustep-back-remove-tools.patch b/patches/gnustep-back-remove-tools.patch new file mode 100644 index 0000000..0b2ead5 --- /dev/null +++ b/patches/gnustep-back-remove-tools.patch @@ -0,0 +1,13 @@ +diff --git a/GNUmakefile b/GNUmakefile +index 03ad17f..029a521 100644 +--- a/GNUmakefile ++++ b/GNUmakefile +@@ -47,7 +47,7 @@ include ./Version + # + # The list of subproject directories + # +-SUBPROJECTS = Source Tools ++SUBPROJECTS = Source + + ifneq ($(fonts), no) + SUBPROJECTS += Fonts diff --git a/phases/51-gnustep-back.sh b/phases/51-gnustep-back.sh new file mode 100644 index 0000000..a73692b --- /dev/null +++ b/phases/51-gnustep-back.sh @@ -0,0 +1,36 @@ +#!/bin/sh +set -eo pipefail +shopt -s inherit_errexit + +cd `dirname $0` + +export PROJECT=gnustep-back +export GITHUB_REPO=gnustep/libs-back +export TAG= + +# load environment and prepare project +../scripts/common.bat prepare_project + +cd "$SRCROOT/$PROJECT" + +echo +echo "### Loading GNUstep environment" +. "$UNIX_INSTALL_PREFIX/share/GNUstep/Makefiles/GNUstep.sh" + +echo +echo "### Running configure" + +./configure \ + --enable-graphics=headless \ + --enable-server=headless \ + --without-freetype \ + --host=$TARGET \ + CFLAGS="-Wno-int-conversion" + +echo +echo "### Building" +make -j`nproc` + +echo +echo "### Installing" +make install \ No newline at end of file