nixpkgs/pkgs/applications/video/mythtv/builder.sh
Eelco Dolstra c556a6ea46 * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless
function, so obsolete it.

svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
2012-01-18 20:16:00 +00:00

26 lines
394 B
Bash

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