aboutsummaryrefslogtreecommitdiffstats
path: root/audio/squash/files
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2003-11-23 06:32:00 +0800
committerpav <pav@FreeBSD.org>2003-11-23 06:32:00 +0800
commit7805d1362e2481f763df6fcb2e74bfdaa0ed3154 (patch)
tree90d35155ca1d487bcf8438ee0585502869c80d4d /audio/squash/files
parentf9637f7ac4dfdd9ef143a2e035152819383ffb74 (diff)
downloadfreebsd-ports-graphics-7805d1362e2481f763df6fcb2e74bfdaa0ed3154.tar.gz
freebsd-ports-graphics-7805d1362e2481f763df6fcb2e74bfdaa0ed3154.tar.zst
freebsd-ports-graphics-7805d1362e2481f763df6fcb2e74bfdaa0ed3154.zip
Squash is a learning ncurses music player written in C. It supports mp3,
ogg and flac. Squash uses statistics to determine songs to play automatically. It garners this information through whether or not a song is skipped. PR: ports/55275 Submitted by: Matthias Andree <matthias.andree@web.de> Based on shar by: trevor Approved by: adamw (mentor)
Diffstat (limited to 'audio/squash/files')
-rw-r--r--audio/squash/files/patch-include::global.h13
-rw-r--r--audio/squash/files/patch-src::display.c36
-rw-r--r--audio/squash/files/pkg-message.in4
3 files changed, 53 insertions, 0 deletions
diff --git a/audio/squash/files/patch-include::global.h b/audio/squash/files/patch-include::global.h
new file mode 100644
index 00000000000..153a14df38f
--- /dev/null
+++ b/audio/squash/files/patch-include::global.h
@@ -0,0 +1,13 @@
+$FreeBSD$
+
+--- include/global.h~ Mon Aug 4 16:43:16 2003
++++ include/global.h Tue Aug 5 11:54:11 2003
+@@ -40,7 +40,7 @@
+ #include <ao/ao.h>
+ #include <math.h>
+ #include <stdarg.h>
+-#include <wait.h>
++#include <sys/wait.h>
+ #include <sys/mman.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
diff --git a/audio/squash/files/patch-src::display.c b/audio/squash/files/patch-src::display.c
new file mode 100644
index 00000000000..ffc34b199f9
--- /dev/null
+++ b/audio/squash/files/patch-src::display.c
@@ -0,0 +1,36 @@
+$FreeBSD$
+
+--- src/display.c~ Tue Jul 29 06:56:49 2003
++++ src/display.c Tue Aug 5 11:59:03 2003
+@@ -673,6 +673,22 @@
+ wrefresh( win );
+ }
+
++char *mystrndup(const char *s, size_t sz)
++{
++ size_t l = strlen(s), i;
++ char *x;
++
++ i = l < sz ? l : sz;
++
++ x = malloc(i + 1);
++
++ if (x) {
++ memcpy(x, s, i);
++ x[i] = '\0';
++ }
++ return x;
++}
++
+ /*
+ * Draw the info window.
+ */
+@@ -744,7 +760,7 @@
+ }
+
+ /* Clip filename */
+- filename = strndup( filename, win_width - 2 );
++ filename = mystrndup( filename, win_width - 2 );
+
+ /* Display filename and songs loaded */
+ mvwprintw( win, 1, 1, "Current Selected Song filename:" );
diff --git a/audio/squash/files/pkg-message.in b/audio/squash/files/pkg-message.in
new file mode 100644
index 00000000000..22708b508d4
--- /dev/null
+++ b/audio/squash/files/pkg-message.in
@@ -0,0 +1,4 @@
+---------------------------------------------------------------------------
+NOTE: You MUST configure squash and run a script before you can use squash.
+Please see %%DD%%/INSTALL for details.
+---------------------------------------------------------------------------