summary refs log tree commit diff
path: root/pkgs/development/libraries/Xaw3d/builder.sh
blob: afd640b625d6174f3c02f69f54c3ae190b68587e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
source $stdenv/setup

configurePhase() {
    cd lib/Xaw3d
    (mkdir X11 && cd X11 && ln -fs .. Xaw3d)
    xmkmf
}

buildPhase() {
    make depend $makeFlags
    make $makeFlags
}

installPhase() {
    make install SHLIBDIR=$out/lib USRLIBDIR=$out/lib INCDIR=$out/include
    cd $out/include/X11 && ln -s Xaw3d Xaw

    ensureDir "$out/nix-support"
    echo "$propagatedBuildInputs" > "$out/nix-support/propagated-build-inputs"
}

makeFlags="CDEBUGFLAGS=" # !!! awful hack

genericBuild