about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/x11/xorg/imake-setup-hook.sh
blob: 351ffab34d0f02d7a9a29b556deb21fa58e1e421 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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