nixpkgs/pkgs/applications/video/mythtv/builder.sh
Eelco Dolstra 09ab596e0f * Remove calls to fail().
svn path=/nixpkgs/branches/stdenv-updates/; revision=11690
2008-04-23 07:34:20 +00:00

28 lines
446 B
Bash

source $stdenv/setup
# Hack - MythTV's configure searches LD_LIBRARY_PATH for its
# dependencies.
for i in $buildInputs; do
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH${LD_LIBRARY_PATH:+:}$i/lib
done
echo $LD_LIBRARY_PATH
buildPhase=myBuilder
myBuilder() {
qmake mythtv.pro
make
}
postInstall=postInstall
postInstall() {
sqlDir="$out/share/mythtv/sql"
ensureDir $sqlDir
cp -p ./database/mc.sql $sqlDir/
}
genericBuild