imake: add setup hook
This commit is contained in:
parent
801b375925
commit
613e262fc2
@ -1 +0,0 @@
|
|||||||
export IMAKECPP="@tradcpp@/bin/tradcpp"
|
|
19
pkgs/servers/x11/xorg/imake-setup-hook.sh
Normal file
19
pkgs/servers/x11/xorg/imake-setup-hook.sh
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
export IMAKECPP="@tradcpp@/bin/tradcpp"
|
||||||
|
|
||||||
|
imakeConfigurePhase() {
|
||||||
|
runHook preConfigure
|
||||||
|
|
||||||
|
echoCmd 'configuring with imake'
|
||||||
|
|
||||||
|
if [ -z "${imakefile:-}" -a ! -e Imakefile ]; then
|
||||||
|
echo "no Imakefile, doing nothing"
|
||||||
|
else
|
||||||
|
xmkmf -a
|
||||||
|
fi
|
||||||
|
|
||||||
|
runHook postConfigure
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ -z "$dontUseImakeConfigure" -a -z "$configurePhase" ]; then
|
||||||
|
configurePhase=imakeConfigurePhase
|
||||||
|
fi
|
@ -63,12 +63,12 @@ self: super:
|
|||||||
inherit (self) xorgcffiles;
|
inherit (self) xorgcffiles;
|
||||||
x11BuildHook = ./imake.sh;
|
x11BuildHook = ./imake.sh;
|
||||||
patches = [./imake.patch ./imake-cc-wrapper-uberhack.patch];
|
patches = [./imake.patch ./imake-cc-wrapper-uberhack.patch];
|
||||||
setupHook = if stdenv.isDarwin then ./darwin-imake-setup-hook.sh else null;
|
setupHook = ./imake-setup-hook.sh;
|
||||||
CFLAGS = [ "-DIMAKE_COMPILETIME_CPP=\\\"${if stdenv.isDarwin
|
CFLAGS = [ ''-DIMAKE_COMPILETIME_CPP='"${if stdenv.isDarwin
|
||||||
then "${tradcpp}/bin/cpp"
|
then "${tradcpp}/bin/cpp"
|
||||||
else "gcc"}\\\""
|
else "gcc"}"' ''
|
||||||
];
|
];
|
||||||
tradcpp = if stdenv.isDarwin then tradcpp else null;
|
inherit tradcpp;
|
||||||
});
|
});
|
||||||
|
|
||||||
mkfontdir = super.mkfontdir.overrideAttrs (attrs: {
|
mkfontdir = super.mkfontdir.overrideAttrs (attrs: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user