1SUMMARY="A C/C++ cmis client"
2DESCRIPTION="Libcmis aims at providing a C/C++ client library for the CMIS \
3protocol. A cmis-client tool is maintained to help testing and showing libcmis features."
4HOMEPAGE="https://github.com/tdf/libcmis"
5COPYRIGHT="2011-2014 Cedric Bosdonnat, SUSE
6	2013 Cao Cuong Ngo"
7LICENSE="GNU LGPL v2
8	GNU GPL v2
9	MPL v1.1"
10REVISION="1"
11SOURCE_URI="https://github.com/tdf/libcmis/archive/v$portVersion.tar.gz"
12CHECKSUM_SHA256="ebf7933d93b9d5d6da7b757c89c03b131abd95550864bb98d2a60536593ddeb5"
13SOURCE_DIR="libcmis-$portVersion"
14
15ARCHITECTURES="all !x86_gcc2"
16SECONDARY_ARCHITECTURES="x86"
17
18PROVIDES="
19	libcmis0.6$secondaryArchSuffix = $portVersion
20	cmd:cmis_client$secondaryArchSuffix = $portVersion
21	lib:libcmis_0.6$secondaryArchSuffix = 6.1.1 compat >= 6
22	lib:libcmis_c_0.6$secondaryArchSuffix = 6.0.0 compat >= 6
23	"
24REQUIRES="
25	haiku$secondaryArchSuffix
26	lib:libboost_date_time$secondaryArchSuffix
27	lib:libboost_program_options$secondaryArchSuffix
28	lib:libcrypto$secondaryArchSuffix
29	lib:libcurl$secondaryArchSuffix
30	lib:libiconv$secondaryArchSuffix
31	lib:libssl$secondaryArchSuffix
32	lib:libxml2$secondaryArchSuffix
33	lib:libz$secondaryArchSuffix
34	"
35
36PROVIDES_devel="
37	libcmis0.6${secondaryArchSuffix}_devel = $portVersion
38	devel:libcmis_0.6$secondaryArchSuffix = 6.1.1 compat >= 6
39	devel:libcmis_c_0.6$secondaryArchSuffix = 6.0.0 compat >= 6
40	"
41REQUIRES_devel="
42	libcmis0.6$secondaryArchSuffix == $portVersion base
43	"
44
45BUILD_REQUIRES="
46	haiku${secondaryArchSuffix}_devel
47	devel:libboost_date_time$secondaryArchSuffix >= 1.83.0
48	devel:libboost_program_options$secondaryArchSuffix >= 1.83.0
49	devel:libcrypto$secondaryArchSuffix
50	devel:libcurl$secondaryArchSuffix
51	devel:libiconv$secondaryArchSuffix
52	devel:libssl$secondaryArchSuffix
53	devel:libxml2$secondaryArchSuffix
54	devel:libz$secondaryArchSuffix
55	"
56BUILD_PREREQUIRES="
57	cmd:autoconf
58	cmd:gcc$secondaryArchSuffix
59	cmd:libtoolize$secondaryArchSuffix
60	cmd:make
61	cmd:pkg_config$secondaryArchSuffix
62	"
63
64BUILD()
65{
66	autoreconf -fi
67	runConfigure ./configure --without-man --disable-tests \
68		--disable-static \
69		--disable-werror
70	make $jobArgs
71}
72
73INSTALL()
74{
75	make install-strip
76
77	rm -rf $libDir/*.la
78
79	prepareInstalledDevelLibs libcmis-0.6 \
80		libcmis-c-0.6
81	fixPkgconfig
82
83	packageEntries devel \
84		$developDir
85}
86