mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
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:
@@ -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"
|
||||
81
dev-qt/libattica/libattica-0.4.1.recipe
Normal file
81
dev-qt/libattica/libattica-0.4.1.recipe
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user