aboutsummaryrefslogtreecommitdiffstats
path: root/accessibility/redshift/Makefile
blob: 844e3b54afed3a045b511da223f5a37047de4552 (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
# Created by: Mark Felder <feld@FreeBSD.org>
# $FreeBSD$

PORTNAME=   redshift
PORTVERSION=    1.12
CATEGORIES= accessibility
DISTVERSIONPREFIX=  v

MAINTAINER= swills@FreeBSD.org
COMMENT=    Adjusts the color temperature of your screen

LICENSE=    GPLv3
LICENSE_FILE=   ${WRKSRC}/COPYING

USES=       autoreconf:build gettext gmake libtool localbase pkgconfig \
        shebangfix tar:bzip2
USE_GITHUB= yes
GH_ACCOUNT= jonls
USE_GNOME=  intltool
GNU_CONFIGURE=  yes
INSTALLS_ICONS= yes
SHEBANG_FILES=  src/redshift-gtk/redshift-gtk.in

CONFIGURE_ARGS+=    --disable-wingdi

LIB_DEPENDS=    libdrm.so:graphics/libdrm \
        libgeoclue-2.so:net/geoclue

OPTIONS_DEFINE= GNOME GUI NLS RANDR VIDMODE
OPTIONS_DEFAULT=RANDR
OPTIONS_SUB=    yes

GNOME_DESC= GNOME clock support
GUI_DESC=   Tray icon
RANDR_DESC= Support RANDR for changing colors
VIDMODE_DESC=   Support VIDMODE for changing colors (NVIDIA)

USE_XORG+=  x11 xcb

NLS_USES=       iconv
NLS_CONFIGURE_ON=   ${ICONV_CONFIGURE_ARG} \
            --with-libintl-prefix=${LOCALBASE}
NLS_CONFIGURE_OFF=  --disable-nls

RANDR_USE=      XORG=xrandr
RANDR_CONFIGURE_ENABLE= randr

VIDMODE_USE=        XORG=xxf86vm
VIDMODE_CONFIGURE_ENABLE=   vidmode

GUI_USES=       python:3.6+
GUI_CONFIGURE_ENABLE=   gui
GUI_RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}gobject3>0:devel/py-gobject3@${PY_FLAVOR} \
            ${PYTHON_PKGNAMEPREFIX}xdg>0:devel/py-xdg@${PY_FLAVOR}


GNOME_CONFIGURE_ENABLE= gnome-clock
GNOME_USE=      GNOME=glib20,gconf2

pre-configure:
    @cd ${WRKSRC} ; ./bootstrap

.include <bsd.port.mk>