forked from mirrors/nixpkgs
aegisub: ffmpeg_3 -> ffmpeg
And refactor.
This commit is contained in:
parent
543e84a00f
commit
6d365578bf
|
@ -3,22 +3,22 @@
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
, libX11
|
, boost
|
||||||
, wxGTK
|
, ffmpeg
|
||||||
, libiconv
|
, ffms
|
||||||
|
, fftw
|
||||||
, fontconfig
|
, fontconfig
|
||||||
, freetype
|
, freetype
|
||||||
, libGLU
|
|
||||||
, libGL
|
|
||||||
, libass
|
|
||||||
, fftw
|
|
||||||
, ffms
|
|
||||||
, ffmpeg_3
|
|
||||||
, pkg-config
|
|
||||||
, zlib
|
|
||||||
, icu
|
, icu
|
||||||
, boost
|
|
||||||
, intltool
|
, intltool
|
||||||
|
, libGL
|
||||||
|
, libGLU
|
||||||
|
, libX11
|
||||||
|
, libass
|
||||||
|
, libiconv
|
||||||
|
, pkg-config
|
||||||
|
, wxGTK
|
||||||
|
, zlib
|
||||||
|
|
||||||
, spellcheckSupport ? true
|
, spellcheckSupport ? true
|
||||||
, hunspell ? null
|
, hunspell ? null
|
||||||
|
@ -46,71 +46,75 @@ assert alsaSupport -> (alsaLib != null);
|
||||||
assert pulseaudioSupport -> (libpulseaudio != null);
|
assert pulseaudioSupport -> (libpulseaudio != null);
|
||||||
assert portaudioSupport -> (portaudio != null);
|
assert portaudioSupport -> (portaudio != null);
|
||||||
|
|
||||||
with lib;
|
let
|
||||||
stdenv.mkDerivation
|
inherit (lib) optional;
|
||||||
rec {
|
in
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
pname = "aegisub";
|
pname = "aegisub";
|
||||||
version = "3.2.2";
|
version = "3.2.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://ftp.aegisub.org/pub/releases/${pname}-${version}.tar.xz";
|
url = "http://ftp.aegisub.org/pub/releases/${pname}-${version}.tar.xz";
|
||||||
sha256 = "11b83qazc8h0iidyj1rprnnjdivj1lpphvpa08y53n42bfa36pn5";
|
hash = "sha256-xV4zlFuC2FE8AupueC8Ncscmrc03B+lbjAAi9hUeaIU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
# Compatibility with ICU 59
|
# Compatibility with ICU 59
|
||||||
(fetchpatch {
|
(fetchpatch {
|
||||||
url = "https://github.com/Aegisub/Aegisub/commit/dd67db47cb2203e7a14058e52549721f6ff16a49.patch";
|
url = "https://github.com/Aegisub/Aegisub/commit/dd67db47cb2203e7a14058e52549721f6ff16a49.patch";
|
||||||
sha256 = "07qqlckiyy64lz8zk1as0vflk9kqnjb340420lp9f0xj93ncssj7";
|
sha256 = "sha256-R2rN7EiyA5cuBYIAMpa0eKZJ3QZahfnRp8R4HyejGB8=";
|
||||||
})
|
})
|
||||||
|
|
||||||
# Compatbility with Boost 1.69
|
# Compatbility with Boost 1.69
|
||||||
(fetchpatch {
|
(fetchpatch {
|
||||||
url = "https://github.com/Aegisub/Aegisub/commit/c3c446a8d6abc5127c9432387f50c5ad50012561.patch";
|
url = "https://github.com/Aegisub/Aegisub/commit/c3c446a8d6abc5127c9432387f50c5ad50012561.patch";
|
||||||
sha256 = "1n8wmjka480j43b1pr30i665z8hdy6n3wdiz1ls81wyv7ai5yygf";
|
sha256 = "sha256-7nlfojrb84A0DT82PqzxDaJfjIlg5BvWIBIgoqasHNk=";
|
||||||
})
|
})
|
||||||
|
|
||||||
# Compatbility with make 4.3
|
# Compatbility with make 4.3
|
||||||
(fetchpatch {
|
(fetchpatch {
|
||||||
url = "https://github.com/Aegisub/Aegisub/commit/6bd3f4c26b8fc1f76a8b797fcee11e7611d59a39.patch";
|
url = "https://github.com/Aegisub/Aegisub/commit/6bd3f4c26b8fc1f76a8b797fcee11e7611d59a39.patch";
|
||||||
sha256 = "1s9cc5rikrqb9ivjbag4b8yxcyjsmmmw744394d5xq8xi4k12vxc";
|
sha256 = "sha256-rG8RJokd4V4aSYOQw2utWnrWPVrkqSV3TAvnGXNhLOk=";
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkg-config
|
|
||||||
intltool
|
intltool
|
||||||
|
pkg-config
|
||||||
];
|
];
|
||||||
|
buildInputs = [
|
||||||
buildInputs = with lib; [
|
boost
|
||||||
libX11
|
ffmpeg
|
||||||
wxGTK
|
ffms
|
||||||
|
fftw
|
||||||
fontconfig
|
fontconfig
|
||||||
freetype
|
freetype
|
||||||
libGLU
|
|
||||||
libGL
|
|
||||||
libass
|
|
||||||
fftw
|
|
||||||
ffms
|
|
||||||
ffmpeg_3
|
|
||||||
zlib
|
|
||||||
icu
|
icu
|
||||||
boost
|
libGL
|
||||||
|
libGLU
|
||||||
|
libX11
|
||||||
|
libass
|
||||||
libiconv
|
libiconv
|
||||||
|
wxGTK
|
||||||
|
zlib
|
||||||
]
|
]
|
||||||
++ optional spellcheckSupport hunspell
|
++ optional alsaSupport alsaLib
|
||||||
++ optional automationSupport lua
|
++ optional automationSupport lua
|
||||||
++ optional openalSupport openal
|
++ optional openalSupport openal
|
||||||
++ optional alsaSupport alsaLib
|
++ optional portaudioSupport portaudio
|
||||||
++ optional pulseaudioSupport libpulseaudio
|
++ optional pulseaudioSupport libpulseaudio
|
||||||
++ optional portaudioSupport portaudio
|
++ optional spellcheckSupport hunspell
|
||||||
;
|
;
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
hardeningDisable = [ "bindnow" "relro" ];
|
hardeningDisable = [
|
||||||
|
"bindnow"
|
||||||
|
"relro"
|
||||||
|
];
|
||||||
|
|
||||||
# compat with icu61+ https://github.com/unicode-org/icu/blob/release-64-2/icu4c/readme.html#L554
|
# compat with icu61+
|
||||||
|
# https://github.com/unicode-org/icu/blob/release-64-2/icu4c/readme.html#L554
|
||||||
CXXFLAGS = [ "-DU_USING_ICU_NAMESPACE=1" ];
|
CXXFLAGS = [ "-DU_USING_ICU_NAMESPACE=1" ];
|
||||||
|
|
||||||
# this is fixed upstream though not yet in an officially released version,
|
# this is fixed upstream though not yet in an officially released version,
|
||||||
|
@ -119,7 +123,8 @@ stdenv.mkDerivation
|
||||||
|
|
||||||
postInstall = "ln -s $out/bin/aegisub-* $out/bin/aegisub";
|
postInstall = "ln -s $out/bin/aegisub-* $out/bin/aegisub";
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/Aegisub/Aegisub";
|
||||||
description = "An advanced subtitle editor";
|
description = "An advanced subtitle editor";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
Aegisub is a free, cross-platform open source tool for creating and
|
Aegisub is a free, cross-platform open source tool for creating and
|
||||||
|
@ -127,12 +132,11 @@ stdenv.mkDerivation
|
||||||
audio, and features many powerful tools for styling them, including a
|
audio, and features many powerful tools for styling them, including a
|
||||||
built-in real-time video preview.
|
built-in real-time video preview.
|
||||||
'';
|
'';
|
||||||
homepage = "http://www.aegisub.org/";
|
# The Aegisub sources are itself BSD/ISC, but they are linked against GPL'd
|
||||||
# The Aegisub sources are itself BSD/ISC,
|
# softwares - so the resulting program will be GPL
|
||||||
# but they are linked against GPL'd softwares
|
|
||||||
# - so the resulting program will be GPL
|
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = [ maintainers.AndersonTorres ];
|
maintainers = [ maintainers.AndersonTorres ];
|
||||||
platforms = [ "i686-linux" "x86_64-linux" ];
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
# TODO [ AndersonTorres ]: update to fork release
|
||||||
|
|
Loading…
Reference in a new issue