From d23305991c9f1108f019150cb6ea59acb320d031 Mon Sep 17 00:00:00 2001 From: "Arfonzo J. Coward" Date: Mon, 2 Dec 2013 23:47:56 +0000 Subject: [PATCH] Updated quassel recipe. Now builds on hrev46464 on gcc2h. Installs to $appDir/Quassel. --- net-irc/quassel/quassel-0.9.2.recipe | 60 ++++++++++++++++------------ 1 file changed, 35 insertions(+), 25 deletions(-) diff --git a/net-irc/quassel/quassel-0.9.2.recipe b/net-irc/quassel/quassel-0.9.2.recipe index fdd236a0e..5ce0db1f8 100644 --- a/net-irc/quassel/quassel-0.9.2.recipe +++ b/net-irc/quassel/quassel-0.9.2.recipe @@ -14,47 +14,57 @@ ARCHITECTURES="x86 x86_gcc2" SECONDARY_ARCHITECTURES="x86" PROVIDES=" - quassel = $portVersion + quassel${secondaryArchSuffix} = $portVersion + cmd:quassel${secondaryArchSuffix} + cmd:quasselcore${secondaryArchSuffix} + cmd:quasselclient${secondaryArchSuffix} " REQUIRES=" - haiku >= $haikuVersion + haiku${secondaryArchSuffix} >= $haikuVersion qtcore${secondaryArchSuffix} >= 4.8 " + +BUILD_PREREQUIRES=" + cmd:cmake + cmd:gcc${secondaryArchSuffix} + cmd:g++${secondaryArchSuffix} + cmd:make + " BUILD_REQUIRES=" - haiku_devel >= $haikuVersion - pkgconfig - qtcore${secondaryArchSuffix}_devel >= 4.8 - - cmd:cmake - cmd:gcc - cmd:g++ - cmd:gcc${secondaryArchSuffix} - cmd:g++${secondaryArchSuffix} - cmd:make + haiku${secondaryArchSuffix}_devel >= $haikuVersion + qtcore${secondaryArchSuffix}_devel >= 4.8 + cmd:pkg_config " - -#PATCHES=" -# " BUILD() -{ - echo "=========================" - echo "TODO: Building quassel..." - +{ pushd . mkdir -p build cd build - cmake `popd` - make - + cmake -DCMAKE_INSTALL_PREFIX=$prefix -DCMAKE_C_COMPILER="gcc" -DCMAKE_CXX_COMPILER="g++" `popd` + make cd `popd` } INSTALL() { - echo "===========================" - echo "TODO: Installing quassel..." - #make install + pushd . + cd build + # Optional: strip the binaries before installing. + echo "Stripping binaries ..." + strip quassel + strip quasselcore + strip quasselclient + + + echo "DEBUG: apps dir: ${appsDir}" + echo "Copying binaries to ${appsDir} ..." + mkdir -p ${appsDir}/Quassel + cp quassel ${appsDir}/Quassel + cp quasselcore ${appsDir}/Quassel + cp quasselclient ${appsDir}/Quassel + + cd `popd` }