Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libical: Add new recipe (GCI 2016) (#933)
Adding a recipe for libical, an implementation of the iCalendar protocols and data formats.
- Loading branch information
Showing
3 changed files
with
242 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
SUMMARY="An implementation of iCalendar protocols and data formats" | ||
DESCRIPTION="Libical is an Open Source implementation of the iCalendar \ | ||
protocols and protocol data units. The iCalendar specification describes how \ | ||
calendar clients can communicate with calendar servers so users can store \ | ||
their calendar data and arrange meetings with other users." | ||
HOMEPAGE="http://libical.github.io/libical/" | ||
COPYRIGHT="1999-2015 Eric Busboom" | ||
LICENSE="MPL v1.0 | ||
GNU LGPL v2.1" | ||
REVISION="1" | ||
SOURCE_URI="https://github.com/libical/libical/releases/download/v$portVersion/libical-$portVersion.tar.gz" | ||
CHECKSUM_SHA256="654c11f759c19237be39f6ad401d917e5a05f36f1736385ed958e60cf21456da" | ||
PATCHES="libical-$portVersion.patchset" | ||
|
||
ARCHITECTURES="!x86_gcc2 x86 x86_64" | ||
SECONDARY_ARCHITECTURES="!x86_gcc2 x86" | ||
|
||
PROVIDES=" | ||
libical$secondaryArchSuffix = $portVersion compat >= 2 | ||
lib:libical$secondaryArchSuffix = $portVersion compat >= 2 | ||
lib:libical_cxx$secondaryArchSuffix = $portVersion compat >= 2 | ||
lib:libicalss$secondaryArchSuffix = $portVersion compat >= 2 | ||
lib:libicalss_cxx$secondaryArchSuffix = $portVersion compat >= 2 | ||
lib:libicalvcal$secondaryArchSuffix = $portVersion compat >= 2 | ||
" | ||
REQUIRES=" | ||
haiku$secondaryArchSuffix | ||
lib:libicui18n$secondaryArchSuffix | ||
lib:libicuuc$secondaryArchSuffix | ||
" | ||
|
||
PROVIDES_devel=" | ||
libical${secondaryArchSuffix}_devel = $portVersion compat >= 2 | ||
devel:libical$secondaryArchSuffix = $portVersion compat >= 2 | ||
devel:libical_cxx$secondaryArchSuffix = $portVersion compat >= 2 | ||
devel:libicalss$secondaryArchSuffix = $portVersion compat >= 2 | ||
devel:libicalss_cxx$secondaryArchSuffix = $portVersion compat >= 2 | ||
devel:libicalvcal$secondaryArchSuffix = $portVersion compat >= 2 | ||
" | ||
REQUIRES_devel=" | ||
libical$secondaryArchSuffix == $portVersion base | ||
" | ||
|
||
BUILD_REQUIRES=" | ||
haiku${secondaryArchSuffix}_devel | ||
devel:libicui18n$secondaryArchSuffix | ||
devel:libicuuc$secondaryArchSuffix | ||
" | ||
BUILD_PREREQUIRES=" | ||
cmd:cmake | ||
cmd:gcc$secondaryArchSuffix | ||
cmd:make | ||
cmd:perl | ||
" | ||
|
||
BUILD() | ||
{ | ||
cmake . \ | ||
-DCMAKE_INSTALL_PREFIX=$prefix \ | ||
-DCMAKE_INSTALL_LIBDIR=$libDir \ | ||
-DCMAKE_INSTALL_INCLUDEDIR=$incDir \ | ||
-DCMAKE_INSTALL_DATAROOTDIR=$dataDir \ | ||
-DUSE_BUILTIN_TZDATA=true | ||
make $jobArgs | ||
} | ||
|
||
INSTALL() | ||
{ | ||
make install | ||
|
||
prepareInstalledDevelLibs \ | ||
libical \ | ||
libical_cxx \ | ||
libicalss \ | ||
libicalss_cxx \ | ||
libicalvcal | ||
fixPkgconfig | ||
|
||
packageEntries devel \ | ||
$developDir \ | ||
$libDir/cmake | ||
} | ||
|
||
TEST() | ||
{ | ||
make test | ||
} |
Oops, something went wrong.