opt/freerdp/Pkgfile

28 lines
812 B
Plaintext
Raw Normal View History

2013-09-28 01:33:44 +02:00
# Description: Remote desktop protocol implementation
# URL: http://www.freerdp.com/
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
# Depends on: xorg-libx11 xorg-libxrender xorg-libxcursor xorg-libxext
# Optional: ffmpeg alsa-lib cups directfb neon pulseaudio xmlto
2013-09-28 01:33:44 +02:00
name=freerdp
version=1.0.2
release=2
source=(http://pub.freerdp.com/releases/freerdp-$version.tar.gz ffmpeg.patch)
2013-09-28 01:33:44 +02:00
build() {
# fix build with different versions of ffmpeg
patch -p1 -i $SRC/ffmpeg.patch -d $name-$version
2013-09-28 01:33:44 +02:00
mkdir build; cd build
cmake ../$name-$version \
2013-09-28 01:33:44 +02:00
-DCMAKE_BUILD_TYPE=RELEASE \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_SKIP_RPATH=ON \
-DWITH_PULSEAUDIO=$([ -f /usr/include/pulse/pulseaudio.h ] && echo "ON" || echo "OFF") \
2013-09-28 01:33:44 +02:00
-DWITH_SERVER=OFF \
-DWITH_CLIENT=ON
make
make DESTDIR=$PKG install
}