Files
haikuports/dev-qt/libattica/libattica-0.4.2.recipe
2015-07-02 11:13:12 -04:00

77 lines
2.1 KiB
Bash

SUMMARY="A library providing access to Open Collaboration services"
DESCRIPTION="Attica supports multiple Open Collaboration Service (OCS) \
providers at the same time. With Attica you can easily access services \
rom providers such as openDesktop.org. It implements the freedesktop.org \
specification for the Open Collaboration Services API."
HOMEPAGE="http://www.kde.org"
SOURCE_URI="http://download.kde.org/stable/attica/attica-0.4.2.tar.bz2"
CHECKSUM_SHA256="3b9c53770862c0b21b7af7ea15951c35831126022bb8d052760d9cf8bd7ee4f8"
SOURCE_DIR="attica-0.4.2"
LICENSE="GNU LGPL v2.1"
COPYRIGHT="2009 KDE e.V."
REVISION="1"
ARCHITECTURES="x86 ?x86_64"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
# x86_gcc2 is fine as primary target architecture as long as we're building
# for a different secondary architecture.
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
else
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
fi
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
libattica$secondaryArchSuffix = $portVersion
lib:libattica$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
libqt4$secondaryArchSuffix >= 4.8
"
BUILD_REQUIRES="
libqt4${secondaryArchSuffix}_devel >= 4.8
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
cmd:cmake
cmd:pkg_config$secondaryArchSuffix
cmd:make
cmd:g++$secondaryArchSuffix
"
PROVIDES_devel="
libattica${secondaryArchSuffix}_devel = $portVersion
devel:libattica$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
haiku$secondaryArchSuffix
libqt4${secondaryArchSuffix}_devel >= 4.8
libattica$secondaryArchSuffix == $portVersion base
"
BUILD()
{
cmake -Wno-dev -DCMAKE_INSTALL_PREFIX=$prefix \
-DCMAKE_BUILD_TYPE=Release -DATTICA_ENABLE_TESTS=off
make $jobArgs
}
INSTALL()
{
make install
# Clean up after CMake
mkdir -p $includeDir/attica/
mkdir -p $libDir
mkdir -p $developLibDir/pkgconfig/
mv -f $prefix/lib/pkgconfig/* $developLibDir/pkgconfig/
rm -rf $prefix/lib/pkgconfig/
mv -f $prefix/lib/*.so* $libDir
mv -f $prefix/include/attica/* $includeDir/attica/
rm -rf $prefix/include/
prepareInstalledDevelLibs libattica
packageEntries devel \
$developDir
}