1SUMMARY="A multi-protocol IM client"
2DESCRIPTION="Chat-O-Matic is a multi-protocol chat client. It supports \
3IRC, XMPP, and other protocols through libpurple."
4HOMEPAGE="https://github.com/JadedCtrl/Chat-O-Matic"
5COPYRIGHT="2009-2011 Andrea Anzani
6	2010-2015 Dario Casalinuovo
7	2009-2011 Pier Luigi Fiorini
8	2021 Jaidyn Levesque"
9LICENSE="MIT"
10REVISION="1"
11srcGitRev="2f69f2fa04a915ff6088e9d6d273441854686556"
12SOURCE_URI="https://github.com/JadedCtrl/Chat-O-Matic/archive/$srcGitRev.tar.gz"
13CHECKSUM_SHA256="3bbd001817b3d1f8733cb7c51173aff0fd61c8be7c2bc1e577ec038019a52b30"
14SOURCE_DIR="Chat-O-Matic-$srcGitRev"
15
16ARCHITECTURES="all !x86_gcc2"
17SECONDARY_ARCHITECTURES="x86"
18
19PROVIDES="
20	chat_o_matic$secondaryArchSuffix = $portVersion
21	app:Chat_O_Matic = $portVersion
22	"
23REQUIRES="
24	haiku$secondaryArchSuffix
25	lib:libexpat$secondaryArchSuffix
26	lib:libglib_2.0$secondaryArchSuffix
27	lib:libgloox$secondaryArchSuffix
28	lib:libpurple$secondaryArchSuffix
29	lib:libssl$secondaryArchSuffix
30	lib:libz$secondaryArchSuffix
31	"
32
33PROVIDES_devel="
34	chat_o_matic${secondaryArchSuffix}_devel = $portVersion
35	"
36REQUIRES_devel="
37	haiku${secondaryArchSuffix}_devel
38	chat_o_matic$secondaryArchSuffix == $portVersion base
39	"
40
41BUILD_REQUIRES="
42	haiku${secondaryArchSuffix}_devel
43	devel:libexpat$secondaryArchSuffix
44	devel:libglib_2.0$secondaryArchSuffix
45	devel:libgloox$secondaryArchSuffix
46	devel:libpurple$secondaryArchSuffix
47	devel:libssl$secondaryArchSuffix
48	devel:libz$secondaryArchSuffix
49	"
50BUILD_PREREQUIRES="
51	makefile_engine
52	cmd:g++$secondaryArchSuffix
53	cmd:ld$secondaryArchSuffix
54	cmd:make
55	cmd:pkg_config$secondaryArchSuffix
56	"
57
58BUILD()
59{
60	make OBJ_DIR=objects LIB_DIR=objects
61}
62
63INSTALL()
64{
65	mkdir -p $appsDir
66	cp objects/Chat-O-Matic $appsDir
67
68	mkdir -p $addOnsDir/chat-o-matic/
69	cp objects/chat-o-matic/* $addOnsDir/chat-o-matic/
70
71	addAppDeskbarSymlink $appsDir/Chat-O-Matic
72
73	mkdir -p $includeDir/chat-o-matic/
74	cp application/ChatOMatic.h application/ChatProtocol.h \
75		application/ChatProtocolMessages.h application/Flags.h \
76		application/UserStatus.h application/Utils.h \
77		$includeDir/chat-o-matic/
78
79	packageEntries devel \
80		$includeDir
81}
82