summaryrefslogtreecommitdiff
path: root/net/xrdp
diff options
context:
space:
mode:
authorKoichiro Iwao <meta@FreeBSD.org>2018-08-16 01:51:04 +0000
committerKoichiro Iwao <meta@FreeBSD.org>2018-08-16 01:51:04 +0000
commitee246681e9524d40e0779f551379e525ab49baf6 (patch)
treec092f3f010d0dadf71aa8bd79c26d8a9c6252e0d /net/xrdp
parentApparently starting with version 20080615.2 dhcp6c refuses (diff)
New port: audio/pulseaudio-module-xrdp: separate PulseAudio modules from net/xrdp
This update separates PulseAudio modules from net/xrdp port. There're two reasons to separete them. The one is upstream now provides them as separated repositories. The another one is PulseAudio modules need to be rebuilt after the version of audio/pulseaudio changed but the most part of net/xrdp port doesn't need rebuild. This minimizes time for rebuilding. Approved by: hrs (mentor) Differential Revision: https://reviews.freebsd.org/D16621
Notes
Notes: svn path=/head/; revision=477306
Diffstat (limited to 'net/xrdp')
-rw-r--r--net/xrdp/Makefile30
-rw-r--r--net/xrdp/pkg-plist2
2 files changed, 2 insertions, 30 deletions
diff --git a/net/xrdp/Makefile b/net/xrdp/Makefile
index ddc58f6556a9..120addd4bbca 100644
--- a/net/xrdp/Makefile
+++ b/net/xrdp/Makefile
@@ -3,6 +3,7 @@
PORTNAME= xrdp
PORTVERSION= 0.9.7
+PORTREVISION= 1
DISTVERSIONPREFIX= v
PORTEPOCH= 1
CATEGORIES= net
@@ -14,9 +15,7 @@ COMMENT= Open source Remote Desktop Protocol (RDP) server
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/COPYING
-# pulseaudio's configured source is required for audio redirection
-BUILD_DEPENDS= ${NONEXISTENT}:audio/pulseaudio:configure \
- ${LOCALBASE}/bin/nasm:devel/nasm
+BUILD_DEPENDS= ${LOCALBASE}/bin/nasm:devel/nasm
RUN_DEPENDS= ${LOCALBASE}/lib/xorg/modules/libxorgxrdp.so:x11-drivers/xorgxrdp
USES= autoreconf:build jpeg localbase libtool pkgconfig ssl
@@ -57,39 +56,14 @@ MP3LAME_LIB_DEPENDS= libmp3lame.so:audio/lame
OPUS_CONFIGURE_ENABLE= opus
OPUS_LIB_DEPENDS= libopus.so:audio/opus
-# don't forget to increase PORTREVISION after pulseaudio update
-PULSE_VERSION= ${MAKE} -C ${PORTSDIR}/audio/pulseaudio -VPORTVERSION
-PULSE_WRKSRC= ${MAKE} -C ${PORTSDIR}/audio/pulseaudio -VWRKSRC
-
post-extract:
# librfxcodec is provided as git submodule
@${CP} -r ${WRKSRC_librfxcodec}/ ${WRKSRC}/librfxcodec/
@${CP} -r ${WRKSRC_libpainter}/ ${WRKSRC}/libpainter/
-post-patch:
- @${REINPLACE_CMD} \
- -e "s|^PULSE_DIR = .*|PULSE_DIR = `${PULSE_WRKSRC}`|" \
- -e "s|-Wall -O2|-Wall -O2 -I${LOCALBASE}/include|" \
- ${WRKSRC}/sesman/chansrv/pulse/Makefile
-
pre-configure:
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ./bootstrap
-post-build:
- # build pulseaudio module
- @${CP} -r "`${PULSE_WRKSRC}`" ${WRKDIR}
- @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} -C sesman/chansrv/pulse
-
-post-install:
- # install pulseaudio module
- ${MKDIR} "${STAGEDIR}${PREFIX}/lib/pulse-`${PULSE_VERSION}`/modules/"
-.for f in module-xrdp-sink.so module-xrdp-source.so
- ${INSTALL_LIB} -m 0755 ${WRKSRC}/sesman/chansrv/pulse/$f \
- "${STAGEDIR}${PREFIX}/lib/pulse-`${PULSE_VERSION}`/modules/"
-.endfor
- # substitute pkg-plist not using PLIST_SUB
- ${REINPLACE_CMD} -e "s|%%PULSE_VERSION%%|`${PULSE_VERSION}`|g" ${TMPPLIST}
-
post-stage:
@${RM} ${STAGEDIR}${PREFIX}/etc/xrdp/rsakeys.ini
@${RM} ${STAGEDIR}${PREFIX}/etc/xrdp/cert.pem
diff --git a/net/xrdp/pkg-plist b/net/xrdp/pkg-plist
index 01b731ddb042..d88ed24f4c8e 100644
--- a/net/xrdp/pkg-plist
+++ b/net/xrdp/pkg-plist
@@ -19,8 +19,6 @@ include/xrdp_client_info.h
include/xrdp_constants.h
include/xrdp_rail.h
include/xrdp_sockets.h
-lib/pulse-%%PULSE_VERSION%%/modules/module-xrdp-sink.so
-lib/pulse-%%PULSE_VERSION%%/modules/module-xrdp-source.so
libdata/pkgconfig/libpainter.pc
libdata/pkgconfig/rfxcodec.pc
libdata/pkgconfig/xrdp.pc