aboutsummaryrefslogtreecommitdiffstats
path: root/main/freerdp/APKBUILD
blob: 5872d29e441c3b9df819d40fea2db3d7c3094243 (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
96
97
98
99
100
101
102
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=freerdp
pkgver=1.2.0
_hash=24a752a70840f3e4b027ba7c020af71f2bcfd94a
pkgrel=2
pkgdesc="Free RDP client"
url="http://freerdp.sourceforge.net"
arch="all"
license="GPL"
depends=""
subpackages="$pkgname-dev $pkgname-plugins $pkgname-libs"
makedepends="libressl-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
	gst-plugins-base1-dev gsm-dev linux-headers"
source="$pkgname-$pkgver.tar.gz::https://github.com/FreeRDP/FreeRDP/archive/$_hash.tar.gz
	freerdp-cmake-list.patch
	freerdp-fixes-since-24a752a.patch
	freerdp-args.patch
	musl-fix.patch
	"

_builddir="$srcdir"/FreeRDP-$_hash

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=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_WAYLAND=OFF \
		-DWITH_SERVER=ON \
		-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
}

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="2b498c41d265d5cb2fcc25420d0a050e  freerdp-1.2.0.tar.gz
4ad5ef949a4dcd650638c6eb098ae3c3  freerdp-cmake-list.patch
43457444595927bd330c87b95d8c64b9  freerdp-fixes-since-24a752a.patch
5b11a229bd7d8e0056358f6c43d4c19c  freerdp-args.patch
c0d0e0eb84cdcc3e2a40c75b3cdc92b4  musl-fix.patch"
sha256sums="48def80bfc02c90a350e238de7fba331b914c7a73a7308e0b2fc861f61e25ccf  freerdp-1.2.0.tar.gz
77843028ac29f9fc935f9b9880d9e94c1fd9b13c4ec0d8a16f0d9423f90e67f4  freerdp-cmake-list.patch
c9644fbc15b41a5e82d7a7bc517c8b7425956f375ee1369c68b0f275133f962c  freerdp-fixes-since-24a752a.patch
54b5dd89ef60d36a6123ca95855586e11c4f404dfb9dbc751bf8d539d1d99041  freerdp-args.patch
996d645ac75620833ba5fdb371853674063805b98cc7da18f17632f7e803e794  musl-fix.patch"
sha512sums="f85c111befd4717f93cac2472630c1b96a82aa392d4e5082d5f50cf0b7960a2902d5147cb7b26de52282f25a50968d314f404acb7fd78fe425050013037af4c5  freerdp-1.2.0.tar.gz
c98a19630213c7cce1fc4256987586ff38102560cff0ee4df0c937b2030f6c066e0da8337379b14d41c821652b1a85f5d296efee426e28dc0a1603b9d5ade0f7  freerdp-cmake-list.patch
76aaa3b3b631728ecf8567a09c44f5b84af494d42b4437ec5198a1fe9d0a7312fcfa5acbf45b2d2b1cda60a530c36e108d7a50581c6f63b2058fcd785499842a  freerdp-fixes-since-24a752a.patch
a845b77b6106d9a3e9d69bc0a6df3f80a6f37bed2847ace387739def695a3b07acc5e859893a9af11b7c74d96b4eeea99d9a79d5c4e4b504bacd51d612882b01  freerdp-args.patch
2a3edc5df8f2374c023b604b3f523bbc9e510a35707bef2100ac64677109dc7615a11567558aeda3b032576308ef026ed9b80ef2c479d1004f840f18d6cf0890  musl-fix.patch"