about summary refs log tree commit diff
path: root/pkgs/servers/x11/xorg/imake-setup-hook.sh
blob: 10f54198f7fbc5dd3e3417ee878209ab9b33d7a8 (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