2013-09-28 08:33:44 +09:00
|
|
|
# Description: Remote desktop protocol implementation
|
|
|
|
# URL: http://www.freerdp.com/
|
|
|
|
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
|
2019-03-26 03:53:56 +09:00
|
|
|
# Depends on: cmake xorg-libx11 xorg-libxrender xorg-libxcursor xorg-libxext
|
2017-05-02 15:15:53 +09:00
|
|
|
# Optional: ffmpeg alsa-lib cups directfb neon pulseaudio xmlto
|
2013-09-28 08:33:44 +09:00
|
|
|
|
|
|
|
name=freerdp
|
2017-05-02 15:15:53 +09:00
|
|
|
version=1.0.2
|
2013-11-09 20:43:27 +09:00
|
|
|
release=2
|
2017-05-02 15:15:53 +09:00
|
|
|
source=(http://pub.freerdp.com/releases/freerdp-$version.tar.gz ffmpeg.patch)
|
2013-09-28 08:33:44 +09:00
|
|
|
|
|
|
|
build() {
|
2017-05-02 15:15:53 +09:00
|
|
|
# fix build with different versions of ffmpeg
|
2019-03-26 03:53:56 +09:00
|
|
|
patch -p0 -i $SRC/ffmpeg.patch
|
|
|
|
|
|
|
|
# fix for even newer ffmpeg
|
|
|
|
sed -ri \
|
|
|
|
's/([^a-zA-Z_+])(CODEC_CAP_TRUNCATED|CODEC_FLAG_TRUNCATED|CODEC_FLAG_LOOP_FILTER)/\1AV_\2/g' \
|
|
|
|
$name-$version/channels/drdynvc/tsmf/ffmpeg/tsmf_ffmpeg.c
|
2017-05-02 15:15:53 +09:00
|
|
|
|
2013-09-28 08:33:44 +09:00
|
|
|
mkdir build; cd build
|
|
|
|
|
2017-05-02 15:15:53 +09:00
|
|
|
cmake ../$name-$version \
|
2013-09-28 08:33:44 +09:00
|
|
|
-DCMAKE_BUILD_TYPE=RELEASE \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_SKIP_RPATH=ON \
|
2014-11-12 16:41:35 +09:00
|
|
|
-DWITH_PULSEAUDIO=$([ -f /usr/include/pulse/pulseaudio.h ] && echo "ON" || echo "OFF") \
|
2019-03-26 03:53:56 +09:00
|
|
|
-DWITH_CUPS=$([ -f /usr/include/cups/cups.h ] && echo "ON" || echo "OFF") \
|
|
|
|
-DWITH_ALSA=$([ -f /usr/include/alsa/version.h ] && echo "ON" || echo "OFF") \
|
|
|
|
-DWITH_FFMPEG=$([ -f /usr/include/libavcodec/avcodec.h ] && echo "ON" || echo "OFF") \
|
|
|
|
-DWITH_SSE2=$(grep -q '\bsse2\b' /proc/cpuinfo && echo ON || echo OFF) \
|
|
|
|
-DWITH_SSE2_TARGET=$(grep -q '\bsse2\b' /proc/cpuinfo && echo ON || echo OFF) \
|
2013-09-28 08:33:44 +09:00
|
|
|
-DWITH_SERVER=OFF \
|
|
|
|
-DWITH_CLIENT=ON
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
}
|