sthen 3cbe1c2f30 Reverse the polarity of MODPY_VERSION; default is now 3.x,
if a port needs 2.x then set MODPY_VERSION=${MODPY_DEFAULT_VERSION_2}.

This commit doesn't change any versions currently used; it may be that
some ports have MODPY_DEFAULT_VERSION_2 but don't require it, those
should be cleaned up in the course of updating ports where possible.

Python module ports providing py3-* packages should still use
FLAVOR=python3 so that we don't have a mixture of dependencies some
using ${MODPY_FLAVOR} and others not.
2021-02-23 19:39:08 +00:00

76 lines
1.8 KiB
Makefile

# $OpenBSD: Makefile,v 1.51 2021/02/23 19:39:53 sthen Exp $
COMMENT= GTK client and libraries for SPICE remote desktop servers
DISTNAME= spice-gtk-0.39
EXTRACT_SUFX= .tar.xz
CATEGORIES= x11 net
SHARED_LIBS += spice-client-glib-2.0 6.1 # 8.7.0
SHARED_LIBS += spice-client-gtk-3.0 4.1 # 5.0.0
HOMEPAGE= http://www.spice-space.org/page/Spice-Gtk
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# LGPLv2.1
PERMIT_PACKAGE= Yes
WANTLIB += X11 c cairo crypto gdk-3 gdk_pixbuf-2.0 gio-2.0 glib-2.0
WANTLIB += gobject-2.0 gstapp-1.0 gstaudio-1.0 gstbase-1.0 gstreamer-1.0
WANTLIB += gstvideo-1.0 gtk-3 intl jpeg json-glib-1.0 lz4 m opus
WANTLIB += pixman-1 sasl2 ssl z
MASTER_SITES= http://www.spice-space.org/download/gtk/
COMPILER= base-clang ports-gcc ports-clang
COMPILER_LANGS = c
MODULES= devel/meson \
lang/python
MODPY_RUNDEP= No
BUILD_DEPENDS= devel/gettext,-tools \
devel/gobject-introspection \
devel/py-parsing${MODPY_FLAVOR} \
devel/py-six${MODPY_FLAVOR} \
devel/spice-protocol \
lang/vala \
sysutils/usbutils \
textproc/asciidoc
RUN_DEPENDS= sysutils/usbutils
# "Requires: spice-protocol" in spice-client-glib-2.0.pc,
# "Requires.private: gobject-introspection-1.0" in spice-client-gtk-3.0.pc.
RUN_DEPENDS += devel/gobject-introspection \
devel/spice-protocol
LIB_DEPENDS= archivers/lz4 \
audio/opus \
devel/json-glib \
multimedia/gstreamer1/plugins-base \
security/cyrus-sasl2 \
x11/gtk+3
CONFIGURE_ARGS= -Dsmartcard=disabled \
-Dusbredir=disabled \
-Dlibcap-ng=disabled \
-Dgtk_doc=disabled
# XXX requires new phodav port
CONFIGURE_ARGS += -Dwebdav=disabled
# XXX requires libacl
CONFIGURE_ARGS += -Dpolkit=disabled
# XXX requires the makecontext function (ucontext)
CONFIGURE_ARGS += -Dcoroutine=gthread
# base-gcc doesn't default to c99
CFLAGS += -std=gnu99
.include <bsd.port.mk>