Wed May 18 22:47:42 2016 UTC ()
add option to use geoclue. disabled by default.


(snj)
diff -r1.1 -r1.2 pkgsrc/x11/redshift/options.mk

cvs diff -r1.1 -r1.2 pkgsrc/x11/redshift/options.mk (expand / switch to context diff)
--- pkgsrc/x11/redshift/options.mk 2016/05/18 22:18:43 1.1
+++ pkgsrc/x11/redshift/options.mk 2016/05/18 22:47:42 1.2
@@ -1,6 +1,7 @@
-# $NetBSD: options.mk,v 1.1 2016/05/18 22:18:43 snj Exp $
+# $NetBSD: options.mk,v 1.2 2016/05/18 22:47:42 snj Exp $
 
 PKG_OPTIONS_VAR=	PKG_OPTIONS.redshift
+PKG_SUPPORTED_OPTIONS=	geoclue
 
 .include "../../mk/bsd.prefs.mk"
 
@@ -18,4 +19,9 @@
 CONFIGURE_ARGS+=	--enable-drm
 .else
 CONFIGURE_ARGS+=	--disable-drm
+.endif
+
+.if !empty(PKG_OPTIONS:Mgeoclue)
+.include "../../geography/geoclue/buildlink3.mk"
+CONFIGURE_ARGS+=	--enable-geoclue --disable-geoclue2
 .endif