Lines 2-13
Link Here
|
2 |
# Date created: Wed Nov 24 12:35:17 CST 2010 |
2 |
# Date created: Wed Nov 24 12:35:17 CST 2010 |
3 |
# Whom: Mark Felder <feld@feld.me> |
3 |
# Whom: Mark Felder <feld@feld.me> |
4 |
# |
4 |
# |
5 |
# $FreeBSD: ports/accessibility/redshift/Makefile,v 1.3 2012/06/01 05:15:45 dinoex Exp $ |
5 |
# $FreeBSD: ports/accessibility/redshift/Makefile,v 1.2 2011/08/31 23:01:35 dhn Exp $ |
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= redshift |
8 |
PORTNAME= redshift |
9 |
PORTVERSION= 1.7 |
9 |
PORTVERSION= 1.7 |
10 |
PORTREVISION= 1 |
|
|
11 |
CATEGORIES= accessibility |
10 |
CATEGORIES= accessibility |
12 |
MASTER_SITES= http://launchpad.net/redshift/trunk/${PORTVERSION}/+download/ |
11 |
MASTER_SITES= http://launchpad.net/redshift/trunk/${PORTVERSION}/+download/ |
13 |
|
12 |
|
Lines 22-59
Link Here
|
22 |
MAN1= redshift.1 |
21 |
MAN1= redshift.1 |
23 |
MANCOMPRESSED= no |
22 |
MANCOMPRESSED= no |
24 |
|
23 |
|
25 |
CONFIGURE_ARGS+=--disable-wingdi --disable-gnome-clock --disable-gui |
24 |
CONFIGURE_ARGS+= --disable-wingdi |
26 |
|
25 |
|
27 |
.if !defined(WITHOUT_NLS) |
26 |
OPTIONS_DEFINE= GUI NLS RANDR VIDMODE |
|
|
27 |
OPTIONS_DEFAULT= RANDR |
28 |
|
29 |
GUI_DESC= Tray icon and location via Gnome clock |
30 |
RANDR_DESC= Support RANDR for changing colors |
31 |
VIDMODE_DESC= Support VIDMODE for changing colors (NVIDIA) |
32 |
|
33 |
.include <bsd.port.options.mk> |
34 |
|
35 |
.if ${PORT_OPTIONS:MNLS) |
28 |
USE_GETTEXT= yes |
36 |
USE_GETTEXT= yes |
29 |
CONFIGURE_ARGS+=--with-libiconv-prefix=${LOCALBASE} \ |
37 |
CONFIGURE_ARGS+=--with-libiconv-prefix=${LOCALBASE} \ |
30 |
--with-libintl-prefix=${LOCALBASE} |
38 |
--with-libintl-prefix=${LOCALBASE} |
31 |
PLIST_SUB= NLS="" |
39 |
PLIST_SUB= NLS="" |
32 |
.else |
40 |
.else |
33 |
CONFIGURE_ARGS+=--disable-nls |
41 |
CONFIGURE_ARGS+=--disable-nls |
34 |
PLIST_SUB= NLS="@comment " |
42 |
PLIST_SUB= NLS="@comment " |
35 |
.endif |
43 |
.endif |
36 |
|
44 |
|
37 |
OPTIONS= GUI "Tray icon & location via Gnome clock" off \ |
45 |
.if ${PORT_OPTIONS:MRANDR} |
38 |
RANDR "Support RANDR for changing colors" on \ |
|
|
39 |
VIDMODE "Support VIDMODE for changing colors (NVIDIA)" off |
40 |
|
41 |
.include <bsd.port.options.mk> |
42 |
|
43 |
.if defined(WITH_RANDR) |
44 |
CONFIGURE_ARGS+=--enable-randr |
46 |
CONFIGURE_ARGS+=--enable-randr |
45 |
USE_XORG= xrandr |
47 |
USE_XORG= xrandr |
46 |
.else |
48 |
.else |
47 |
CONFIGURE_ARGS+=--disable-randr |
49 |
CONFIGURE_ARGS+=--disable-randr |
48 |
.endif |
50 |
.endif |
49 |
|
51 |
|
50 |
.if defined(WITH_VIDMODE) |
52 |
.if ${PORT_OPTIONS:MVIDMODE} |
51 |
CONFIGURE_ARGS+=--enable-vidmode |
53 |
CONFIGURE_ARGS+=--enable-vidmode |
52 |
.else |
54 |
.else |
53 |
CONFIGURE_ARGS+=--disable-vidmode |
55 |
CONFIGURE_ARGS+=--disable-vidmode |
54 |
.endif |
56 |
.endif |
55 |
|
57 |
|
56 |
.if defined(WITH_GUI) |
58 |
.if ${PORT_OPTIONS:MGUI} |
57 |
CONFIGURE_ARGS+=--enable-gui --enable-gnome-clock |
59 |
CONFIGURE_ARGS+=--enable-gui --enable-gnome-clock |
58 |
RUN_DEPENDS+= py-gtk2:${PORTSDIR}/x11-toolkits/py-gtk2 \ |
60 |
RUN_DEPENDS+= py-gtk2:${PORTSDIR}/x11-toolkits/py-gtk2 \ |
59 |
py-xdg:${PORTSDIR}/devel/py-xdg |
61 |
py-xdg:${PORTSDIR}/devel/py-xdg |