blob: 57cd4a93bfb0bc57cd8e7eda4c412ad7e55f742d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# $NetBSD: Makefile,v 1.6 2020/01/26 17:31:49 rillig Exp $
DISTNAME= freerdp-2.0.0rc4
PKGNAME= ${DISTNAME:S/freerdp-/freerdp2-/1}
PKGREVISION= 2
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GITHUB:=FreeRDP/}
GITHUB_PROJECT= FreeRDP
GITHUB_TAG= 2.0.0-rc4
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.freerdp.com/
COMMENT= Free implementation of the Remote Desktop Protocol (major version 2)
LICENSE= apache-2.0
TOOL_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl
TOOL_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt
USE_CMAKE= yes
USE_TOOLS+= pkg-config
USE_LANGUAGES= c c++
CMAKE_ARGS+= -DWITH_SERVER=ON
CMAKE_ARGS+= -DWITH_CHANNELS=ON
CMAKE_ARGS+= -DWITH_JPEG=ON
CMAKE_ARGS+= -DWITH_WAYLAND=OFF # XXX needs epoll
CMAKE_ARGS+= -DWITH_GSTREAMER_1_0=OFF
CMAKE_ARGS+= -DAVCODEC_LIBRARY=${PREFIX}/lib/ffmpeg4/libavcodec.so
CFLAGS.SunOS+= -Du_int8_t=uint8_t -Du_int16_t=uint16_t -Du_int32_t=uint32_t -Du_int64_t=uint64_t
.include "../../mk/oss.buildlink3.mk"
.if ${OSS_TYPE} != "none"
CMAKE_ARGS+= -DWITH_OSS=ON
LDFLAGS+= ${LIBOSSAUDIO}
.else
CMAKE_ARGS+= -DWITH_OSS=OFF
.endif
# backtrace
LDFLAGS.NetBSD+= -lexecinfo
PKGCONFIG_OVERRIDE+= freerdp.pc.in
INSTALLATION_DIRS+= ${PKGMANDIR}/man1 ${PKGMANDIR}/man7
post-install:
.for page in freerdp-shadow-cli.1 winpr-hash.1 winpr-makecert.1 xfreerdp.1
${MV} ${DESTDIR}${PREFIX}/share/man/man1/${page} \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${page} || ${TRUE}
.endfor
${MV} ${DESTDIR}${PREFIX}/share/man/man7/wlog.7 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man7/wlog.7 || ${TRUE}
${MV} ${DESTDIR}${PREFIX}/share/man/man1/xfreerdp.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/xfreerdp2.1 || ${TRUE}
${MV} ${DESTDIR}${PREFIX}/bin/xfreerdp \
${DESTDIR}${PREFIX}/bin/xfreerdp2 || ${TRUE}
.include "options.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../multimedia/ffmpeg4/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|