Merge pull request #91457 from matthewbauer/prefixed-pkg-config
Fixes from prefixed pkg config
This commit is contained in:
commit
ae1584dc98
@ -42,9 +42,14 @@ stdenv.mkDerivation rec {
|
|||||||
substituteInPlace include/SDL_opengl_glext.h \
|
substituteInPlace include/SDL_opengl_glext.h \
|
||||||
--replace "typedef ptrdiff_t GLsizeiptr;" "typedef signed long int khronos_ssize_t; typedef khronos_ssize_t GLsizeiptr;" \
|
--replace "typedef ptrdiff_t GLsizeiptr;" "typedef signed long int khronos_ssize_t; typedef khronos_ssize_t GLsizeiptr;" \
|
||||||
--replace "typedef ptrdiff_t GLintptr;" "typedef signed long int khronos_intptr_t; typedef khronos_intptr_t GLintptr;"
|
--replace "typedef ptrdiff_t GLintptr;" "typedef signed long int khronos_intptr_t; typedef khronos_intptr_t GLintptr;"
|
||||||
|
|
||||||
|
substituteInPlace configure \
|
||||||
|
--replace 'WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`' 'WAYLAND_SCANNER=`pkg-config --variable=wayland_scanner wayland-scanner`'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
depsBuildBuild = [ pkgconfig ];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkgconfig wayland ];
|
||||||
|
|
||||||
propagatedBuildInputs = dlopenPropagatedBuildInputs;
|
propagatedBuildInputs = dlopenPropagatedBuildInputs;
|
||||||
|
|
||||||
|
@ -23,6 +23,11 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0128n7jlshw4bpx0vg8lwj8qwdisjxi7mvniwfafgnkzzrfrpaap";
|
sha256 = "0128n7jlshw4bpx0vg8lwj8qwdisjxi7mvniwfafgnkzzrfrpaap";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
prePatch = ''
|
||||||
|
substituteInPlace configure \
|
||||||
|
--replace pkg-config "$PKG_CONFIG"
|
||||||
|
'';
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./no-mkdir-localstatedir.patch
|
./no-mkdir-localstatedir.patch
|
||||||
(fetchpatch {
|
(fetchpatch {
|
||||||
|
@ -23,7 +23,8 @@ stdenv.mkDerivation rec {
|
|||||||
"STRIP="
|
"STRIP="
|
||||||
"prefix=$(out)"
|
"prefix=$(out)"
|
||||||
"moduledir=$(out)/lib/modules"
|
"moduledir=$(out)/lib/modules"
|
||||||
] ++ stdenv.lib.optionals stdenv.isDarwin [ "CC=cc" ];
|
"CC=${stdenv.cc.targetPrefix}cc"
|
||||||
|
];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--enable-overlays"
|
"--enable-overlays"
|
||||||
|
@ -12,9 +12,9 @@ stdenv.mkDerivation rec {
|
|||||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||||
nativeBuildInputs = [ perl ];
|
nativeBuildInputs = [ perl ];
|
||||||
|
|
||||||
buildInputs = stdenv.lib.optional libunwind.supportsHost libunwind; # support -k
|
buildInputs = [ perl.out ] ++ stdenv.lib.optional libunwind.supportsHost libunwind; # support -k
|
||||||
|
|
||||||
postPatch = "patchShebangs strace-graph";
|
postPatch = "patchShebangs --host strace-graph";
|
||||||
|
|
||||||
configureFlags = stdenv.lib.optional (!stdenv.hostPlatform.isx86) "--enable-mpers=check";
|
configureFlags = stdenv.lib.optional (!stdenv.hostPlatform.isx86) "--enable-mpers=check";
|
||||||
|
|
||||||
|
@ -43,9 +43,6 @@ stdenv.mkDerivation rec {
|
|||||||
libXdmcp libXext libXxf86vm mesa udev
|
libXdmcp libXext libXxf86vm mesa udev
|
||||||
wayland libxkbcommon ];
|
wayland libxkbcommon ];
|
||||||
|
|
||||||
# we use prefix-less pkg-config
|
|
||||||
PKG_CONF_PATH = "pkg-config";
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
configureFlags = stdenv.lib.optionals stdenv.isLinux [ "--enable-kms" "--enable-egl" ];
|
configureFlags = stdenv.lib.optionals stdenv.isLinux [ "--enable-kms" "--enable-egl" ];
|
||||||
|
@ -31,7 +31,9 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
patchShebangs utils/
|
patchShebangs utils/
|
||||||
substituteInPlace Makefile --replace ldconfig true
|
substituteInPlace Makefile \
|
||||||
|
--replace ldconfig true \
|
||||||
|
--replace pkg-config $PKG_CONFIG
|
||||||
sed -i crda.c \
|
sed -i crda.c \
|
||||||
-e "/\/usr\/.*\/regulatory.bin/d" \
|
-e "/\/usr\/.*\/regulatory.bin/d" \
|
||||||
-e "s|/lib/crda|${wireless-regdb}/lib/crda|g"
|
-e "s|/lib/crda|${wireless-regdb}/lib/crda|g"
|
||||||
|
@ -61,6 +61,11 @@ stdenv.mkDerivation rec {
|
|||||||
++ lib.optional zeroconfSupport avahi
|
++ lib.optional zeroconfSupport avahi
|
||||||
);
|
);
|
||||||
|
|
||||||
|
prePatch = ''
|
||||||
|
substituteInPlace bootstrap.sh \
|
||||||
|
--replace pkg-config $PKG_CONFIG
|
||||||
|
'';
|
||||||
|
|
||||||
autoreconfPhase = ''
|
autoreconfPhase = ''
|
||||||
# Performs an autoreconf
|
# Performs an autoreconf
|
||||||
patchShebangs bootstrap.sh
|
patchShebangs bootstrap.sh
|
||||||
|
@ -13822,6 +13822,10 @@ let
|
|||||||
sha256 = "19nf4xn9xhyd0sd2az9iliqldjj0k6ah2dmkyqyvq4rp2d9k5jgb";
|
sha256 = "19nf4xn9xhyd0sd2az9iliqldjj0k6ah2dmkyqyvq4rp2d9k5jgb";
|
||||||
});
|
});
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace Makefile.PL --replace pkg-config $PKG_CONFIG
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "http://www.freedesktop.org/wiki/Software/dbus";
|
homepage = "http://www.freedesktop.org/wiki/Software/dbus";
|
||||||
description = "Extension for the DBus bindings";
|
description = "Extension for the DBus bindings";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user