2014-10-23 13:45:01 -07:00
|
|
|
{stdenv, fetchurl, automake, libiconv, vanilla ? false}:
|
2004-03-09 02:45:01 -08:00
|
|
|
|
2012-01-20 17:29:17 -08:00
|
|
|
stdenv.mkDerivation (rec {
|
2015-09-29 16:12:06 -07:00
|
|
|
name = "pkg-config-0.29";
|
2008-03-06 08:22:24 -08:00
|
|
|
|
2004-03-09 02:45:01 -08:00
|
|
|
setupHook = ./setup-hook.sh;
|
2008-03-06 08:22:24 -08:00
|
|
|
|
2003-11-06 07:24:19 -08:00
|
|
|
src = fetchurl {
|
2008-10-12 12:15:29 -07:00
|
|
|
url = "http://pkgconfig.freedesktop.org/releases/${name}.tar.gz";
|
2015-09-29 16:12:06 -07:00
|
|
|
sha256 = "0sq09a39wj4cxf8l2jvkq067g08ywfma4v6nhprnf351s82pfl68";
|
2003-11-06 07:24:19 -08:00
|
|
|
};
|
2007-12-01 12:29:42 -08:00
|
|
|
|
2015-06-19 12:56:20 -07:00
|
|
|
buildInputs = stdenv.lib.optional (stdenv.isCygwin || stdenv.isDarwin) libiconv;
|
2014-10-23 13:45:01 -07:00
|
|
|
|
2014-05-26 03:43:04 -07:00
|
|
|
configureFlags = [ "--with-internal-glib" ];
|
|
|
|
|
2014-10-23 13:45:01 -07:00
|
|
|
patches = (if vanilla then [] else [
|
2008-10-13 05:51:04 -07:00
|
|
|
# Process Requires.private properly, see
|
|
|
|
# http://bugs.freedesktop.org/show_bug.cgi?id=4738.
|
|
|
|
./requires-private.patch
|
2014-10-23 13:45:01 -07:00
|
|
|
]) ++ stdenv.lib.optional stdenv.isCygwin ./2.36.3-not-win32.patch;
|
2008-10-13 05:51:04 -07:00
|
|
|
|
2008-03-06 08:22:24 -08:00
|
|
|
meta = {
|
|
|
|
description = "A tool that allows packages to find out information about other packages";
|
|
|
|
homepage = http://pkg-config.freedesktop.org/wiki/;
|
2012-01-28 06:39:56 -08:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2008-03-07 07:40:07 -08:00
|
|
|
};
|
|
|
|
|
2012-01-20 17:29:17 -08:00
|
|
|
} // (if stdenv.system == "mips64el-linux" then
|
|
|
|
{
|
|
|
|
preConfigure = ''
|
|
|
|
cp -v ${automake}/share/automake*/config.{sub,guess} .
|
|
|
|
'';
|
|
|
|
} else {}))
|