diff --git a/recipes/freepats/recipe.sh b/recipes/freepats/recipe.sh new file mode 100644 index 0000000000000000000000000000000000000000..160064792bf10e9b18fb7509da231a9d28c15a15 --- /dev/null +++ b/recipes/freepats/recipe.sh @@ -0,0 +1,26 @@ +VERSION=20060219 +GIT=https://gitlab.redox-os.org/redox-os/freepats.git + +function recipe_version { + echo "$VERSION" + skip=1 +} + +function recipe_build { + echo "skipping build" + skip=1 +} + +function recipe_clean { + echo "skipping clean" + skip=1 +} + +function recipe_stage { + mkdir -pv "$1/share/freepats" + cp -Rv ./* "$1/share/freepats" + mkdir -pv "$1/etc/timidity" + echo "dir /share/freepats" > "$1/etc/timidity/freepats.cfg" + echo "source /share/freepats/freepats.cfg" >> "$1/etc/timidity/freepats.cfg" + skip=1 +} diff --git a/recipes/sdl_mixer/01_redox.patch b/recipes/sdl_mixer/redox.patch similarity index 50% rename from recipes/sdl_mixer/01_redox.patch rename to recipes/sdl_mixer/redox.patch index 1337ba34c21affeebfed6bcd03760ee3a5925b87..c08dca81b1f3d862f66cab21ce3d725cf8d16fe5 100644 --- a/recipes/sdl_mixer/01_redox.patch +++ b/recipes/sdl_mixer/redox.patch @@ -1,6 +1,6 @@ -diff -ruw source/build-scripts/config.sub source-new/build-scripts/config.sub +diff -ruwN source/build-scripts/config.sub source-new/build-scripts/config.sub --- source/build-scripts/config.sub 2012-01-15 15:01:05.000000000 -0700 -+++ source-new/build-scripts/config.sub 2019-06-18 20:56:54.052482658 -0600 ++++ source-new/build-scripts/config.sub 2022-11-20 12:23:50.849108724 -0700 @@ -1276,7 +1276,7 @@ -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ @@ -10,10 +10,9 @@ diff -ruw source/build-scripts/config.sub source-new/build-scripts/config.sub | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ -Only in source-new/build-scripts: config.sub.orig -diff -ruw source/Makefile.in source-new/Makefile.in +diff -ruwN source/Makefile.in source-new/Makefile.in --- source/Makefile.in 2012-01-15 15:01:04.000000000 -0700 -+++ source-new/Makefile.in 2019-06-18 20:57:42.376687909 -0600 ++++ source-new/Makefile.in 2022-11-20 12:23:50.849108724 -0700 @@ -66,10 +66,10 @@ $(LIBTOOL) --mode=link $(CC) -o $@ $(OBJECTS) $(VERSION_OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS) @@ -27,3 +26,30 @@ diff -ruw source/Makefile.in source-new/Makefile.in install: all install-hdrs install-lib #install-bin install-hdrs: +diff -ruwN source/timidity/config.h source-new/timidity/config.h +--- source/timidity/config.h 2012-01-15 15:01:05.000000000 -0700 ++++ source-new/timidity/config.h 2022-11-20 12:26:04.067581857 -0700 +@@ -162,6 +162,7 @@ + then specify the library directory in the configuration file. */ + #define CONFIG_FILE "timidity.cfg" + #define CONFIG_FILE_ETC "/etc/timidity.cfg" ++#define CONFIG_FILE_ETC_TIMIDITY_FREEPATS "/etc/timidity/freepats.cfg" + + #if defined(__WIN32__) || defined(__OS2__) + #define DEFAULT_PATH "C:\\TIMIDITY" +diff -ruwN source/timidity/timidity.c source-new/timidity/timidity.c +--- source/timidity/timidity.c 2012-01-15 15:01:05.000000000 -0700 ++++ source-new/timidity/timidity.c 2022-11-20 12:26:42.248290658 -0700 +@@ -286,10 +286,12 @@ + if (!env || read_config_file(env)<0) { + if (read_config_file(CONFIG_FILE)<0) { + if (read_config_file(CONFIG_FILE_ETC)<0) { ++ if (read_config_file(CONFIG_FILE_ETC_TIMIDITY_FREEPATS)<0) { + return(-1); + } + } + } ++ } + + if (channels < 1 || channels == 3 || channels == 5 || channels > 6) return(-1); +