icq-10~git.recipe revision 3e08a6b6
1SUMMARY="Official ICQ desktop client"
2DESCRIPTION="ICQ desktop client for Haiku."
3HOMEPAGE="http://www.icq.com"
4COPYRIGHT="2016 ICQ LLC (Mail.Ru Group)"
5LICENSE="Apache v2"
6REVISION="4"
7srcGitRev="fad5b8b0412aae4b23554ba7f63e0dcee92d16a7"
8SOURCE_URI="https://github.com/mailru/icqdesktop/archive/$srcGitRev.zip"
9CHECKSUM_SHA256="7416858d72937c8dd427dcff593226356b1bfa00cdc162f8368aadb1928ae53a"
10SOURCE_DIR="icqdesktop-$srcGitRev"
11PATCHES="icq-$portVersion.patchset"
12ADDITIONAL_FILES="icq.rdef"
13
14ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64"
15SECONDARY_ARCHITECTURES="x86 !x86_gcc2"
16
17PROVIDES="
18	icq$secondaryArchSuffix = $portVersion
19	app:ICQ$secondaryArchSuffix
20	"
21REQUIRES="
22	haiku$secondaryArchSuffix
23	lib:libavcodec$secondaryArchSuffix
24	lib:libavfilter$secondaryArchSuffix
25	lib:libavformat$secondaryArchSuffix
26	lib:libavutil$secondaryArchSuffix
27	lib:libboost_system$secondaryArchSuffix
28	lib:libcrypto$secondaryArchSuffix
29	lib:libcurl$secondaryArchSuffix
30	lib:libexpat$secondaryArchSuffix
31	lib:libffi$secondaryArchSuffix
32	lib:libgcrypt$secondaryArchSuffix
33	lib:libGl$secondaryArchSuffix
34	lib:libgnutls$secondaryArchSuffix
35	lib:libgpg_error$secondaryArchSuffix
36	lib:libidn$secondaryArchSuffix
37	lib:libopenal$secondaryArchSuffix
38	lib:libpcre$secondaryArchSuffix
39	lib:libQt5Core$secondaryArchSuffix
40	lib:libQt5Gui$secondaryArchSuffix
41	lib:libQt5Multimedia$secondaryArchSuffix
42	lib:libQt5Network$secondaryArchSuffix
43	lib:libQt5Widgets$secondaryArchSuffix
44	lib:librtmp.1$secondaryArchSuffix
45	lib:libssl$secondaryArchSuffix
46	lib:libswresample$secondaryArchSuffix
47	lib:libtasn1$secondaryArchSuffix
48	lib:libz$secondaryArchSuffix
49	"
50
51BUILD_REQUIRES="
52	haiku${secondaryArchSuffix}_devel
53	devel:libavcodec$secondaryArchSuffix
54	devel:libboost_system$secondaryArchSuffix
55	devel:libcrypto$secondaryArchSuffix
56	devel:libcurl$secondaryArchSuffix
57	devel:libexpat$secondaryArchSuffix
58	devel:libffi$secondaryArchSuffix
59	devel:libgcrypt$secondaryArchSuffix
60	devel:libGl$secondaryArchSuffix
61	devel:libgnutls$secondaryArchSuffix
62	devel:libgpg_error$secondaryArchSuffix
63	devel:libidn$secondaryArchSuffix
64	devel:libopenal$secondaryArchSuffix
65	devel:libpcre$secondaryArchSuffix
66	devel:libqt5$secondaryArchSuffix
67	devel:librtmp$secondaryArchSuffix
68	devel:libssl$secondaryArchSuffix
69	devel:libtasn1$secondaryArchSuffix
70	devel:libz$secondaryArchSuffix
71	"
72BUILD_PREREQUIRES="
73	cmd:gcc$secondaryArchSuffix
74	cmd:make
75	cmd:python
76	"
77
78BUILD()
79{
80	cd corelib/corelib
81	qmake
82	make $jobArgs
83
84	cd ../../gui
85	python qt_prebuild_linux.py
86	qmake
87	# g++ runs out of memory on qrc_resource.cpp (it is huge!)
88	# as a workaround cut a significant part out of it
89	make $jobArgs LDFLAGS=-lboost_filesystem
90}
91
92INSTALL()
93{
94	mkdir -p $appsDir/ICQ/lib
95	cp gui/icq $appsDir/ICQ/ICQ
96	cp corelib/corelib/libcorelib.so* $appsDir/ICQ/lib
97	ln -s $addOnsDir/Qt5/platforms $appsDir/ICQ/plugins
98
99	addResourcesToBinaries $portDir/additional-files/icq.rdef \
100		$appsDir/ICQ/ICQ
101	addAppDeskbarSymlink $appsDir/ICQ/ICQ
102}
103