mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-03 05:28:53 +02:00
95 lines
2.6 KiB
Bash
95 lines
2.6 KiB
Bash
SUMMARY="C library for the Flickr API"
|
|
DESCRIPTION="
|
|
Flickcurl is a C library for the Flickr API, handling creating the \
|
|
requests, signing, token management, calling the API, marshalling \
|
|
request parameters and decoding responses. Flickcurl supports all \
|
|
of the API (see Flickcurl API coverage for details) including the \
|
|
functions for photo/video uploading, browsing, searching, adding \
|
|
and editing comments, groups, notes, photosets, categories, activity, \
|
|
blogs, favorites, places, tags, machine tags, institutions, \
|
|
pandas and photo/video metadata. It also includes a program flickrdf to \
|
|
turn photo metadata, tags, machine tags and places into an RDF triples \
|
|
description."
|
|
HOMEPAGE="http://librdf.org/flickcurl/"
|
|
COPYRIGHT="
|
|
2007-2014 David Beckett
|
|
2007 Vanilla I. Shu
|
|
"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="7"
|
|
SOURCE_URI="http://download.dajobe.org/flickcurl/flickcurl-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="ff42a36c7c1c7d368246f6bc9b7d792ed298348e5f0f5d432e49f6803562f5a3"
|
|
PATCHES="flickcurl-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
flickcurl$secondaryArchSuffix = $portVersion compat >= 1
|
|
cmd:flickcurl$secondaryArchSuffix
|
|
cmd:flickrdf$secondaryArchSuffix
|
|
lib:libflickcurl$secondaryArchSuffix = 0.0.0 compat >= 0
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libcrypto$secondaryArchSuffix # required by libcurl
|
|
lib:libcurl$secondaryArchSuffix
|
|
lib:libssl$secondaryArchSuffix # required by libcurl
|
|
lib:libxml2$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix # required by libcurl and libxml2
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
flickcurl${secondaryArchSuffix}_devel = $portVersion compat >= 1
|
|
cmd:flickcurl_config$secondaryArchSuffix
|
|
devel:libflickcurl$secondaryArchSuffix = 0.0.0 compat >= 0
|
|
"
|
|
REQUIRES_devel="
|
|
flickcurl$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libcurl$secondaryArchSuffix
|
|
devel:libxml2$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
defineDebugInfoPackage flickcurl$secondaryArchSuffix \
|
|
$binDir/flickcurl \
|
|
$binDir/flickrdf \
|
|
$libDir/libflickcurl.so.0.0.0
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -fi
|
|
runConfigure ./configure --with-xml2-config=no \
|
|
--with-curl-config=no
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
# remove libtool library file
|
|
rm $libDir/libflickcurl.la
|
|
|
|
prepareInstalledDevelLibs libflickcurl
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$binDir/flickcurl-config \
|
|
$developDir
|
|
}
|