Tuesday, 19 March 2019

[gccsdk] New recipe for libxmp

Index: media/libxmp/setvars
===================================================================
--- media/libxmp/setvars (nonexistent)
+++ media/libxmp/setvars (working copy)
@@ -0,0 +1 @@
+AB_INSTALL=yes
Index: media/libxmp-lite/fix-libxmp-lite-mod-loader.p
===================================================================
--- media/libxmp-lite/fix-libxmp-lite-mod-loader.p (nonexistent)
+++ media/libxmp-lite/fix-libxmp-lite-mod-loader.p (working copy)
@@ -0,0 +1,55 @@
+From a02883528979bbefc6d6d4be79d10b853e7b7041 Mon Sep 17 00:00:00 2001
+From: Carsten Teibes <dev@f4ke.de>
+Date: Sun, 6 Nov 2016 19:50:07 +0100
+Subject: Fix libxmp-lite building (wrong format loaders) Currently trying to
+ use the lite version fails with undefined references to the old format loader
+ names.
+
+This bug was introduced in d018decfb98d: "Add prefix to format loaders"
+
+diff --git a/lite/src/format.c b/lite/src/format.c
+index 277a3da..e19f070 100644
+--- src/format.c
++++ src/format.c
+@@ -27,20 +27,20 @@
+ #endif
+ #include "format.h"
+
+-extern const struct format_loader xm_loader;
+-extern const struct format_loader mod_loader;
+-extern const struct format_loader it_loader;
+-extern const struct format_loader s3m_loader;
++extern const struct format_loader libxmp_loader_xm;
++extern const struct format_loader libxmp_loader_mod;
++extern const struct format_loader libxmp_loader_it;
++extern const struct format_loader libxmp_loader_s3m;
+
+ extern const struct pw_format *const pw_format[];
+
+ const struct format_loader *const format_loader[5] = {
+- &xm_loader,
+- &mod_loader,
++ &libxmp_loader_xm,
++ &libxmp_loader_mod,
+ #ifndef LIBXMP_CORE_DISABLE_IT
+- &it_loader,
++ &libxmp_loader_it,
+ #endif
+- &s3m_loader,
++ &libxmp_loader_s3m,
+ NULL
+ };
+
+diff --git a/lite/src/loaders/mod_load.c b/lite/src/loaders/mod_load.c
+index b7a8f8d..bf72f36 100644
+--- src/loaders/mod_load.c
++++ src/loaders/mod_load.c
+@@ -36,7 +36,7 @@
+ static int mod_test (HIO_HANDLE *, char *, const int);
+ static int mod_load (struct module_data *, HIO_HANDLE *, const int);
+
+-const struct format_loader mod_loader = {
++const struct format_loader libxmp_loader_mod = {
+ "Protracker",
+ mod_test,
+ mod_load
Index: media/libxmp-lite/setvars
===================================================================
--- media/libxmp-lite/setvars (nonexistent)
+++ media/libxmp-lite/setvars (working copy)
@@ -0,0 +1,2 @@
+AB_URL=https://sourceforge.net/projects/xmp/files/libxmp/4.4.1/libxmp-lite-4.4.1.tar.gz
+AB_INSTALL=yes

Index: media/xmp/depends
===================================================================
--- media/xmp/depends (nonexistent)
+++ media/xmp/depends (working copy)
@@ -0,0 +1 @@
+libxmp
Index: media/xmp/setvars
===================================================================
--- media/xmp/setvars (nonexistent)
+++ media/xmp/setvars (working copy)
@@ -0,0 +1,12 @@
+AB_INSTALL=no
+
+ab_package () {
+ ab_create_command_app XMP Apps/Audio
+ ab_add_commands $S/src/xmp$AB_EXEEXT
+
+ cp -av $S/README $A/!Help,fff
+ cp -av $S/COPYING $S/CREDITS $S/Changelog $A
+ cp -av $S/girl_from_mars.xm $A/girl_from_mars,1af
+
+ $AB_HOME/add-riscpkg -unixlib -unixsound
+}
Hi

This patch adds new recipes for libxmp, libxmp-lite and xmp.

Regards
Cameron

No comments:

Post a Comment