freebsd-ports/accessibility/redshift/Makefile
Alex Kozlov e159824929 - Convert USE_GETTEXT to USES (part 3)
Approved by:	portmgr (bapt)
2013-04-24 18:10:30 +00:00

69 lines
1.6 KiB
Makefile

# New ports collection makefile for: redshift
# Date created: Wed Nov 24 12:35:17 CST 2010
# Whom: Mark Felder <feld@feld.me>
#
# $FreeBSD$
#
PORTNAME= redshift
PORTVERSION= 1.7
PORTREVISION= 1
CATEGORIES= accessibility
MASTER_SITES= http://launchpad.net/redshift/trunk/${PORTVERSION}/+download/
MAINTAINER= feld@feld.me
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
CONFIGURE_ARGS+= --disable-wingdi
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>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
CONFIGURE_ARGS+=--with-libiconv-prefix=${LOCALBASE} \
--with-libintl-prefix=${LOCALBASE}
PLIST_SUB= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB= NLS="@comment "
.endif
.if ${PORT_OPTIONS:MRANDR}
CONFIGURE_ARGS+=--enable-randr
USE_XORG= xrandr
.else
CONFIGURE_ARGS+=--disable-randr
.endif
.if ${PORT_OPTIONS:MVIDMODE}
CONFIGURE_ARGS+=--enable-vidmode
.else
CONFIGURE_ARGS+=--disable-vidmode
.endif
.if ${PORT_OPTIONS:MGUI}
CONFIGURE_ARGS+=--enable-gui --enable-gnome-clock
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:${PORTSDIR}/x11-toolkits/py-gtk2 \
${PYTHON_SITELIBDIR}/xdg/__init__.py:${PORTSDIR}/devel/py-xdg
PLIST_SUB+= GUI=""
.else
CONFIGURE_ARGS+=--disable-gui --disable-gnome-clock
PLIST_SUB+= GUI="@comment "
.endif
.include <bsd.port.mk>