2010-11-25 05:12:51 +01:00
|
|
|
# New ports collection makefile for: redshift
|
|
|
|
# Date created: Wed Nov 24 12:35:17 CST 2010
|
2013-07-29 17:03:58 +02:00
|
|
|
# Whom: Mark Felder <feld@FreeBSD.org>
|
2010-11-25 05:12:51 +01:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= redshift
|
2011-09-01 01:01:35 +02:00
|
|
|
PORTVERSION= 1.7
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 1
|
2010-11-25 05:12:51 +01:00
|
|
|
CATEGORIES= accessibility
|
|
|
|
MASTER_SITES= http://launchpad.net/redshift/trunk/${PORTVERSION}/+download/
|
|
|
|
|
2013-07-29 17:03:58 +02:00
|
|
|
MAINTAINER= feld@FreeBSD.org
|
2010-11-25 05:12:51 +01:00
|
|
|
COMMENT= Adjusts the color temperature of your screen
|
|
|
|
|
|
|
|
FETCH_ARGS= "-pRr"
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_BZIP2= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
INSTALLS_ICONS= yes
|
|
|
|
MAN1= redshift.1
|
|
|
|
MANCOMPRESSED= no
|
|
|
|
|
2012-06-11 04:46:35 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-wingdi
|
2010-11-25 05:12:51 +01:00
|
|
|
|
2012-06-11 04:46:35 +02:00
|
|
|
OPTIONS_DEFINE= GUI NLS RANDR VIDMODE
|
|
|
|
OPTIONS_DEFAULT= RANDR
|
|
|
|
|
|
|
|
GUI_DESC= Tray icon and location via Gnome clock
|
|
|
|
RANDR_DESC= Support RANDR for changing colors
|
|
|
|
VIDMODE_DESC= Support VIDMODE for changing colors (NVIDIA)
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2012-08-25 02:50:50 +02:00
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2013-04-24 20:10:30 +02:00
|
|
|
USES+= gettext
|
2010-11-25 05:12:51 +01:00
|
|
|
CONFIGURE_ARGS+=--with-libiconv-prefix=${LOCALBASE} \
|
2012-06-11 04:46:35 +02:00
|
|
|
--with-libintl-prefix=${LOCALBASE}
|
2010-11-25 05:12:51 +01:00
|
|
|
PLIST_SUB= NLS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB= NLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-06-11 04:46:35 +02:00
|
|
|
.if ${PORT_OPTIONS:MRANDR}
|
2010-11-25 05:12:51 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-randr
|
|
|
|
USE_XORG= xrandr
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-randr
|
|
|
|
.endif
|
|
|
|
|
2012-06-11 04:46:35 +02:00
|
|
|
.if ${PORT_OPTIONS:MVIDMODE}
|
2010-11-25 05:12:51 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-vidmode
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-vidmode
|
|
|
|
.endif
|
|
|
|
|
2012-06-11 04:46:35 +02:00
|
|
|
.if ${PORT_OPTIONS:MGUI}
|
2010-11-25 05:12:51 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-gui --enable-gnome-clock
|
2012-07-24 03:18:10 +02:00
|
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:${PORTSDIR}/x11-toolkits/py-gtk2 \
|
|
|
|
${PYTHON_SITELIBDIR}/xdg/__init__.py:${PORTSDIR}/devel/py-xdg
|
2010-11-25 05:12:51 +01:00
|
|
|
PLIST_SUB+= GUI=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-gui --disable-gnome-clock
|
|
|
|
PLIST_SUB+= GUI="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|