aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/spice-gtk/Makefile
blob: c07f4b208f349a2fb2929f689d1624ba55707ee1 (plain) (blame)
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Created by: olevole@olevole.ru
# $FreeBSD$

PORTNAME=   spice-gtk
PORTVERSION=    0.37
CATEGORIES?=    deskutils gnome
MASTER_SITES=   http://www.spice-space.org/download/gtk/

MAINTAINER= xxjack12xx@gmail.com
COMMENT=    Gtk client and libraries for SPICE remote desktop servers

LICENSE=    GPLv2

NOT_FOR_ARCHS=      powerpc powerpc64 powerpcspe sparc64
NOT_FOR_ARCHS_REASON=   server only supports little-endian

LIB_DEPENDS=    libepoxy.so:graphics/libepoxy \
        libjson-glib-1.0.so:devel/json-glib \
        libopus.so:audio/opus \
        libva-x11.so:multimedia/libva
BUILD_DEPENDS=  ${PYTHON_PKGNAMEPREFIX}pyparsing>=2.0.1:devel/py-pyparsing@${PY_FLAVOR} \
        spice-protocol>=0.12.15:devel/spice-protocol
RUN_DEPENDS=    spice-protocol>=0.12.15:devel/spice-protocol

USES=       autoreconf cpe gettext-tools gmake gnome jpeg libtool \
        localbase:ldflags pkgconfig python ssl tar:bzip2
USE_XORG=   pixman x11
USE_GNOME=  cairo gdkpixbuf2 gnomeprefix gtk30 intltool introspection:build
USE_GSTREAMER1= yes

CPE_VENDOR= redhat

SPICE_SSL_CFLAGS=   -I${OPENSSLINC}
SPICE_SSL_LIBS=     -L${OPENSSLLIB} -lcrypto -lssl
CONFIGURE_ENV+=     OPENSSL_CFLAGS="${SPICE_SSL_CFLAGS}" \
            OPENSSL_LIBS="${SPICE_SSL_LIBS}" \
            SSL_CFLAGS="${SPICE_SSL_CFLAGS}" \
            SSL_LIBS="${SPICE_SSL_LIBS}"

GNU_CONFIGURE=  yes
USE_LDCONFIG=   yes

# we can't use pathfix with USES=autoreconf
MAKE_ARGS=  pkgconfigdir="${PREFIX}/libdata/pkgconfig"

INSTALL_TARGET= install-strip

OPTIONS_DEFINE=     BUILTIN-MJPEG DOCS INTROSPECTION LZ4 NLS PIE POLKIT \
            PULSEAUDIO SASL
OPTIONS_DEFAULT=    BUILTIN-MJPEG INTROSPECTION LZ4 PIE POLKIT PULSEAUDIO \
            SASL
OPTIONS_SUB=        yes

LZ4_CONFIGURE_ON=   --enable-lz4=yes
LZ4_CONFIGURE_OFF=  --enable-lz4=no
LZ4_LIB_DEPENDS+=   liblz4.so:archivers/liblz4

NLS_USES=       gettext
NLS_CONFIGURE_ENABLE=   nls

BUILTIN-MJPEG_CONFIGURE_ENABLE= builtin-mjpeg
BUILTIN-MJPEG_DESC=     Enable the builtin mjpeg video decoder

INTROSPECTION_CONFIGURE_ON= --enable-introspection=yes
INTROSPECTION_CONFIGURE_OFF=    --enable-introspection=no
INTROSPECTION_DESC=     Enable introspection for this build

PIE_CONFIGURE_ON=   --enable-pie=yes
PIE_CONFIGURE_OFF=  --enable-pie=no
PIE_DESC=       Enable position-independent-executable support (for usb acl helper)

POLKIT_CONFIGURE_ON=    --enable-polkit=yes
POLKIT_CONFIGURE_OFF=   --enable-polkit=no
POLKIT_DESC=        Enable PolicyKit support (for usb acl helper)

PULSEAUDIO_CONFIGURE_ON=    --enable-pulse=yes
PULSEAUDIO_CONFIGURE_OFF=   --enable-pulse=no
PULSEAUDIO_LIB_DEPENDS=     libpulse.so:audio/pulseaudio

SASL_CONFIGURE_ON=  --with-sasl=yes
SASL_CONFIGURE_OFF= --with-sasl=no
SASL_LIB_DEPENDS=   libsasl2.so:security/cyrus-sasl2

.include <bsd.port.mk>