pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Updating redshift to use options.mk



Module Name:	pkgsrc-wip
Committed By:	i3enedek <pkgsrc_git%i3enedek.neomailbox.net@localhost>
Pushed By:	i3enedek
Date:		Fri Feb 19 12:41:54 2016 +0000
Changeset:	a799e2c4e19a1f3a83a5c210720c6508c384f9c0

Modified Files:
	redshift/Makefile
Added Files:
	redshift/options.mk

Log Message:
Updating redshift to use options.mk

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a799e2c4e19a1f3a83a5c210720c6508c384f9c0

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 redshift/Makefile   |  7 ++-----
 redshift/options.mk | 28 ++++++++++++++++++++++++++++
 2 files changed, 30 insertions(+), 5 deletions(-)

diffs:
diff --git a/redshift/Makefile b/redshift/Makefile
index cbafb90..bce8634 100644
--- a/redshift/Makefile
+++ b/redshift/Makefile
@@ -19,15 +19,12 @@ USE_TOOLS+=	autopoint autoreconf intltoolize aclocal autoheader autoconf automak
 USE_LIBTOOL=            yes
 USE_LANGUAGES=	c c++
 
-CONFIGURE_ARGS+=	--enable-drm\
-			--disable-geoclue\
-			--disable-gui
+CONFIGURE_ARGS+=	--disable-gui
 
 pre-configure:
 	set -e; cd ${WRKSRC}; \
 	autopoint --force;  autoreconf --force --install --verbose ; intltoolize --force --automake --copy
 
+.include "options.mk"
 .include "../../x11/libX11/buildlink3.mk"
-.include "../../x11/libxcb/buildlink3.mk"
-.include "../../x11/libdrm/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/redshift/options.mk b/redshift/options.mk
new file mode 100644
index 0000000..5cc1a98
--- /dev/null
+++ b/redshift/options.mk
@@ -0,0 +1,28 @@
+# $NetBSD: options.mk,v 1.3 2015/07/20 23:03:24 dholland Exp $
+
+PKG_OPTIONS_VAR=		PKG_OPTIONS.redshift
+PKG_SUPPORTED_OPTIONS+=		drm randr geoclue
+PKG_SUGGESTED_OPTIONS=		drm randr
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mdrm)
+CONFIGURE_ARGS+=	--enable-drm
+.include "../../x11/libdrm/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=	--disable-drm
+.endif
+
+.if !empty(PKG_OPTIONS:Mrandr)
+CONFIGURE_ARGS+=	--enable-randr
+.include "../../x11/libxcb/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=	--disable-randr
+.endif
+
+.if !empty(PKG_OPTIONS:Mgeoclue)
+CONFIGURE_ARGS+=	--enable-geoclue
+.include "../../geography/geoclue/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=	--disable-geoclue
+.endif


Home | Main Index | Thread Index | Old Index