mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
treewide: Make explicit that 'dev' output of libX11 is used
This commit is contained in:
parent
7fb29bfa73
commit
c857552da8
@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
|
|||||||
echo "patching makefiles..."
|
echo "patching makefiles..."
|
||||||
for i in Makefile src/Makefile server/Makefile
|
for i in Makefile src/Makefile server/Makefile
|
||||||
do
|
do
|
||||||
sed -i "$i" -e "s|/usr/X11R6|${libX11}|g ; s|-lICE|-lX11 -lICE|g"
|
sed -i "$i" -e "s|/usr/X11R6|${libX11.dev}|g ; s|-lICE|-lX11 -lICE|g"
|
||||||
done '';
|
done '';
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
NIX_CFLAGS_COMPILE = [
|
NIX_CFLAGS_COMPILE = [
|
||||||
"-I${xproto}/include/X11"
|
"-I${xproto}/include/X11"
|
||||||
"-I${libX11}/include/X11"
|
"-I${libX11.dev}/include/X11"
|
||||||
"-I${libXcursor}/include/X11"
|
"-I${libXcursor}/include/X11"
|
||||||
"-I${SDL}/include/SDL"
|
"-I${SDL}/include/SDL"
|
||||||
"-I${SDL2}/include/SDL2"
|
"-I${SDL2}/include/SDL2"
|
||||||
|
@ -12,7 +12,7 @@ stdenv.mkDerivation {
|
|||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
tar xf ${mupen64plus.src}
|
tar xf ${mupen64plus.src}
|
||||||
APIDIR=$(eval echo `pwd`/mupen64plus*/source/mupen64plus-core/src/api)
|
APIDIR=$(eval echo `pwd`/mupen64plus*/source/mupen64plus-core/src/api)
|
||||||
export CXXFLAGS="-I${libX11}/include/X11 -DLIBDIR=\\\"${mupen64plus}/lib/\\\""
|
export CXXFLAGS="-I${libX11.dev}/include/X11 -DLIBDIR=\\\"${mupen64plus}/lib/\\\""
|
||||||
export LDFLAGS="-lwx_gtk2u_adv-2.9"
|
export LDFLAGS="-lwx_gtk2u_adv-2.9"
|
||||||
python waf configure --mupenapi=$APIDIR --wxconfig=`type -P wx-config` --prefix=$out
|
python waf configure --mupenapi=$APIDIR --wxconfig=`type -P wx-config` --prefix=$out
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user