2013-12-22 18:37:41 +01:00
|
|
|
{ stdenv, fetchurl
|
|
|
|
, libX11, gettext, wxGTK
|
|
|
|
, libiconv, fontconfig, freetype
|
|
|
|
, mesa
|
|
|
|
, libass, fftw, ffms
|
|
|
|
, ffmpeg, pkgconfig, zlib # Undocumented (?) dependencies
|
2014-05-06 03:56:41 +02:00
|
|
|
, icu, boost, intltool # New dependencies
|
2013-12-22 18:37:41 +01:00
|
|
|
, spellChecking ? true, hunspell ? null
|
2014-03-22 10:01:42 +01:00
|
|
|
, automationSupport ? true, lua ? null
|
2013-12-22 18:37:41 +01:00
|
|
|
, openalSupport ? false, openal ? null
|
|
|
|
, alsaSupport ? true, alsaLib ? null
|
|
|
|
, pulseaudioSupport ? true, pulseaudio ? null
|
2014-09-10 20:59:54 +02:00
|
|
|
, portaudioSupport ? false, portaudio ? null }:
|
2013-12-22 18:37:41 +01:00
|
|
|
|
|
|
|
assert spellChecking -> (hunspell != null);
|
|
|
|
assert automationSupport -> (lua != null);
|
|
|
|
assert openalSupport -> (openal != null);
|
|
|
|
assert alsaSupport -> (alsaLib != null);
|
|
|
|
assert pulseaudioSupport -> (pulseaudio != null);
|
|
|
|
assert portaudioSupport -> (portaudio != null);
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "aegisub-${version}";
|
2014-09-24 05:36:56 +02:00
|
|
|
version = "3.2.1";
|
2013-12-22 18:37:41 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://ftp.aegisub.org/pub/releases/${name}.tar.xz";
|
2014-09-24 05:36:56 +02:00
|
|
|
sha256 = "1p7qdnxyyyrlpvxdrrp15b5967d7bzpjl3vdy0q66g4aabr2h6ln";
|
2013-12-22 18:37:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = with stdenv.lib;
|
2014-09-24 05:36:56 +02:00
|
|
|
[ intltool libX11 gettext wxGTK libiconv fontconfig freetype mesa libass fftw ffms ffmpeg pkgconfig zlib icu boost boost.lib ]
|
2013-12-22 18:37:41 +01:00
|
|
|
++ optional spellChecking hunspell
|
|
|
|
++ optional automationSupport lua
|
|
|
|
++ optional openalSupport openal
|
|
|
|
++ optional alsaSupport alsaLib
|
|
|
|
++ optional pulseaudioSupport pulseaudio
|
|
|
|
++ optional portaudioSupport portaudio
|
|
|
|
;
|
|
|
|
|
2014-05-06 03:56:41 +02:00
|
|
|
NIX_LDFLAGS = "-liconv -lavutil -lavformat -lavcodec -lswscale -lz -lm -lGL";
|
2014-03-22 10:01:42 +01:00
|
|
|
|
2014-09-19 19:56:08 +02:00
|
|
|
configureFlags = "--with-boost-libdir=${boost.lib}/lib/";
|
2014-03-22 10:01:42 +01:00
|
|
|
|
2014-05-06 03:56:41 +02:00
|
|
|
postInstall = "ln -s $out/bin/aegisub-* $out/bin/aegisub";
|
2014-03-22 10:01:42 +01:00
|
|
|
|
2014-05-06 03:56:41 +02:00
|
|
|
meta = with stdenv.lib; {
|
2013-12-22 18:37:41 +01:00
|
|
|
description = "An advanced subtitle editor";
|
|
|
|
longDescription = ''
|
|
|
|
Aegisub is a free, cross-platform open source tool for creating and
|
|
|
|
modifying subtitles. Aegisub makes it quick and easy to time subtitles to
|
|
|
|
audio, and features many powerful tools for styling them, including a
|
|
|
|
built-in real-time video preview.
|
|
|
|
'';
|
|
|
|
homepage = http://www.aegisub.org/;
|
2014-05-06 03:56:41 +02:00
|
|
|
license = licenses.bsd3;
|
2014-03-22 10:01:42 +01:00
|
|
|
# The Aegisub sources are itself BSD/ISC,
|
2014-03-22 05:12:48 +01:00
|
|
|
# but they are linked against GPL'd softwares
|
|
|
|
# - so the resulting program will be GPL
|
2014-05-06 03:56:41 +02:00
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
|
|
|
platforms = platforms.linux;
|
2013-12-22 18:37:41 +01:00
|
|
|
};
|
|
|
|
}
|