2013-03-17 10:04:56 +01:00
|
|
|
# Created by: Alexander Logvinov <avl@FreeBSD.org>
|
2010-08-04 06:08:04 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= freerdp
|
2014-01-15 06:44:43 +01:00
|
|
|
PORTVERSION= 1.1.0.b20130711
|
|
|
|
DISTVERSION= 1.1.0-beta+2013071101
|
2010-08-04 06:08:04 +02:00
|
|
|
CATEGORIES= net comms ipv6
|
|
|
|
|
2013-02-19 14:12:37 +01:00
|
|
|
MAINTAINER= fluffy@FreeBSD.org
|
2013-03-17 10:04:56 +01:00
|
|
|
COMMENT= A free implementation of Remote Desktop Protocol
|
2010-08-04 06:08:04 +02:00
|
|
|
|
2013-12-30 21:55:18 +01:00
|
|
|
LICENSE= APACHE20
|
2013-03-17 10:04:56 +01:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
2010-08-04 06:08:04 +02:00
|
|
|
|
|
|
|
USE_OPENSSL= yes
|
|
|
|
USE_LDCONFIG= yes
|
2013-04-23 16:20:25 +02:00
|
|
|
USES= cmake pkgconfig
|
2013-03-17 10:04:56 +01:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= FreeRDP
|
|
|
|
GH_PROJECT= FreeRDP
|
2014-01-15 06:44:43 +01:00
|
|
|
GH_COMMIT= 780d451
|
2013-03-17 10:04:56 +01:00
|
|
|
GH_TAGNAME= ${GH_COMMIT}
|
2010-08-04 06:08:04 +02:00
|
|
|
|
2011-09-24 00:26:39 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2013-04-18 04:39:21 +02:00
|
|
|
CFLAGS+= -I${WRKSRC}/include -I${LOCALBASE}/include
|
2010-08-04 06:08:04 +02:00
|
|
|
|
2014-01-15 06:44:43 +01:00
|
|
|
OPTIONS_DEFINE= ALSA CUPS DIRECTFB FFMPEG GSTREAMER PULSEAUDIO SSE X11
|
|
|
|
OPTIONS_DEFAULT= CUPS GSTREAMER PULSEAUDIO X11
|
2013-03-17 10:04:56 +01:00
|
|
|
X11_DESC= Build FreeRDP X11 client
|
|
|
|
DIRECTFB_DESC= Build FreeRDP DirectFB client
|
2010-08-04 06:08:04 +02:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2013-03-17 10:04:56 +01:00
|
|
|
.if ${PORT_OPTIONS:MX11}
|
|
|
|
USE_XORG= x11 xkbfile xcursor xextproto xv xinerama xext xcursor
|
|
|
|
CMAKE_ARGS+= -DWITH_X11=ON
|
|
|
|
BUILD_DEPENDS+= xmlto:${PORTSDIR}/textproc/xmlto
|
|
|
|
MAN1= xfreerdp.1
|
|
|
|
PLIST_SUB+= X11=""
|
2010-08-04 06:08:04 +02:00
|
|
|
.else
|
2013-06-24 04:43:38 +02:00
|
|
|
CMAKE_ARGS+= -DWITH_X11=OFF -DWITH_XKBFILE=OFF
|
2013-03-17 10:04:56 +01:00
|
|
|
PLIST_SUB+= X11="@comment "
|
2010-08-04 06:08:04 +02:00
|
|
|
.endif
|
|
|
|
|
2013-03-17 10:04:56 +01:00
|
|
|
.if ${PORT_OPTIONS:MDIRECTFB}
|
2014-01-15 06:44:43 +01:00
|
|
|
LIB_DEPENDS+= libdirectfb.so:${PORTSDIR}/devel/directfb
|
2013-03-17 10:04:56 +01:00
|
|
|
CMAKE_ARGS+= -DWITH_DIRECTFB=ON
|
|
|
|
PLIST_SUB+= DIRECTFB=""
|
|
|
|
# currently DirectFB option fails with clang
|
|
|
|
USE_GCC= yes
|
2010-08-04 06:08:04 +02:00
|
|
|
.else
|
2013-03-17 10:04:56 +01:00
|
|
|
PLIST_SUB+= DIRECTFB="@comment "
|
2010-08-04 06:08:04 +02:00
|
|
|
.endif
|
|
|
|
|
2013-03-17 10:04:56 +01:00
|
|
|
.if ${PORT_OPTIONS:MALSA}
|
2014-01-15 06:44:43 +01:00
|
|
|
LIB_DEPENDS+= libasound.so:${PORTSDIR}/audio/alsa-lib
|
2013-03-17 10:04:56 +01:00
|
|
|
PLIST_SUB+= ALSA=""
|
2010-08-04 06:08:04 +02:00
|
|
|
.else
|
2013-03-17 10:04:56 +01:00
|
|
|
PLIST_SUB+= ALSA="@comment "
|
|
|
|
CMAKE_ARGS+= -DWITH_ALSA=OFF
|
2010-08-04 06:08:04 +02:00
|
|
|
.endif
|
|
|
|
|
2013-03-17 10:04:56 +01:00
|
|
|
.if ${PORT_OPTIONS:MFFMPEG}
|
2013-10-25 12:58:53 +02:00
|
|
|
LIB_DEPENDS+= libavcodec.so:${PORTSDIR}/multimedia/ffmpeg \
|
|
|
|
libavutil.so:${PORTSDIR}/multimedia/ffmpeg
|
2013-03-17 10:04:56 +01:00
|
|
|
PLIST_SUB+= FFMPEG=""
|
2010-08-04 06:08:04 +02:00
|
|
|
.else
|
2013-03-17 10:04:56 +01:00
|
|
|
CMAKE_ARGS+= -DWITH_FFMPEG=OFF
|
|
|
|
PLIST_SUB+= FFMPEG="@comment "
|
2010-08-04 06:08:04 +02:00
|
|
|
.endif
|
|
|
|
|
2014-01-15 06:44:43 +01:00
|
|
|
.if ${PORT_OPTIONS:MGSTREAMER}
|
|
|
|
CMAKE_ARGS+= -DWITH_GSTREAMER=ON
|
|
|
|
USE_GSTREAMER= yes
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DWITH_GSTREAMER=OFF
|
|
|
|
.endif
|
|
|
|
|
2013-03-17 10:04:56 +01:00
|
|
|
.if ${PORT_OPTIONS:MCUPS}
|
|
|
|
CMAKE_ARGS+= -DWITH_CUPS=ON
|
2014-01-15 06:44:43 +01:00
|
|
|
LIB_DEPENDS+= libcups.so:${PORTSDIR}/print/cups-client
|
2010-08-04 06:08:04 +02:00
|
|
|
.else
|
2013-03-17 10:04:56 +01:00
|
|
|
CMAKE_ARGS+= -DWITH_CUPS=OFF
|
2010-08-04 06:08:04 +02:00
|
|
|
.endif
|
2013-03-17 10:04:56 +01:00
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MPULSEAUDIO}
|
2014-01-15 06:44:43 +01:00
|
|
|
CMAKE_ARGS+= -DWITH_PULSE=ON
|
|
|
|
LIB_DEPENDS+= libpulse.so:${PORTSDIR}/audio/pulseaudio
|
2013-03-17 10:04:56 +01:00
|
|
|
PLIST_SUB+= PULSE=""
|
2010-08-04 06:08:04 +02:00
|
|
|
.else
|
2013-03-17 10:04:56 +01:00
|
|
|
PLIST_SUB+= PULSE="@comment "
|
2014-01-15 06:44:43 +01:00
|
|
|
CMAKE_ARGS+= -DWITH_PULSE=OFF
|
2010-08-04 06:08:04 +02:00
|
|
|
.endif
|
|
|
|
|
2013-03-17 10:04:56 +01:00
|
|
|
.if ${PORT_OPTIONS:MSSE}
|
|
|
|
CMAKE_ARGS+= -DWITH_SSE2=ON
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DWITH_SSE2=OFF
|
2010-08-04 06:08:04 +02:00
|
|
|
.endif
|
|
|
|
|
2013-03-17 10:04:56 +01:00
|
|
|
post-extract:
|
|
|
|
${REINPLACE_CMD} -e 's|$${CMAKE_INSTALL_LIBDIR}/pkgconfig|libdata/pkgconfig|' \
|
2014-01-15 06:44:43 +01:00
|
|
|
-e '/CMAKE_INSTALL_RPATH /d' \
|
2013-03-17 10:04:56 +01:00
|
|
|
${WRKSRC}/CMakeLists.txt
|
|
|
|
${REINPLACE_CMD} -e 's|share/man/man1|man/man1|' \
|
|
|
|
${WRKSRC}/client/X11/CMakeLists.txt
|
2014-01-15 06:44:43 +01:00
|
|
|
${REINPLACE_CMD} -e 's|HW_AVAILCPU|HW_NCPU|' \
|
|
|
|
${WRKSRC}/winpr/libwinpr/sysinfo/sysinfo.c
|
|
|
|
${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|' \
|
|
|
|
${WRKSRC}/winpr/libwinpr/crt/alignment.c \
|
|
|
|
${WRKSRC}/channels/drive/client/statvfs.c
|
2010-08-04 06:08:04 +02:00
|
|
|
.include <bsd.port.mk>
|