Skip to content
Snippets Groups Projects
Commit 61480b3b authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Add freepats, use by default for sdl_mixer midi

parent 9f610f39
No related branches found
No related tags found
No related merge requests found
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 -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);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment