Files
haikuports/net-im/psi_plus/psi_plus-0.16.475.recipe
Michael Lotz a43c394c4d Explicitly reference all additional files.
Not referencing them caused them to be missing from the source packages.

This also moves all files that were in different dirs under the common
additional-files dir.
2015-12-20 20:05:05 +01:00

90 lines
2.5 KiB
Bash

SUMMARY="A development branch of Psi IM XMPP/Jabber client"
DESCRIPTION="Psi is a cross-platform powerful XMPP/Jabber client (Qt, C++) \
designed for the Jabber power users."
HOMEPAGE="https://code.google.com/p/psi-dev/"
SOURCE_URI="https://github.com/psi-plus/psi-plus-snapshots/archive/$portVersion.tar.gz"
SOURCE_FILENAME="psi-plus-$portVersion.tar.gz"
SOURCE_DIR="psi-plus-snapshots-$portVersion"
CHECKSUM_SHA256="d20f79845da742a0711c76834e4c3199648d032bf49267fe28c2f1a2b494adb7"
REVISION="1"
LICENSE="GNU GPL v2"
COPYRIGHT="2005-2015, Psi+ Project"
ARCHITECTURES="!x86_gcc2 x86"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
psi$secondaryArchSuffix = $portVersion
app:Psi$secondaryArchSuffix
"
REQUIRES="
haiku${secondaryArchSuffix}
libqt4${secondaryArchSuffix} >= 4.8
lib:libqca$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:g++${secondaryArchSuffix}
cmd:patch
cmd:pkg_config$secondaryArchSuffix
cmd:cmake
cmd:make
cmd:which
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
libqt4${secondaryArchSuffix}_devel >= 4.8
devel:libaspell$secondaryArchSuffix
devel:libidn$secondaryArchSuffix
devel:libqca$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
PATCH()
{
sed -i 's/ qca2-qt4//g' configure
}
PATCHES="psi_plus_x86-0.16.475.patchset"
ADDITIONAL_FILES="psi-plus.rdef"
BUILD()
{
./configure --disable-qdbus --enable-plugins \
--prefix=$prefix \
--bindir=$appsDir/Psi-plus \
--libdir=$appsDir/Psi-plus/lib \
--datadir=$appsDir/Psi-plus/data
make $jobArgs
cd src/plugins/generic
mkdir -p $appsDir/Psi-plus/plugins
# TODO: fix screenshotplugin, otrplugin and python plugins
for dir in attentionplugin autoreplyplugin birthdayreminderplugin \
captchaformsplugin cleanerplugin clientswitcherplugin \
conferenceloggerplugin contentdownloaderplugin chessplugin \
gomokugameplugin jabberdiskplugin \
extendedmenuplugin extendedoptionsplugin gmailserviceplugin gnupgplugin \
historykeeperplugin icqdieplugin imageplugin juickplugin \
pepchangenotifyplugin qipxstatusesplugin skinsplugin stopspamplugin \
storagenotesplugin translateplugin watcherplugin
do
pushd "$dir" && qmake && make && cp *.so $appsDir/Psi-plus/plugins && popd
done
}
INSTALL()
{
make install
rm -rf $prefix/share
rm -rf $appsDir/Psi-plus/psi-plus.debug
mv $appsDir/Psi-plus/psi-plus $appsDir/Psi-plus/Psi-plus
addResourcesToBinaries $portDir/additional-files/psi-plus.rdef \
$appsDir/Psi-plus/Psi-plus
addAppDeskbarSymlink $appsDir/Psi-plus/Psi-plus
}