summary refs log tree commit diff
path: root/pkgs/applications/video
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@gmail.com>2014-05-05 22:56:41 -0300
committerVladimír Čunát <vcunat@gmail.com>2014-05-13 12:28:47 +0200
commit64948222bab3abaefc57587eba25b2feebcd3c61 (patch)
tree59b4eef132c05cb54b6641993e14377a4072eb1e /pkgs/applications/video
parentb56e41aebe17462a663984dd8a73190582bf7f12 (diff)
downloadnixpkgs-64948222bab3abaefc57587eba25b2feebcd3c61.tar
nixpkgs-64948222bab3abaefc57587eba25b2feebcd3c61.tar.gz
nixpkgs-64948222bab3abaefc57587eba25b2feebcd3c61.tar.bz2
nixpkgs-64948222bab3abaefc57587eba25b2feebcd3c61.tar.lz
nixpkgs-64948222bab3abaefc57587eba25b2feebcd3c61.tar.xz
nixpkgs-64948222bab3abaefc57587eba25b2feebcd3c61.tar.zst
nixpkgs-64948222bab3abaefc57587eba25b2feebcd3c61.zip
Aegisub: update to 3.1.3 (close #2550)
New dependencies: icu, intltool, boost (default = 1.55), wxGTK 3.0
Fixes a bug on Boost detection
@vcunat: minor refactoring.
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r--pkgs/applications/video/aegisub/default.nix19
1 files changed, 11 insertions, 8 deletions
diff --git a/pkgs/applications/video/aegisub/default.nix b/pkgs/applications/video/aegisub/default.nix
index 3824582970f..41b25401367 100644
--- a/pkgs/applications/video/aegisub/default.nix
+++ b/pkgs/applications/video/aegisub/default.nix
@@ -4,6 +4,7 @@
 , mesa
 , libass, fftw, ffms
 , ffmpeg, pkgconfig, zlib # Undocumented (?) dependencies
+, icu, boost, intltool # New dependencies
 , spellChecking ? true, hunspell ? null
 , automationSupport ? true, lua ? null
 , openalSupport ? false, openal ? null
@@ -28,8 +29,10 @@ stdenv.mkDerivation rec {
     sha256 = "0n2y5cggayr8246p2cvrz0ajlhhvmzcgsp7nljnm21jypk15pspg";
   };
 
+  nativeBuildInputs = [ intltool ];
+
   buildInputs = with stdenv.lib;
-  [ libX11 gettext wxGTK libiconv fontconfig freetype mesa libass fftw ffms ffmpeg pkgconfig zlib ]
+  [ libX11 gettext wxGTK libiconv fontconfig freetype mesa libass fftw ffms ffmpeg pkgconfig zlib icu boost ]
   ++ optional spellChecking hunspell
   ++ optional automationSupport lua
   ++ optional openalSupport openal
@@ -38,13 +41,13 @@ stdenv.mkDerivation rec {
   ++ optional portaudioSupport portaudio
   ;
 
-  NIX_LDFLAGS = "-liconv -lavutil -lavformat -lavcodec -lswscale -lz -lm";
+  NIX_LDFLAGS = "-liconv -lavutil -lavformat -lavcodec -lswscale -lz -lm -lGL";
 
-  preConfigure = "cd aegisub";
+  configureFlags = "--with-boost-libdir=${boost}/lib/";
 
-  postInstall = "ln -s $out/bin/aegisub-3.0 $out/bin/aegisub";
+  postInstall = "ln -s $out/bin/aegisub-* $out/bin/aegisub";
 
-  meta = {
+  meta = with stdenv.lib; {
     description = "An advanced subtitle editor";
     longDescription = ''
       Aegisub is a free, cross-platform open source tool for creating and
@@ -53,12 +56,12 @@ stdenv.mkDerivation rec {
       built-in real-time video preview.
     '';
     homepage = http://www.aegisub.org/;
-    license = stdenv.lib.licenses.bsd3;
+    license = licenses.bsd3;
               # The Aegisub sources are itself BSD/ISC,
               # but they are linked against GPL'd softwares
               # - so the resulting program will be GPL
-    maintainers = [ stdenv.lib.maintainers.AndersonTorres ];
-    platforms = stdenv.lib.platforms.linux;
+    maintainers = [ maintainers.AndersonTorres ];
+    platforms = platforms.linux;
 
   };
 }