opt/freerdp2/Pkgfile

31 lines
1.1 KiB
Plaintext
Raw Normal View History

2018-08-19 14:31:48 +02:00
# Description: Remote desktop protocol implementation.
# URL: https://www.freerdp.com/
2018-08-19 14:31:48 +02:00
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: cmake glib xorg-libxcursor xorg-libxinerama xorg-libxkbfile xorg-libxrandr xorg-libxv
2022-02-25 14:38:44 +01:00
# Optional: alsa-lib cups directfb ffmpeg gst-plugins-base libxslt neon pulseaudio wayland xmlto
2018-08-19 14:31:48 +02:00
name=freerdp2
2022-03-08 11:00:30 +01:00
version=2.6.1
2018-08-19 14:31:48 +02:00
release=1
2020-07-21 21:26:53 +02:00
source=(https://pub.freerdp.com/releases/freerdp-$version.tar.gz)
2018-08-19 14:31:48 +02:00
build() {
2022-02-25 14:38:44 +01:00
prt-get isinst ccache && PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')"
prt-get isinst libxslt && PKGMK_FREERDP+=' -D WITH_MANPAGES=ON' || PKGMK_FREERDP+=' -D WITH_MANPAGES=OFF'
prt-get isinst ninja && PKGMK_FREERDP+=' -G Ninja'
cmake -S freerdp-$version -B build $PKGMK_FREERDP \
-D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_SKIP_RPATH=ON \
-D WITH_SERVER=OFF \
-D WITH_CLIENT=ON \
-D WITH_LIBSYSTEMD=OFF \
2021-02-27 12:01:02 +01:00
-Wno-dev
2021-08-10 11:25:14 +02:00
cmake --build build -j ${JOBS:-1}
2020-06-26 19:06:05 +02:00
DESTDIR=$PKG cmake --install build
2018-08-19 14:31:48 +02:00
}