summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audio/schismtracker/DESCR6
-rw-r--r--audio/schismtracker/Makefile26
-rw-r--r--audio/schismtracker/PLIST3
-rw-r--r--audio/schismtracker/distinfo7
-rw-r--r--audio/schismtracker/patches/patch-Makefile.am22
-rw-r--r--audio/schismtracker/patches/patch-configure.ac25
6 files changed, 89 insertions, 0 deletions
diff --git a/audio/schismtracker/DESCR b/audio/schismtracker/DESCR
new file mode 100644
index 00000000000..2970edb916f
--- /dev/null
+++ b/audio/schismtracker/DESCR
@@ -0,0 +1,6 @@
+Schism Tracker is a free reimplementation of Impulse Tracker, a program
+used to create high quality music without the requirements of specialized,
+expensive equipment, and with a unique "finger feel" that is difficult to
+replicate in part. The player is based on a highly modified version of
+the Modplug engine, with a number of bugfixes and changes to improve IT
+playback.
diff --git a/audio/schismtracker/Makefile b/audio/schismtracker/Makefile
new file mode 100644
index 00000000000..4aaacca8094
--- /dev/null
+++ b/audio/schismtracker/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2015/09/11 12:35:19 wiz Exp $
+
+# The upstream distfile (http://schismtracker.org/hg/archive/default.tar.bz2)
+# is a repository snapshot and as such a moving target.
+# Thus it's repackaged (adding a timestamp) and mirrored.
+DISTNAME= schismtracker-20150911005204
+CATEGORIES= audio
+MASTER_SITES= http://penenen.de/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= fstd.lkml@gmail.com
+HOMEPAGE= http://schismtracker.org/
+COMMENT= Clone of the good old Impulse Tracker
+LICENSE= gnu-gpl-v2
+
+USE_TOOLS+= aclocal autoheader autoconf automake
+
+MAKE_JOBS_SAFE= no
+GNU_CONFIGURE= yes
+
+pre-configure:
+ set -e; cd ${WRKSRC}; \
+ aclocal; autoheader; automake -a --foreign -i; autoconf
+
+.include "../../devel/SDL/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/audio/schismtracker/PLIST b/audio/schismtracker/PLIST
new file mode 100644
index 00000000000..600cfcd690d
--- /dev/null
+++ b/audio/schismtracker/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2015/09/11 12:35:19 wiz Exp $
+bin/schismtracker
+man/man1/schismtracker.1
diff --git a/audio/schismtracker/distinfo b/audio/schismtracker/distinfo
new file mode 100644
index 00000000000..4f975150df5
--- /dev/null
+++ b/audio/schismtracker/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2015/09/11 12:35:19 wiz Exp $
+
+SHA1 (schismtracker-20150911005204.tgz) = 08d7efeb17341125f0825c16f2879eb278a7db98
+RMD160 (schismtracker-20150911005204.tgz) = 5c74cc835911f6c7fe3dc641dbb034211bf39cdf
+Size (schismtracker-20150911005204.tgz) = 1066449 bytes
+SHA1 (patch-Makefile.am) = 1b3cd9c9bef15fe8cc8da0bfccf904bd35da188b
+SHA1 (patch-configure.ac) = a0421d4cf44f0a53b6fecf1c7476e3f66b4e188c
diff --git a/audio/schismtracker/patches/patch-Makefile.am b/audio/schismtracker/patches/patch-Makefile.am
new file mode 100644
index 00000000000..a9259acbf0a
--- /dev/null
+++ b/audio/schismtracker/patches/patch-Makefile.am
@@ -0,0 +1,22 @@
+$NetBSD: patch-Makefile.am,v 1.1 2015/09/11 12:35:19 wiz Exp $
+
+=========================================================
+This patch removes the hardwired -ldl which is a Linuxism
+(see also patch-configure.ac)
+
+This patch has been submitted upstream
+http://schismtracker.org/scdev/read/1978/
+=========================================================
+
+
+--- Makefile.am.orig Sun Jul 05 12:54:41 2015 -0400
++++ Makefile.am Thu Sep 10 00:35:19 2015 +0200
+@@ -393,8 +393,3 @@
+
+ schismtracker_DEPENDENCIES = $(files_windres)
+ schismtracker_LDADD = $(lib_asound) $(lib_win32) $(SDL_LIBS) $(LIBM)
+-
+-if ! USE_WIN32
+-schismtracker_LDADD += -ldl
+-endif
+-
diff --git a/audio/schismtracker/patches/patch-configure.ac b/audio/schismtracker/patches/patch-configure.ac
new file mode 100644
index 00000000000..5c800b254e1
--- /dev/null
+++ b/audio/schismtracker/patches/patch-configure.ac
@@ -0,0 +1,25 @@
+$NetBSD: patch-configure.ac,v 1.1 2015/09/11 12:35:19 wiz Exp $
+
+=============================================================
+This patch fixes log2(3) detection which failed because just
+AC_CHECK_FUNCS(log2) fails to use -lm.
+Additionally, libdl is properly checked for so that it can be
+de-hardcoded from Makefile.am (see patch-Makefile.am)
+
+This patch has been submitted upstream
+http://schismtracker.org/scdev/read/1978/
+=============================================================
+
+--- configure.ac.orig Sun Jul 05 12:54:41 2015 -0400
++++ configure.ac Thu Sep 10 00:35:19 2015 +0200
+@@ -56,6 +56,10 @@
+ dnl Check for SDL libs
+ AM_PATH_SDL(1.2.10, , AC_MSG_ERROR([*** SDL version >= 1.2.10 not found.]))
+
++dnl Libs
++AC_CHECK_LIB([m], [log2])
++AC_CHECK_LIB([dl], [dlopen])
++
+ dnl Functions
+ AC_CHECK_FUNCS(strchr memmove strerror strtol strcasecmp strncasecmp strverscmp stricmp strnicmp strcasestr strptime asprintf vasprintf memcmp mmap nice unsetenv dup fnmatch log2 mkstemp)
+ AM_CONDITIONAL([NEED_ASPRINTF], [test "$ac_cv_func_asprintf" = "no"])