diff options
author | swills <swills@FreeBSD.org> | 2012-06-11 10:46:35 +0800 |
---|---|---|
committer | swills <swills@FreeBSD.org> | 2012-06-11 10:46:35 +0800 |
commit | 0665eb5c3b9f85d01808f9d9e045bb91eaaf52f3 (patch) | |
tree | 3db5ad1b75d63fb2fa50c572dfe9ebfede7fe3fa /accessibility/redshift | |
parent | 32ce70cdf57c649021453d08169ea4162d64ff63 (diff) | |
download | freebsd-ports-gnome-0665eb5c3b9f85d01808f9d9e045bb91eaaf52f3.tar.gz freebsd-ports-gnome-0665eb5c3b9f85d01808f9d9e045bb91eaaf52f3.tar.zst freebsd-ports-gnome-0665eb5c3b9f85d01808f9d9e045bb91eaaf52f3.zip |
- Convert to optionsng framework
PR: ports/168825
Submitted by: Mark Felder <feld@feld.me> (maintainer)
Diffstat (limited to 'accessibility/redshift')
-rw-r--r-- | accessibility/redshift/Makefile | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/accessibility/redshift/Makefile b/accessibility/redshift/Makefile index 4ec80fb7ccfb..7270632402af 100644 --- a/accessibility/redshift/Makefile +++ b/accessibility/redshift/Makefile @@ -22,38 +22,41 @@ INSTALLS_ICONS= yes MAN1= redshift.1 MANCOMPRESSED= no -CONFIGURE_ARGS+=--disable-wingdi --disable-gnome-clock --disable-gui +CONFIGURE_ARGS+= --disable-wingdi -.if !defined(WITHOUT_NLS) +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) USE_GETTEXT= yes CONFIGURE_ARGS+=--with-libiconv-prefix=${LOCALBASE} \ - --with-libintl-prefix=${LOCALBASE} + --with-libintl-prefix=${LOCALBASE} PLIST_SUB= NLS="" .else CONFIGURE_ARGS+=--disable-nls PLIST_SUB= NLS="@comment " .endif -OPTIONS= GUI "Tray icon & location via Gnome clock" off \ - RANDR "Support RANDR for changing colors" on \ - VIDMODE "Support VIDMODE for changing colors (NVIDIA)" off - -.include <bsd.port.options.mk> - -.if defined(WITH_RANDR) +.if ${PORT_OPTIONS:MRANDR} CONFIGURE_ARGS+=--enable-randr USE_XORG= xrandr .else CONFIGURE_ARGS+=--disable-randr .endif -.if defined(WITH_VIDMODE) +.if ${PORT_OPTIONS:MVIDMODE} CONFIGURE_ARGS+=--enable-vidmode .else CONFIGURE_ARGS+=--disable-vidmode .endif -.if defined(WITH_GUI) +.if ${PORT_OPTIONS:MGUI} CONFIGURE_ARGS+=--enable-gui --enable-gnome-clock RUN_DEPENDS+= py-gtk2:${PORTSDIR}/x11-toolkits/py-gtk2 \ py-xdg:${PORTSDIR}/devel/py-xdg |