···11+--- code-r100/configure.ac 2014-09-25 23:44:41.059174904 +0200
22++++ code-r100.new/configure.ac 2014-09-26 01:37:18.507017390 +0200
33+@@ -44,6 +44,8 @@
44+ [AC_MSG_ERROR(CONFIG: You need libxml2-dev installed.
55+ http://www.xmlsoft.org/)])
66+77++PKG_CHECK_MODULES([libxml], [libxml-2.0])
88++
99+ AC_CHECK_LIB([m], [sqrt], , [AC_MSG_ERROR(CORE: You need libm installed)])
1010+ AC_CHECK_LIB([pthread], [pthread_self], , [AC_MSG_ERROR(CORE: You need libpthread installed)])
1111+1212+@@ -79,12 +81,12 @@
1313+ echo "--- Enabling USB LCD display --";
1414+ fi
1515+1616+-#SDL_VERSION=1.2.4
1717+-#AM_PATH_SDL($SDL_VERSION,
1818+-# :,
1919+-# AC_MSG_ERROR([VIDEO: *** SDL version $SDL_VERSION not found!
2020+-# http://www.libsdl.org/])
2121+-#)
2222++SDL_VERSION=1.2.4
2323++AM_PATH_SDL($SDL_VERSION,
2424++ :,
2525++ AC_MSG_ERROR([VIDEO: *** SDL version $SDL_VERSION not found!
2626++ http://www.libsdl.org/])
2727++)
2828+2929+ AC_CHECK_LIB([vorbis], [main], ,
3030+ [AC_MSG_ERROR(AUDIO: You need libvorbis-dev installed.
3131+@@ -95,6 +97,9 @@
3232+ AC_CHECK_LIB([vorbisenc], [main], ,
3333+ [AC_MSG_ERROR(AUDIO: You need libvorbis-dev installed.
3434+ http://www.xiph.org/ogg/vorbis/)])
3535++AC_CHECK_LIB([ogg], [main], ,
3636++ [AC_MSG_ERROR(AUDIO: You need libogg-dev installed.
3737++ http://www.xiph.org/ogg/)])
3838+3939+ AC_CHECK_LIB([sndfile], [main], ,
4040+ [AC_MSG_ERROR(AUDIO: you need libsndfile installed.
+42
pkgs/applications/audio/freewheeling/default.nix
···11+{ stdenv, fetchsvn, pkgconfig, autoconf, automake, gnutls, freetype,
22+SDL, SDL_gfx, SDL_ttf, liblo, libxml2, alsaLib, jack2, libvorbis,
33+libsndfile, libogg }:
44+55+stdenv.mkDerivation {
66+ name = "freewheeling-100";
77+88+ src = fetchsvn {
99+ url = svn://svn.code.sf.net/p/freewheeling/code;
1010+ rev = 100;
1111+ sha256 = "1m6z7p93xyha25qma9bazpzbp04pqdv5h3yrv6851775xsyvzksv";
1212+ };
1313+1414+ buildInputs = [ pkgconfig autoconf automake gnutls freetype
1515+ SDL SDL_gfx SDL_ttf liblo libxml2 jack2 alsaLib
1616+ libvorbis libsndfile libogg ];
1717+1818+ preConfigure = "autoreconf -vfi";
1919+2020+ patches = [ ./am_path_sdl.patch ./xml.patch ];
2121+2222+ meta = {
2323+ description = "A live looping instrument with jack and MIDI support";
2424+ longDescription = ''
2525+ Freewheeling allows us to build repetitive grooves
2626+ by sampling and directing loops from within spirited improvisation.
2727+2828+ It works because, down to the core, it's built around
2929+ improv. We leave mice and menus, and dive into our own process
3030+ of making sound.
3131+3232+ Freewheeling runs under Mac OS X and Linux, and is open source
3333+ software, released under the GNU GPL license.
3434+ '' ;
3535+3636+ version = "r100";
3737+ homepage = "http://freewheeling.sourceforge.net";
3838+ license = stdenv.lib.licenses.gpl2;
3939+ maintainers = [ stdenv.lib.maintainers.sepi ];
4040+ platforms = stdenv.lib.platforms.linux;
4141+ };
4242+}