aboutsummaryrefslogtreecommitdiffstats
path: root/main/freerdp/APKBUILD
blob: a482ba8d1823b84b2b35be5f9eed59c92dd9e524 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=freerdp
pkgver=1.1.0_beta2013071101
_ver=${pkgver/_beta/-beta+}
pkgrel=1
pkgdesc="Free RDP client"
url="http://freerdp.sourceforge.net"
arch="all"
license="GPL"
depends=""
subpackages="$pkgname-dev $pkgname-plugins $pkgname-libs"
makedepends="openssl-dev libxcursor-dev cups-dev alsa-lib-dev ffmpeg-dev
	cups-dev libxkbfile-dev libxinerama-dev libxv-dev libxdamage-dev
	libjpeg-turbo-dev libxi-dev cmake bsd-compat-headers"
source="freerdp-$_ver.tar.gz::https://github.com/FreeRDP/FreeRDP/archive/$_ver.tar.gz
	fix-headers.patch
	ffmpeg.patch
	"

_builddir="$srcdir"/FreeRDP-${_ver/+/-}
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() { 
	cd "$_builddir"
	export CFLAGS="$CFLAGS -D_BSD_SOURCE"
	cmake -DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=/usr/lib \
		-DWITH_ALSA=ON \
		-DWITH_CUPS=ON \
		-DWITH_CHANNELS=ON -DSTATIC_CHANNELS=OFF \
		-DWITH_DIRECTFB=OFF \
		-DWITH_FFMPEG=OFF \
		-DWITH_GSM=ON \
		-DWITH_GSTREAMER_1_0=ON \
		-DWITH_IPP=OFF \
		-DWITH_JPEG=ON \
		-DWITH_OPENSSL=ON \
		-DWITH_PCSC=OFF \
		-DWITH_PULSE=OFF \
		-DWITH_X11=ON \
		-DWITH_XCURSOR=ON \
		-DWITH_XEXT=ON \
		-DWITH_XKBFILE=ON \
		-DWITH_XI=ON \
		-DWITH_XINERAMA=ON \
		-DWITH_XRENDER=ON \
		-DWITH_XV=ON \
		-DWITH_ZLIB=ON \
		-DWITH_NEON=OFF \
		-DARM_FP_API=hard \
		|| return 1
	make
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	# hack
	mv "$pkgdir"/usr/lib/libfreerdp-common.so.1.1.0-beta1 \
		"$pkgdir"/usr/lib/libfreerdp-common.so.1.1.0 \
		&& ln -s libfreerdp-common.so.1.1.0 \
		"$pkgdir"/usr/lib/libfreerdp-common.so.1.1.0-beta1
}

libs() {
	pkgdesc="Free RDP client - Libraries"
	replaces="libfreerdp"
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/lib "$subpkgdir"/usr/
}

plugins() {
	pkgdesc="Free RDP client - plugins"
	replaces="libfreerdp"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/freerdp "$subpkgdir"/usr/lib/
}

md5sums="37259601bb43bb8f04d65f4ce1057582  freerdp-1.1.0-beta+2013071101.tar.gz
56376b2291649957d2c396f809a126a9  fix-headers.patch
cb7604510c737917a8bcb9b94ba29c10  ffmpeg.patch"
sha256sums="f21c8b2e4d9ff09bff392f37c85358d148f79318cdbf031092ed2517edd44c41  freerdp-1.1.0-beta+2013071101.tar.gz
28990b23acd3b0eb59e7e01a8d2a4800009acde1333db4f19898c40559e618c9  fix-headers.patch
5563da187472feb138d824a33d032af3030400a93fd3e38b455f8666cbc7be72  ffmpeg.patch"
sha512sums="d53b283ed4ced3c69a3644c4f1acc7d10c12ba14a2e890d8ad2c78b491bb457f3ca6b03ee7bc1df7019e05033eecf0c35afa5f8550b12caa5492ae6e19adac5f  freerdp-1.1.0-beta+2013071101.tar.gz
264b11e5a4d055f53a9fb7cbeda6fd41e2fa6f3e1aaab267edbcedb588e9e9e38c34af2d372f35b0cc0cdffe9cea3bfd0423863856dff0af95cee4728431ee91  fix-headers.patch
981459c347f245b8f2e92c5593b2a5a8d38506196a637435a84e085d4892189127ab176b1ef3748da91b465e1368768bf6917f7da41b0882a7d655324506badb  ffmpeg.patch"