mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
add projectM 2.1.0
This commit is contained in:
parent
4918c1436b
commit
531090d5de
2 changed files with 53 additions and 0 deletions
51
pkgs/applications/audio/projectm/default.nix
Normal file
51
pkgs/applications/audio/projectm/default.nix
Normal file
|
@ -0,0 +1,51 @@
|
|||
{ stdenv, fetchurl, pkgconfig, cmake
|
||||
, glew, ftgl, ttf_bitstream_vera
|
||||
, withQt ? true, qt4
|
||||
, withLibvisual ? false, libvisual, SDL
|
||||
, withJack ? false, jackaudio
|
||||
, withPulseAudio ? true, pulseaudio
|
||||
}:
|
||||
|
||||
assert withJack -> withQt;
|
||||
assert withPulseAudio -> withQt;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "projectm-2.1.0";
|
||||
|
||||
meta = {
|
||||
description = "Music Visualizer";
|
||||
homepage = "http://projectm.sourceforge.net/";
|
||||
license = stdenv.lib.licenses.lgpl21Plus;
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
};
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/projectm/2.1.0/projectM-complete-2.1.0-Source.tar.gz";
|
||||
sha256 = "1vh6jk68a0jdb6qwppb6f8cbgmhnv2ba3bcavzfd6sq06gq08cji";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
sed -i 's:''${LIBVISUAL_PLUGINSDIR}:''${CMAKE_INSTALL_PREFIX}/lib/libvisual-0.4:' \
|
||||
src/projectM-libvisual/CMakeLists.txt
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ pkgconfig cmake ];
|
||||
|
||||
cmakeFlags = ''
|
||||
-DprojectM_FONT_MENU=${ttf_bitstream_vera}/share/fonts/truetype/VeraMono.ttf
|
||||
-DprojectM_FONT_TITLE=${ttf_bitstream_vera}/share/fonts/truetype/Vera.ttf
|
||||
-DINCLUDE-PROJECTM-TEST=OFF
|
||||
-DINCLUDE-PROJECTM-QT=${if withQt then "ON" else "OFF"}
|
||||
-DINCLUDE-PROJECTM-LIBVISUAL=${if withLibvisual then "ON" else "OFF"}
|
||||
-DINCLUDE-PROJECTM-JACK=${if withJack then "ON" else "OFF"}
|
||||
-DINCLUDE-PROJECTM-PULSEAUDIO=${if withPulseAudio then "ON" else "OFF"}
|
||||
'';
|
||||
|
||||
buildInputs = with stdenv.lib;
|
||||
[ glew ftgl ]
|
||||
++ optional withQt qt4
|
||||
++ optionals withLibvisual [ libvisual SDL ]
|
||||
++ optional withJack jackaudio
|
||||
++ optional withPulseAudio pulseaudio
|
||||
;
|
||||
}
|
|
@ -1670,6 +1670,8 @@ let
|
|||
|
||||
prey-bash-client = callPackage ../tools/security/prey { };
|
||||
|
||||
projectm = callPackage ../applications/audio/projectm { };
|
||||
|
||||
proxychains = callPackage ../tools/networking/proxychains { };
|
||||
|
||||
proxytunnel = callPackage ../tools/misc/proxytunnel { };
|
||||
|
|
Loading…
Reference in a new issue