2013-03-24 20:49:13 +01:00
|
|
|
# Created by: Steve Wills <swills@FreeBSD.org>
|
2011-02-03 03:57:45 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= xpra
|
2015-12-21 20:49:44 +01:00
|
|
|
PORTVERSION= 0.15.10
|
2016-12-11 16:22:47 +01:00
|
|
|
PORTREVISION= 6
|
2011-02-03 03:57:45 +01:00
|
|
|
CATEGORIES= x11
|
2012-05-31 22:52:49 +02:00
|
|
|
MASTER_SITES= http://xpra.org/src/
|
2011-02-03 03:57:45 +01:00
|
|
|
|
2017-01-30 15:55:08 +01:00
|
|
|
MAINTAINER= rezny@FreeBSD.org
|
2011-02-03 03:57:45 +01:00
|
|
|
COMMENT= Xpra gives you persistent remote applications for X
|
|
|
|
|
2013-12-22 04:31:32 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2016-04-01 16:33:55 +02:00
|
|
|
BUILD_DEPENDS= cython:lang/cython \
|
|
|
|
${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:x11-toolkits/py-gtk2
|
2017-01-08 15:42:50 +01:00
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lz4>=0.7.0_1:archivers/py-lz4 \
|
2016-04-01 16:33:55 +02:00
|
|
|
${PYTHON_SITELIBDIR}/rencode/__init__.py:converters/py-rencode \
|
|
|
|
${PYTHON_SITELIBDIR}/dbus/__init__.py:devel/py-dbus \
|
2016-05-09 21:26:26 +02:00
|
|
|
${PYTHON_SITELIBDIR}/OpenGL/__init__.py:graphics/py-PyOpenGL \
|
|
|
|
${PYTHON_SITELIBDIR}/OpenGL_accelerate/__init__.py:graphics/py-PyOpenGL-accelerate \
|
2016-04-01 16:33:55 +02:00
|
|
|
${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow \
|
|
|
|
${PYTHON_SITELIBDIR}/netifaces.so:net/py-netifaces \
|
|
|
|
ssh-askpass:security/openssh-askpass \
|
|
|
|
setxkbmap:x11/setxkbmap \
|
|
|
|
xauth:x11/xauth \
|
|
|
|
xkbcomp:x11/xkbcomp \
|
|
|
|
${LOCALBASE}/share/X11/xkb/rules/base:x11/xkeyboard-config \
|
|
|
|
Xvfb:x11-servers/xorg-vfbserver \
|
|
|
|
${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:x11-toolkits/py-gtk2 \
|
|
|
|
${PYTHON_SITELIBDIR}/gtk-2.0/gtk/gtkgl/__init__.py:x11-toolkits/py-gtkglext
|
2012-11-11 16:23:02 +01:00
|
|
|
|
2015-10-20 02:10:42 +02:00
|
|
|
USES= desktop-file-utils pkgconfig python shared-mime-info tar:xz
|
2015-12-15 23:54:57 +01:00
|
|
|
USE_GSTREAMER= good python
|
2014-10-07 14:23:43 +02:00
|
|
|
USE_PYTHON= distutils
|
2015-03-11 20:39:41 +01:00
|
|
|
USE_XORG= x11 xcomposite xdamage xfixes xkbfile xrandr xtst
|
2014-05-23 19:23:01 +02:00
|
|
|
PLIST_SUB+= PORTVERSION=${PORTVERSION} PYTHON_VER=${PYTHON_VER}
|
2011-02-03 03:57:45 +01:00
|
|
|
|
2015-12-15 23:54:57 +01:00
|
|
|
OPTIONS_DEFINE= AVAHI AVCODEC CUPS OPENCL SWSCALE VPX WEBP X264 X265
|
|
|
|
OPTIONS_DEFAULT= AVAHI AVCODEC CUPS SWSCALE VPX WEBP X264 X265
|
2015-10-20 02:10:42 +02:00
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
|
|
|
AVCODEC_DESC= Enable avcodec2 decoder
|
|
|
|
OPENCL_DESC= Enable OpenCL CSC module
|
|
|
|
SWSCALE_DESC= Enable swscale CSC module
|
|
|
|
VPX_DESC= Enable VP8 and VP9 encoder
|
|
|
|
WEBP_DESC= Enable WebP encoder
|
|
|
|
X264_DESC= Enable X264 encoder
|
|
|
|
X265_DESC= Enable X265 encoder
|
|
|
|
|
2016-04-01 16:33:55 +02:00
|
|
|
AVAHI_RUN_DEPENDS= ${PYTHON_SITELIBDIR}/avahi/__init__.py:net/py-avahi
|
2015-10-20 02:10:42 +02:00
|
|
|
AVCODEC_VARS= XPRA_OPTIONS+=dec_avcodec2
|
2016-04-01 16:33:55 +02:00
|
|
|
CUPS_RUN_DEPENDS= ${PYTHON_SITELIBDIR}/cups.so:print/py-pycups
|
|
|
|
OPENCL_LIB_DEPENDS= libOpenCL.so:devel/ocl-icd
|
|
|
|
OPENCL_RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pyopencl/__init__.py:devel/py-pyopencl
|
2015-10-20 02:10:42 +02:00
|
|
|
OPENCL_VARS= XPRA_OPTIONS+=csc_opencl
|
|
|
|
SWSCALE_VARS= XPRA_OPTIONS+=csc_swscale
|
2016-04-01 16:33:55 +02:00
|
|
|
VPX_LIB_DEPENDS= libvpx.so:multimedia/libvpx
|
2015-10-20 02:10:42 +02:00
|
|
|
VPX_VARS= XPRA_OPTIONS+=vpx
|
2016-04-01 16:33:55 +02:00
|
|
|
WEBP_LIB_DEPENDS= libwebp.so:graphics/webp
|
2015-10-20 02:10:42 +02:00
|
|
|
WEBP_VARS= XPRA_OPTIONS+=webp
|
2016-04-01 16:33:55 +02:00
|
|
|
X264_LIB_DEPENDS= libx264.so:multimedia/libx264
|
2015-10-20 02:10:42 +02:00
|
|
|
X264_VARS= XPRA_OPTIONS+=enc_x264
|
2016-04-01 16:33:55 +02:00
|
|
|
X265_LIB_DEPENDS= libx265.so:multimedia/x265
|
2015-10-20 02:10:42 +02:00
|
|
|
X265_VARS= XPRA_OPTIONS+=enc_x265
|
|
|
|
|
2013-12-21 13:52:58 +01:00
|
|
|
PYDISTUTILS_PKGNAME= xpra_all
|
2015-10-20 02:10:42 +02:00
|
|
|
XPRA_OPTIONS_ALL= csc_opencl csc_swscale dec_avcodec2
|
|
|
|
XPRA_OPTIONS_ALL+= enc_x264 enc_x265 vpx webp
|
|
|
|
XPRA_OPTIONS_ALL+= ${XPRA_OPTIONS_DISABLED}
|
|
|
|
XPRA_OPTIONS_DISABLED= Xdummy Xdummy_wrapper
|
|
|
|
XPRA_OPTIONS_DISABLED+= nvenc3 nvenc4 nvenc5
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.for opt in ${XPRA_OPTIONS_ALL}
|
|
|
|
.if empty(XPRA_OPTIONS:M${opt})
|
|
|
|
PYDISTUTILS_ARGS+= --without-${opt}
|
|
|
|
.else
|
|
|
|
PYDISTUTILS_ARGS+= --with-${opt}
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MAVCODEC} || ${PORT_OPTIONS:MSWSCALE}
|
2016-04-01 16:33:55 +02:00
|
|
|
LIB_DEPENDS+= libavcodec.so:multimedia/ffmpeg
|
2015-10-20 02:10:42 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
PYDISTUTILS_BUILDARGS+= ${PYDISTUTILS_ARGS}
|
|
|
|
PYDISTUTILS_CONFIGUREARGS+= ${PYDISTUTILS_ARGS}
|
|
|
|
PYDISTUTILS_INSTALLARGS+= ${PYDISTUTILS_ARGS}
|
2011-02-03 03:57:45 +01:00
|
|
|
|
2015-06-10 19:13:51 +02:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e 's|/usr/share|${LOCALBASE}/share|' \
|
|
|
|
${WRKSRC}/xpra/platform/pycups_printing.py
|
|
|
|
|
2013-12-22 04:31:32 +01:00
|
|
|
post-install:
|
2015-10-20 02:10:42 +02:00
|
|
|
${RM} ${STAGEDIR}${ETCDIR}/xpra.conf
|
2015-06-10 19:13:51 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/build/etc/xpra/xpra.conf \
|
2015-03-11 21:10:28 +01:00
|
|
|
${STAGEDIR}${ETCDIR}/xpra.conf.sample
|
2015-10-20 02:10:42 +02:00
|
|
|
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME} -name '*.so' \
|
|
|
|
-exec ${STRIP_CMD} {} \;
|
2013-12-22 04:31:32 +01:00
|
|
|
|
2015-10-20 02:10:42 +02:00
|
|
|
.include <bsd.port.post.mk>
|