Magellan Linux

Contents of /trunk/extras/freerdp/freerdp-1.2.0_beta1+android9-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 26424 - (show annotations) (download)
Fri Jun 26 16:11:31 2015 UTC (8 years, 10 months ago) by niro
File size: 2216 byte(s)
-fixed rpath
1 # $Id$
2
3 PNAME="freerdp"
4 PVER="1.2.0_beta1+android9"
5 PBUILD="r2"
6
7 PCAT="net-misc"
8
9 DESCRIPTION="FreeRDP is a free implementation of the Remote Desktop Protocol (RDP)."
10 HOMEPAGE="http://www.freerdp.com/"
11
12 DEPEND=">= dev-libs/openssl-1.0.2
13 >= media-sound/libpulse-6
14 >= net-print/libcups-2.0
15 >= media-video/ffmpeg-2.7
16 >= media-libs/alsa-lib-1.0.29
17 >= x11-libs/libX11-1.6
18 >= x11-libs/libXext-1.3
19 >= x11-libs/libXrandr-1.5
20 >= x11-libs/libXcursor-1.1
21 >= x11-libs/libxkbfile-1
22 >= x11-libs/libXinerama-1.1
23 >= x11-libs/libXv-1
24 >= sys-apps/pcsc-lite-1.8
25 >= media-libs/gstreamer1.0-plugins-good-1.4"
26
27 SDEPEND=">= x11-proto/xproto-7
28 >= x11-proto/xineramaproto-1.2
29 >= x11-proto/kbproto-1
30 >= x11-proto/xextproto-7.2
31 >= app-text/docbook-xsl-stylesheets-1.76"
32
33 SRCFILE="${PVER/_/-}.tar.gz"
34 SRCDIR="${BUILDDIR}/FreeRDP-${PVER/_/-}"
35 SRCDIR="${SRCDIR/+/-}"
36
37 sminclude cmake mtools rpath
38
39 SRC_URI=(
40 https://github.com/FreeRDP/FreeRDP/archive/${SRCFILE}
41 mirror://${PNAME}/${SRCFILE}
42 mirror://${PNAME}/${PNAME}-1.0.2-cmake31.patch
43 )
44
45 UP2DATE="updatecmd https://github.com/FreeRDP/FreeRDP/downloads | grep freerdp-[0-9] | highesttarball gz"
46
47 src_prepare()
48 {
49 munpack ${SRCFILE} || die
50 cd ${SRCDIR}
51
52 # fix build with >= cmake-3.1
53 mpatch ${PNAME}-1.0.2-cmake31.patch || die
54 }
55
56 src_compile()
57 {
58 # build outside of the source dir
59 install -d ${BUILDDIR}/build || die
60 cd ${BUILDDIR}/build
61
62 cmake_configure \
63 $(cmake_with OpenSSL) \
64 $(cmake_with PULSEAUDIO) \
65 $(cmake_with CUPS) \
66 $(cmake_with FFMPEG) \
67 $(cmake_with ALSA) \
68 $(cmake_with X11) \
69 $(cmake_with XKBFILE) \
70 $(cmake_with XINERAMA) \
71 $(cmake_with XEXT) \
72 $(cmake_with XCURSOR) \
73 $(cmake_with XV) \
74 $(cmake_with SERVER) \
75 $(cmake_with CLIENT) \
76 $(cmake_with PCSC) \
77 $(cmake_without CUNIT) \
78 $(cmake_without DIRECTFB) \
79 $(cmake_without NEON) \
80 || die
81
82 mmake || die
83 }
84
85 src_install()
86 {
87 cd ${BUILDDIR}/build
88 mmake DESTDIR=${BINDIR} install || die
89
90 # install server binary
91 minstalldir /usr/sbin || die
92 #minstallexec server/X11/xfreerdp-server /usr/sbin/ || die
93 minstallexec server/shadow/freerdp-shadow /usr/sbin/ || die
94
95 # delete insecure rpath
96 mdeleterpath
97
98 cd ${SRCDIR}
99 minstalldocs ChangeLog LICENSE README || die
100 }