From 0d3cef1dd9cdc70a01934da75b43d1d36b60cb99 Mon Sep 17 00:00:00 2001 From: Matheus Date: Tue, 30 Apr 2024 20:48:00 -0300 Subject: [PATCH] ports: fvwm --- patches/fvwm/jinx-working-patch.patch | 75 +++++++++++++++++++++++++++ recipes/fvwm | 20 +++++++ source-recipes/fvwm | 9 ++++ 3 files changed, 104 insertions(+) create mode 100644 patches/fvwm/jinx-working-patch.patch create mode 100644 recipes/fvwm create mode 100644 source-recipes/fvwm diff --git a/patches/fvwm/jinx-working-patch.patch b/patches/fvwm/jinx-working-patch.patch new file mode 100644 index 00000000..e7bdd5af --- /dev/null +++ b/patches/fvwm/jinx-working-patch.patch @@ -0,0 +1,75 @@ +diff --git fvwm-clean/configure.ac fvwm-workdir/configure.ac +index 23fa0b8..e785e5a 100644 +--- fvwm-clean/configure.ac ++++ fvwm-workdir/configure.ac +@@ -1244,15 +1244,16 @@ fi + + # check for mkstemp, see the discution on this subject on the fvwm workers + # list (2001-02-16 and 2001-02-24) +-AM_SAFETY_CHECK_MKSTEMP ++#AM_SAFETY_CHECK_MKSTEMP + + # Define some compatibility macros needed for config.h. +-mg_DEFINE_IF_NOT([#include ], +- [defined XK_Page_Up && defined XK_Page_Down], +- [COMPAT_OLD_KEYSYMDEF], [$X_CFLAGS], +- [Old AIX systems (3.2.5) don't define some common keysyms.]) +-AH_VERBATIM([_COMPAT_OLD_KEYSYMDEF], +-[#ifdef COMPAT_OLD_KEYSYMDEF ++#mg_DEFINE_IF_NOT([#include ], ++# [defined XK_Page_Up && defined XK_Page_Down], ++# [COMPAT_OLD_KEYSYMDEF], [$X_CFLAGS], ++# well I'm not running AIX so........ ++# [Old AIX systems (3.2.5) don't define some common keysyms.]) ++#AH_VERBATIM([_COMPAT_OLD_KEYSYMDEF], ++#[#ifdef COMPAT_OLD_KEYSYMDEF + # define XK_Page_Up XK_Prior + # define XK_Page_Down XK_Next + #endif]) +@@ -1514,4 +1515,4 @@ Fvwm3 Configuration: + Build man pages? $with_mandoc$problem_mandoc + Build html man pages? $with_htmldoc$problem_htmldoc + +-" +\ No newline at end of file ++" +diff --git fvwm-clean/fvwm/fvwm3.c fvwm-workdir/fvwm/fvwm3.c +index 2265fd4..7f489ab 100644 +--- fvwm-clean/fvwm/fvwm3.c ++++ fvwm-workdir/fvwm/fvwm3.c +@@ -1703,7 +1703,7 @@ int main(int argc, char **argv) + g_argv[g_argc] = NULL; + + FlocaleInit(LC_CTYPE, "", "", "fvwm"); +- FGettextInit("fvwm", LOCALEDIR, "fvwm"); ++ //FGettextInit("fvwm", LOCALEDIR, "fvwm"); + + setVersionInfo(); + /* Put the default module directory into the environment so it can be +@@ -2397,4 +2397,4 @@ int main(int argc, char **argv) + } + + exit(0); +-} +\ No newline at end of file ++} +diff --git fvwm-clean/libs/Ficonv.h fvwm-workdir/libs/Ficonv.h +index 3f7e5ec..9a4a40a 100644 +--- fvwm-clean/libs/Ficonv.h ++++ fvwm-workdir/libs/Ficonv.h +@@ -11,11 +11,11 @@ + + /* ---------------------------- global definitions ------------------------- */ + +-#ifdef HAVE_ICONV +-#define FiconvSupport 1 +-#else ++//#ifdef HAVE_ICONV ++//#define FiconvSupport 1 ++//#else + #define FiconvSupport 0 +-#endif ++//#endif + + #if FiconvSupport + diff --git a/recipes/fvwm b/recipes/fvwm new file mode 100644 index 00000000..738c78e9 --- /dev/null +++ b/recipes/fvwm @@ -0,0 +1,20 @@ +name=fvwm +revision=1 +from_source=fvwm +imagedeps="base-devel" +hostdeps="xgcc xbinutils pkgconfig" +deps="mlibc libx11 libxinerama libxcursor libxt libevent libxrandr freetype libpng libxft" + +build() { + cp -rvp ${source_dir}/* . + ac_cv_func_setpgrp_void=yes \ + ac_cv_func_mkstemp=yes \ + has_safety_mkstemp=yes \ + ./configure --prefix=${prefix} --host=x86_64-astral + + make -j${parallelism} +} + +package() { + make DESTDIR=${dest_dir} install +} diff --git a/source-recipes/fvwm b/source-recipes/fvwm new file mode 100644 index 00000000..799a4ca1 --- /dev/null +++ b/source-recipes/fvwm @@ -0,0 +1,9 @@ +name=fvwm +version=1.1.0 +source_method=tarball +tarball_url="https://github.com/fvwmorg/fvwm3/releases/download/${version}/fvwm3-${version}.tar.gz" +tarball_sha512="47eea05cbdecf4da3313b9183fa938544b451b9f133d7a68062feb222c3c1af3873402f80b60485d603afe8cd23a03f3e86a503fc1f2070e1ad2e6e64d012341" +hostdeps="autoconf automake util-macros pkgconfig libtool" +regenerate() { + autoreconf -fvi +}