From aaee64773fdf5e8a88aa0c8ec3f02eb8a6348db4 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Mon, 20 Apr 2015 21:05:02 +0200 Subject: [PATCH] Schismtracker: fix recipe. Fixes http://ports.haiku-files.org/ticket/370. --- .../patches/schismtracker-20120105.patchset | 25 +++++++ .../schismtracker-20100713.recipe | 31 --------- .../schismtracker-20120105.recipe | 67 +++++++++++++++++++ 3 files changed, 92 insertions(+), 31 deletions(-) create mode 100644 media-sound/schismtracker/patches/schismtracker-20120105.patchset delete mode 100644 media-sound/schismtracker/schismtracker-20100713.recipe create mode 100644 media-sound/schismtracker/schismtracker-20120105.recipe diff --git a/media-sound/schismtracker/patches/schismtracker-20120105.patchset b/media-sound/schismtracker/patches/schismtracker-20120105.patchset new file mode 100644 index 000000000..ed0f3d2af --- /dev/null +++ b/media-sound/schismtracker/patches/schismtracker-20120105.patchset @@ -0,0 +1,25 @@ +From 00ee988722c54bfb1ce9c157226598b0404f7fcf Mon Sep 17 00:00:00 2001 +From: Adrien Destugues +Date: Mon, 20 Apr 2015 21:03:52 +0200 +Subject: Remove -ldl + +* Does not exist in Haiku. + +diff --git a/Makefile.am b/Makefile.am +index 66a8922..03a080b 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -393,7 +393,7 @@ AM_OBJCFLAGS = $(AM_CFLAGS) + schismtracker_DEPENDENCIES = $(files_windres) + schismtracker_LDADD = $(lib_asound) $(lib_win32) $(SDL_LIBS) $(LIBM) + +-if ! USE_WIN32 +-schismtracker_LDADD += -ldl +-endif ++#if ! USE_WIN32 ++#schismtracker_LDADD += -ldl ++#endif + +-- +2.2.2 + diff --git a/media-sound/schismtracker/schismtracker-20100713.recipe b/media-sound/schismtracker/schismtracker-20100713.recipe deleted file mode 100644 index bc19e05ae..000000000 --- a/media-sound/schismtracker/schismtracker-20100713.recipe +++ /dev/null @@ -1,31 +0,0 @@ -DESCRIPTION="schismtracker - a free reimplementation of Impulse Tracker, a program used to create high quality music." -HOMEPAGE="http://eval.sovietrussia.org//wiki/Schism_Tracker" -SRC_URI="hg+http://schismtracker.org/hg/" -REVISION="1" -STATUS_HAIKU="unstable" -MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building." -DEPEND="libsdl >= 1.2.14 - gcc >= 4" -#CHECKSUM_MD5="" -BUILD() -{ - cd schismtracker-20100713 - aclocal - autoconf - autoheader - automake --add-missing - ./configure --prefix=`finddir B_COMMON_DIRECTORY` - make -} - -INSTALL() -{ - cd schismtracker-20100713 - make install -} - -LICENSE="GNU GPL v2" -COPYRIGHT="2003-2005 Storlek - 2005-2008 Mrs. Brisby - 2009 Storlek & Mrs. Brisby - 2010 Storlek" diff --git a/media-sound/schismtracker/schismtracker-20120105.recipe b/media-sound/schismtracker/schismtracker-20120105.recipe new file mode 100644 index 000000000..dfaf5c492 --- /dev/null +++ b/media-sound/schismtracker/schismtracker-20120105.recipe @@ -0,0 +1,67 @@ +SUMMARY="Free reimplementation of Impulse Tracker" +DESCRIPTION="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. + +Where Impulse Tracker was limited to i386-based systems running MS-DOS, Schism \ +Tracker runs on almost any platform that SDL supports, and has been \ +successfully built for Linux, Mac OS X, Windows, FreeBSD, AmigaOS, BeOS, and \ +even the Wii. Most development is currently done on 64-bit Linux. Schism will \ +most likely build on any architecture supported by GCC4 (e.g. alpha, m68k, \ +arm, etc.) but it will probably not be as well-optimized on many systems." +HOMEPAGE="http://schismtracker.org/wiki/Schism%20Tracker" +SRC_URI="http://schismtracker.org/dl/schismtracker-20120105.tar.bz2" +PATCHES="schismtracker-$portVersion.patchset" +REVISION="1" + +ARCHITECTURES="" +if [ $effectiveTargetArchitecture != x86_gcc2 ]; then + # x86_gcc2 is fine as primary target architecture as long as we're building + # for a different secondary architecture. + ARCHITECTURES="$ARCHITECTURES x86_gcc2" +fi +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + schismtracker$secondaryArchSuffix = $portVersion + cmd:schismtracker$secondaryArchSuffix +" + +REQUIRES=" + haiku$secondaryArchSuffix + lib:libsdl$secondaryArchSuffix +" + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libsdl$secondaryArchSuffix +" + +BUILD_PREREQUIRES=" + cmd:autoconf + cmd:automake + cmd:awk + cmd:find + cmd:gcc$secondaryArchSuffix + cmd:make + cmd:python +" + +BUILD() +{ + aclocal + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install +} + +LICENSE="GNU GPL v2" +COPYRIGHT="2003-2012 Storlek + 2005-2009 Mrs. Brisby"