tweak quassel recipe

* make the requires more specific instead of depending on the whole
  qtcore package

* enable parallel building
This commit is contained in:
Chris Roberts
2013-12-03 14:50:02 -07:00
parent d8e6110763
commit f0430b0c54

View File

@@ -38,40 +38,46 @@ PROVIDES="
REQUIRES="
haiku${secondaryArchSuffix} >= $haikuVersion
qtcore${secondaryArchSuffix} >= 4.8
lib:libQtCore$secondaryArchSuffix >= 4.8
lib:libQtGui$secondaryArchSuffix >= 4.8
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:g++${secondaryArchSuffix}
cmd:make
cmd:qmake$secondaryArchSuffix
cmd:moc$secondaryArchSuffix
cmd:pkg_config
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
qtcore${secondaryArchSuffix}_devel >= 4.8
devel:libQtCore$secondaryArchSuffix >= 4.8
devel:libQtGui$secondaryArchSuffix >= 4.8
"
BUILD()
{
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX=$prefix -DCMAKE_C_COMPILER="gcc" -DCMAKE_CXX_COMPILER="g++" ..
make
cmake -DCMAKE_INSTALL_PREFIX=$prefix \
-DCMAKE_C_COMPILER="gcc" -DCMAKE_CXX_COMPILER="g++" \
-DCMAKE_BUILD_TYPE=Release ..
make $jobArgs
}
INSTALL()
{
cd build
# Optional: strip the binaries before installing.
# To be updated/removed whenever resources are added.
echo "Stripping binaries ..."
strip quassel
strip quasselcore
strip quasselclient
echo "Copying binaries to ${appsDir} ..."
mkdir -p ${appsDir}/Quassel
cp quassel ${appsDir}/Quassel