ba6f269bf5
* MythTV: the setup program works :-). * Added XmlTV. This requires a huge number of Perl modules, so... * Added a generic builder for Perl modules. I'm lazy so the modules are defined directly in all-packages-generic.nix. The generic builder also patches Perl scripts to include a hard-coded Perl module search path (i.e., similar to an RPATH in ELF executables). svn path=/nixpkgs/trunk/; revision=2083
23 lines
316 B
Bash
23 lines
316 B
Bash
. $stdenv/setup
|
|
|
|
export QTDIR=$qt3
|
|
|
|
|
|
buildPhase=myBuilder
|
|
myBuilder() {
|
|
qmake mythtv.pro || fail
|
|
make || fail
|
|
}
|
|
|
|
|
|
postInstall=postInstall
|
|
postInstall() {
|
|
sqlDir="$out/share/mythtv/sql"
|
|
ensureDir $sqlDir
|
|
cp -p ./database/mc.sql $sqlDir/
|
|
cp -p ./setup/setup $out/bin/mythsetup
|
|
}
|
|
|
|
|
|
genericBuild
|