libattica: working recipe.

If anyone knows a better way to call CMake than the hack I used after
"make install", please tell me. I already tried INSTALL_LIB_DIR and
friends.
This commit is contained in:
Augustin Cavalier
2014-07-14 13:40:09 -04:00
parent 6689510053
commit d802e836f4
2 changed files with 81 additions and 22 deletions

View File

@@ -1,22 +0,0 @@
DESCRIPTION="A library providing access to Open Collaboration Services"
HOMEPAGE="http://www.kde.org"
SRC_URI="ftp://ftp.kde.org/pub/kde/stable/attica/attica-0.4.1.tar.bz2"
CHECKSUM_MD5="b90983ec5d79e5ddcbc9146fa23cab72"
REVISION="1"
STATUS_HAIKU="untested"
DEPEND=""
BUILD()
{
cd attica-0.4.1
cmake CMakeLists.txt
make
}
INSTALL()
{
cd attica-0.4.1
make install
}
LICENSE="GNU LGPL v2.1"
COPYRIGHT="The KDE Project"

View File

@@ -0,0 +1,81 @@
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"
SRC_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 >= $haikuVersion
libqt4$secondaryArchSuffix >= 4.8
"
BUILD_REQUIRES="
libqt4${secondaryArchSuffix}_devel >= 4.8
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
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 >= $haikuVersion
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
cp -f $prefix/include/attica/* $includeDir/attica/
rm -rf $prefix/include/
prepareInstalledDevelLibs libattica
packageEntries devel \
$developDir
}