2014-06-22 12:39:07 +02:00
|
|
|
{ stdenv, fetchurl, libogg, pkgconfig }:
|
2005-01-19 22:48:45 +01:00
|
|
|
|
2014-09-24 15:07:18 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2015-03-26 00:02:24 +01:00
|
|
|
name = "libvorbis-1.3.5";
|
2014-09-24 15:07:18 +02:00
|
|
|
|
2005-01-19 22:48:45 +01:00
|
|
|
src = fetchurl {
|
2012-02-08 20:54:16 +01:00
|
|
|
url = "http://downloads.xiph.org/releases/vorbis/${name}.tar.xz";
|
2015-03-26 00:02:24 +01:00
|
|
|
sha256 = "1lg1n3a6r41492r7in0fpvzc7909mc5ir9z0gd3qh2pz4yalmyal";
|
2005-01-19 22:48:45 +01:00
|
|
|
};
|
2009-01-20 10:50:05 +01:00
|
|
|
|
2015-05-02 07:02:24 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2015-05-02 22:54:30 +02:00
|
|
|
buildInputs = [ libogg ];
|
2010-08-01 16:33:43 +02:00
|
|
|
|
2014-06-13 00:53:21 +02:00
|
|
|
doCheck = true;
|
|
|
|
|
2015-05-02 23:12:53 +02:00
|
|
|
# Fix header reference
|
|
|
|
postInstall = ''
|
|
|
|
sed -i $out/include/vorbis/codec.h \
|
|
|
|
-e 's,#include <ogg/ogg.h>,#include "${libogg}/include/ogg/ogg.h",g'
|
|
|
|
'';
|
|
|
|
|
2014-06-13 00:53:21 +02:00
|
|
|
meta = with stdenv.lib; {
|
2010-08-01 16:33:43 +02:00
|
|
|
homepage = http://xiph.org/vorbis/;
|
2014-06-13 00:53:21 +02:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.emery ];
|
|
|
|
platforms = platforms.all;
|
2010-08-01 16:33:43 +02:00
|
|
|
};
|
2005-01-19 22:48:45 +01:00
|
|
|
}
|