Files
haikuports/net-im/qutim/qutim-0.3.3.recipe
2017-12-07 13:58:28 +03:00

126 lines
4.5 KiB
Bash

SUMMARY="A multi-protocol instant messenger"
DESCRIPTION="qutIM is an open source and free multiprotocol instant \
messaging client based on Qt. It currently supports the protocols for \
ICQ, Jabber, Mail.Ru, IRC and VKontakte. With qutIM you can send and receive \
messages, participate in group conferences, make video and audio calls and \
write to different microblogs and social networks.
qutIM is extremely extendible. The suitable API and well documented code \
makes it easy to write plugins in C++/Qt or Javascript."
HOMEPAGE="http://www.qutim.org"
COPYRIGHT="2008-2015 by qutim.org team"
LICENSE="GNU GPL v3"
REVISION="3"
SOURCE_URI="https://github.com/euroelessar/qutim/archive/4f4a25247688417f58af34fdd0aa6f70950b8879.tar.gz"
SOURCE_DIR="qutim-4f4a25247688417f58af34fdd0aa6f70950b8879"
CHECKSUM_SHA256="b7e3f509b1a35edc2f87630b2c6ba1d43c7fb9d08e407c33fa8776a0b6298226"
SOURCE_URI_2="https://github.com/euroelessar/k8json/archive/567f28e7bf76305153a61170fafafdd0db3487cb.tar.gz"
SOURCE_DIR_2="k8json-567f28e7bf76305153a61170fafafdd0db3487cb"
CHECKSUM_SHA256_2="e45faf733f76908dd64ca1e952136675d83d15e69afaad7dea435cf7bd43352e"
SOURCE_URI_3="https://github.com/euroelessar/q-xdg/archive/95de88d6cb56b1de03ce55efad877475bef5fcdc.tar.gz"
SOURCE_DIR_3="q-xdg-95de88d6cb56b1de03ce55efad877475bef5fcdc"
CHECKSUM_SHA256_3="18716aae103c469a4375eaf3aa99ff8aed703b39a49aad95641433b163d5f3fd"
SOURCE_URI_4="https://github.com/euroelessar/jreen/archive/9cb0ae2f89024ec6261090da02a3f23ca4b392d3.tar.gz"
SOURCE_DIR_4="jreen-9cb0ae2f89024ec6261090da02a3f23ca4b392d3"
CHECKSUM_SHA256_4="9d9e974c95ef1951541282383e0bf1b2a6af3838e5d9d3e9630c7023102501ad"
SOURCE_URI_5="https://github.com/euroelessar/qutim-translations/archive/e46cbf6be9bec47466d47d714b36ee01867fd574.tar.gz"
SOURCE_DIR_5="qutim-translations-e46cbf6be9bec47466d47d714b36ee01867fd574"
CHECKSUM_SHA256_5="ff01ff3c9a76d304fb4bab5044dd382d9faea0a4e9f6ae6afb78f53f82ecf976"
SOURCE_URI_6="https://github.com/gorthauer/artwork/archive/2910de9e65ddaee181009bb2d81fa330e225c9ea.tar.gz"
SOURCE_DIR_6="artwork-2910de9e65ddaee181009bb2d81fa330e225c9ea"
CHECKSUM_SHA256_6="21da2d2ebd48c1683eda0f5ff4ab6201990a738247ad83f9fc2ccfb26c6d92c0"
PATCHES="qutim_x86-0.3.3.patchset"
PATCHES_3="xdg.patchset"
ADDITIONAL_FILES="qutim.rdef"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86 !x86_gcc2"
PROVIDES="
qutim$secondaryArchSuffix = $portVersion
cmd:qutim$secondaryArchSuffix
app:qutIM$secondaryArchSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
libqt4${secondaryArchSuffix} >= 4.8
lib:libaspell$secondaryArchSuffix
# lib:libattica$secondaryArchSuffix
lib:libgsasl$secondaryArchSuffix
# lib:libpurple$secondaryArchSuffix
lib:libqca$secondaryArchSuffix
# lib:libqt5$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
libqt4${secondaryArchSuffix}_devel >= 4.8
devel:libaspell$secondaryArchSuffix
# devel:libattica$secondaryArchSuffix
devel:libgsasl$secondaryArchSuffix
# devel:libpurple$secondaryArchSuffix
devel:libqca$secondaryArchSuffix
# devel:libqt5$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:doxygen
cmd:g++$secondaryArchSuffix
cmd:git
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
# prepare the directory structure
ln -sfn $sourceDir2/* $sourceDir/core/3rdparty/k8json
ln -sfn $sourceDir3/* $sourceDir/core/3rdparty/q-xdg
ln -sfn $sourceDir4/* $sourceDir/protocols/jabber/jreen
ln -sfn $sourceDir5/* $sourceDir/translations
ln -sfn $sourceDir6/* $sourceDir/artwork
mkdir -p ../qutim-build
cd ../qutim-build
cmake ../qutim-4f4a25247688417f58af34fdd0aa6f70950b8879 \
-DVKONTAKTE=0 \
-DSCREENSHOTER=0 \
-DDBUSAPI=off \
-DDBUSNOTIFICATIONS=off \
-DNOWPLAYING=off \
-DMOBILEABOUT=off \
-DMOBILECONTACTINFO=off \
-DMOBILENOTIFICATIONSSETTINGS=off \
-DMOBILESETTINGSDIALOG=off \
-DOLDCONTACTDELEGATE=off \
-DMIGRATION02X03=off \
-DQUTIM_INSTALL_OXYGEN_THEME=on \
-DQUTIM_PLUGINS_DEST=$appsDir/qutIM \
-DCMAKE_INSTALL_PREFIX=$appsDir/qutIM \
-DDATA_INSTALL_DIR=$appsDir/qutIM/data \
-DQUTIM_SHARE_DIR_DEF=$appsDir/qutIM/data \
-DQUTIM_SHARE_DIR=$appsDir/qutIM/data
make $jobArgs
}
INSTALL()
{
cd ../qutim-build
make install
mv $appsDir/qutIM/lib/qutim/plugins $appsDir/qutIM
mv $appsDir/qutIM/bin/qutim $appsDir/qutIM/qutIM
rm -rf $appsDir/qutIM/{include,libqutim,share}
rm -rf $appsDir/qutIM/lib/{pkgconfig,qutim}
rm -rf $appsDir/qutIM/bin
addResourcesToBinaries $portDir/additional-files/qutim.rdef \
$appsDir/qutIM/qutIM
addAppDeskbarSymlink $appsDir/qutIM/qutIM
}