mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
tweak quassel recipe
* make the requires more specific instead of depending on the whole qtcore package * enable parallel building
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user