1SUMMARY="Highly portable C++ class library"
2DESCRIPTION="GNU Common C++ is a class framework that was specifically \
3designed for telephony applications. The original library was refactored \
4into a different codebase which is better suited for embedded applications, \
5GNU uCommon C++ (uCommon for short). The uCommon library, as currently \
6packaged, also includes the original Common C++ class framework for legacy \
7application support. All development of Common C++ now happens as part of \
8uCommon, but we will continue to fix bugs in the original Common C++ \
9codebase, which has long been considered stable."
10HOMEPAGE="https://www.gnu.org/software/commoncpp/"
11COPYRIGHT="2015-2017 Cherokees of Idaho
12	David Sugar
13	Eric Schendel
14	Angelo Naselli
15	Leandro Melo de Sales
16	Adrien B��raud"
17LICENSE="GNU LGPL v2.1"
18REVISION="1"
19SOURCE_URI="http://git.savannah.gnu.org/cgit/commoncpp.git/snapshot/commoncpp-$portVersion.tar.gz"
20CHECKSUM_SHA256="99fd0e2c69f24e4ca93d01a14bc3fc4e40d69576f235f80f7a8ab37c16951f3e"
21SOURCE_DIR="commoncpp-$portVersion"
22PATCHES="ucommon-$portVersion.patchset"
23
24ARCHITECTURES="all"
25SECONDARY_ARCHITECTURES="x86_gcc2 x86"
26
27libVersion="8.0.01"
28
29PROVIDES="
30	ucommon$secondaryArchSuffix = $portVersion
31	cmd:args$secondaryArchSuffix
32	cmd:car$secondaryArchSuffix
33	cmd:commoncpp_config$secondaryArchSuffix
34	cmd:keywait$secondaryArchSuffix
35	cmd:mdsum$secondaryArchSuffix
36	cmd:pdetach$secondaryArchSuffix
37	cmd:scrub_files$secondaryArchSuffix
38	cmd:sockaddr$secondaryArchSuffix
39	cmd:ucommon_config$secondaryArchSuffix
40	cmd:urlout$secondaryArchSuffix
41	cmd:zerofill$secondaryArchSuffix
42	lib:libcommoncpp$secondaryArchSuffix = $libVersion
43	lib:libucommon$secondaryArchSuffix = $libVersion
44	lib:libusecure$secondaryArchSuffix = $libVersion
45	"
46REQUIRES="
47	haiku$secondaryArchSuffix
48	lib:libcrypto$secondaryArchSuffix
49	lib:libssl$secondaryArchSuffix
50	"
51
52PROVIDES_devel="
53	ucommon${secondaryArchSuffix}_devel = $portVersion
54	devel:libcommoncpp$secondaryArchSuffix = $libVersion
55	devel:libucommon$secondaryArchSuffix = $libVersion
56	devel:libusecure$secondaryArchSuffix = $libVersion
57	"
58REQUIRES_devel="
59	ucommon$secondaryArchSuffix == $portVersion base
60	"
61
62BUILD_REQUIRES="
63	haiku${secondaryArchSuffix}_devel
64	devel:libssl$secondaryArchSuffix
65	"
66BUILD_PREREQUIRES="
67	cmd:cmake
68	cmd:gcc$secondaryArchSuffix
69	cmd:ld$secondaryArchSuffix
70	cmd:make
71	cmd:pkg_config$secondaryArchSuffix
72	"
73
74BUILD()
75{
76	mkdir -p build && cd build
77	cmake .. $cmakeDirArgs \
78		-DCMAKE_BUILD_TYPE=Release
79	make $jobArgs
80}
81
82INSTALL()
83{
84	cd build
85	make install
86
87	prepareInstalledDevelLibs \
88		libusecure libucommon libcommoncpp
89
90	# devel package
91	packageEntries devel \
92		$developDir $dataDir
93}
94