libgpod: Add support for libplist v 2.2.0
This commit is contained in:
parent
c03300d284
commit
6e72d500c2
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, lib, fetchurl, gettext, perlPackages, intltool, pkgconfig, glib,
|
{ stdenv, lib, fetchurl, perlPackages, intltool, autoreconfHook,
|
||||||
libxml2, sqlite, zlib, sg3_utils, gdk-pixbuf, taglib,
|
pkg-config, glib, libxml2, sqlite, zlib, sg3_utils, gdk-pixbuf, taglib,
|
||||||
libimobiledevice,
|
libimobiledevice,
|
||||||
monoSupport ? false, mono, gtk-sharp-2_0
|
monoSupport ? false, mono, gtk-sharp-2_0
|
||||||
}:
|
}:
|
||||||
@ -15,11 +15,15 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
preConfigure = "configureFlagsArray=( --with-udev-dir=$out/lib/udev )";
|
postPatch = ''
|
||||||
|
# support libplist 2.2
|
||||||
|
substituteInPlace configure.ac --replace 'libplist >= 1.0' 'libplist-2.0 >= 2.2'
|
||||||
|
'';
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--without-hal"
|
"--without-hal"
|
||||||
"--enable-udev"
|
"--enable-udev"
|
||||||
|
"--with-udev-dir=${placeholder "out"}/lib/udev"
|
||||||
] ++ lib.optionals monoSupport [ "--with-mono" ];
|
] ++ lib.optionals monoSupport [ "--with-mono" ];
|
||||||
|
|
||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
@ -27,7 +31,7 @@ stdenv.mkDerivation rec {
|
|||||||
propagatedBuildInputs = [ glib libxml2 sqlite zlib sg3_utils
|
propagatedBuildInputs = [ glib libxml2 sqlite zlib sg3_utils
|
||||||
gdk-pixbuf taglib libimobiledevice ];
|
gdk-pixbuf taglib libimobiledevice ];
|
||||||
|
|
||||||
nativeBuildInputs = [ gettext intltool pkgconfig ]
|
nativeBuildInputs = [ autoreconfHook intltool pkg-config ]
|
||||||
++ (with perlPackages; [ perl XMLParser ])
|
++ (with perlPackages; [ perl XMLParser ])
|
||||||
++ lib.optionals monoSupport [ mono gtk-sharp-2_0 ];
|
++ lib.optionals monoSupport [ mono gtk-sharp-2_0 ];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user