summary refs log tree commit diff
path: root/pkgs/tools/networking/fuppes/default.nix
blob: 711c3516bda2f434fde48f689a40bc97908a542a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{stdenv, fetchurl, pkgconfig, pcre, libxml2, sqlite, ffmpeg, imagemagick,
exiv2, mp4v2, lame, libvorbis, flac, libmad, faad2}:

stdenv.mkDerivation rec {
  name = "fuppes-0.660";
  src = fetchurl {
    url = mirror://sourceforge/project/fuppes/fuppes/SVN-660/fuppes-0.660.tar.gz;
    sha256 = "1c385b29878927e5f1e55ae2c9ad284849d1522d9517a88e34feb92bd5195173";
  };

  patches = [
    ./fuppes-faad-exanpse-backward-symbols-macro.patch
  ];

  buildInputs = [
    pkgconfig pcre libxml2 sqlite ffmpeg imagemagick exiv2 mp4v2 lame
    libvorbis flac libmad faad2
  ];

  configureFlags = [
    "--enable-ffmpegthumbnailer"
    "--enable-magickwand"
    "--enable-exiv2"
    "--enable-transcoder-ffmpeg"
    "--enable-mp4v2"
    "--enable-lame"
    "--enable-vorbis"
    "--enable-flac"
    "--enable-mad"
    "--enable-faad"
  ];

  postFixup = ''
    patchelf --set-rpath "$(patchelf --print-rpath $out/bin/fuppes):${faad2}/lib" $out/bin/fuppes
    patchelf --set-rpath "$(patchelf --print-rpath $out/bin/fuppesd):${faad2}/lib" $out/bin/fuppesd
  '';

  meta = {
    description = "UPnP A/V Media Server";
    longDescription = ''
      FUPPES is a free, multiplatform UPnP A/V Media Server.

      FUPPES supports a wide range of UPnP MediaRenderers as well as
      on-the-fly transcoding of various audio, video and image formats.

      FUPPES also includes basic DLNA support.
    '';
    homepage = http://fuppes.ulrich-voelkel.de/;
    license = stdenv.lib.licenses.gpl2;

    maintainers = [ stdenv.lib.maintainers.pierron ];
    platforms = stdenv.lib.platforms.all;
  };
}