diff options
author | Philip van der Hoeven <philip@vd-hoeven.nl> | 2015-03-17 04:26:40 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-03-18 01:59:37 +0700 |
commit | 2286945aa202d0f77fbff88c3f2c2576d126030c (patch) | |
tree | c9b367f50fb7cfd8db8945ef8bb1b8e82904f3eb | |
parent | a19aab2cd853c702c5caf3edf3718ec8da0dae4e (diff) | |
download | slackbuilds-2286945aa202d0f77fbff88c3f2c2576d126030c.tar.gz |
network/freerdp: Allow to build without ffmpeg.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | network/freerdp/README | 4 | ||||
-rw-r--r-- | network/freerdp/freerdp.SlackBuild | 11 |
2 files changed, 14 insertions, 1 deletions
diff --git a/network/freerdp/README b/network/freerdp/README index d727451fa7..8242c54f90 100644 --- a/network/freerdp/README +++ b/network/freerdp/README @@ -1,2 +1,6 @@ FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. + +ffmpeg dependency can be turned off with: + + USE_FFMPEG=no ./freerdp.SlackBuild diff --git a/network/freerdp/freerdp.SlackBuild b/network/freerdp/freerdp.SlackBuild index 6e9446402a..47ecf12623 100644 --- a/network/freerdp/freerdp.SlackBuild +++ b/network/freerdp/freerdp.SlackBuild @@ -5,6 +5,7 @@ # Copyright 2010,2012 Niels Horn, Rio de Janeiro, RJ, Brazil # Copyright 2015 Philip van der Hoeven, Almere, The Netherlands +# Copyright 2015 Mario Preksavec <mario@slackware.hr> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,9 +25,10 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + PRGNAM=freerdp VERSION=${VERSION:-1.2.0_beta1_android9} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} TARNAME=${VERSION%_*}+${VERSION##*_} @@ -67,6 +69,12 @@ else LIBDIRSUFFIX="" fi +USE_FFMPEG=${USE_FFMPEG:-yes} +case "$USE_FFMPEG" in + yes) WITH_FFMPEG=ON ;; + *) WITH_FFMPEG=OFF ;; +esac + set -e rm -rf $PKG @@ -89,6 +97,7 @@ cd build -DCMAKE_INSTALL_PREFIX=/usr \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ -DWITH_CUPS=ON \ + -DWITH_FFMPEG=$WITH_FFMPEG \ -DCMAKE_BUILD_TYPE=Release .. make VERBOSE=1 make install DESTDIR=$PKG |