diff options
author | snj <snj@pkgsrc.org> | 2016-05-18 22:18:43 +0000 |
---|---|---|
committer | snj <snj@pkgsrc.org> | 2016-05-18 22:18:43 +0000 |
commit | aee212a8117d8468340b28ab3de753247fac7312 (patch) | |
tree | fe9afd2381bef397c7fe61d2a93851d53bba9e44 /x11 | |
parent | 288b09ac2cf62171e4b1e81b27bbef4ffe6038bb (diff) | |
download | pkgsrc-aee212a8117d8468340b28ab3de753247fac7312.tar.gz |
Import redshift-1.11 as x11/redshift.
Redshift adjusts the color temperature of your screen according to the
position of the sun. A different color temperature is set during night and
daytime. During twilight and early morning, the color temperature
transitions smoothly from night to daytime temperature to allow your eyes to
slowly adapt. At night the color temperature should be set to match the
lamps in your room. This is typically a low temperature at around
3000K-4000K. During the day, the color temperature should match the light
from outside, typically around 5500K-6500K.
Diffstat (limited to 'x11')
-rw-r--r-- | x11/redshift/DESCR | 8 | ||||
-rw-r--r-- | x11/redshift/Makefile | 26 | ||||
-rw-r--r-- | x11/redshift/PLIST | 3 | ||||
-rw-r--r-- | x11/redshift/distinfo | 7 | ||||
-rw-r--r-- | x11/redshift/options.mk | 21 | ||||
-rw-r--r-- | x11/redshift/patches/patch-src_gamma-drm.c | 16 |
6 files changed, 81 insertions, 0 deletions
diff --git a/x11/redshift/DESCR b/x11/redshift/DESCR new file mode 100644 index 00000000000..51fb2a80b4d --- /dev/null +++ b/x11/redshift/DESCR @@ -0,0 +1,8 @@ +Redshift adjusts the color temperature of your screen according to the +position of the sun. A different color temperature is set during night and +daytime. During twilight and early morning, the color temperature +transitions smoothly from night to daytime temperature to allow your eyes to +slowly adapt. At night the color temperature should be set to match the +lamps in your room. This is typically a low temperature at around +3000K-4000K. During the day, the color temperature should match the light +from outside, typically around 5500K-6500K. diff --git a/x11/redshift/Makefile b/x11/redshift/Makefile new file mode 100644 index 00000000000..577aaee0e21 --- /dev/null +++ b/x11/redshift/Makefile @@ -0,0 +1,26 @@ +# $NetBSD: Makefile,v 1.1 2016/05/18 22:18:43 snj Exp $ + +DISTNAME= redshift-1.11 +CATEGORIES= x11 +MASTER_SITES= ${MASTER_SITE_GITHUB:=jonls/} +GITHUB_RELEASE= v1.11 +EXTRACT_SUFX= .tar.xz + +MAINTAINER= snj@NetBSD.org +HOMEPAGE= http://jonls.dk/redshift/ +COMMENT= Adjust screen color temperature based on the position of the sun + +LICENSE= gnu-gpl-v3 + +BUILD_DEPENDS+= gettext-tools-[0-9]*:../../devel/gettext-tools +GNU_CONFIGURE= yes +CONFIGURE_ARGS+=--disable-gui +USE_LIBTOOL= yes +USE_TOOLS+= intltool pkg-config + +.include "options.mk" + +.include "../../x11/libXxf86vm/buildlink3.mk" +.include "../../x11/libxcb/buildlink3.mk" + +.include "../../mk/bsd.pkg.mk" diff --git a/x11/redshift/PLIST b/x11/redshift/PLIST new file mode 100644 index 00000000000..0b212ddc8d1 --- /dev/null +++ b/x11/redshift/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1 2016/05/18 22:18:43 snj Exp $ +bin/redshift +man/man1/redshift.1 diff --git a/x11/redshift/distinfo b/x11/redshift/distinfo new file mode 100644 index 00000000000..8fa3fc8a938 --- /dev/null +++ b/x11/redshift/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2016/05/18 22:18:43 snj Exp $ + +SHA1 (redshift-1.11.tar.xz) = 759f1619c7ff0ab1cadda267343ef3665229d935 +RMD160 (redshift-1.11.tar.xz) = 692e6e1a430895169971d8744a38e24eb4094971 +SHA512 (redshift-1.11.tar.xz) = 88d7a4aabfaf3073f88673bc77df19d7bd79cb19aa8e647670cc52c02443475a4602f109fc4a06bf1639d1829d16a2644854039f90a614fc1a51c9cb4c81de16 +Size (redshift-1.11.tar.xz) = 377372 bytes +SHA1 (patch-src_gamma-drm.c) = c7785a4896ac7a0d80b7b64b56b04a71b1932a04 diff --git a/x11/redshift/options.mk b/x11/redshift/options.mk new file mode 100644 index 00000000000..4b51f0b45d0 --- /dev/null +++ b/x11/redshift/options.mk @@ -0,0 +1,21 @@ +# $NetBSD: options.mk,v 1.1 2016/05/18 22:18:43 snj Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.redshift + +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} == "Linux" || ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly" \ + || ${OPSYS} == "FreeBSD" || ${OPSYS} == "OpenBSD" || ${OPSYS} == "SunOS" +PKG_SUPPORTED_OPTIONS+= libdrm +PKG_SUGGESTED_OPTIONS+= libdrm + +.endif + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mlibdrm) +.include "../../x11/libdrm/buildlink3.mk" +CONFIGURE_ARGS+= --enable-drm +.else +CONFIGURE_ARGS+= --disable-drm +.endif diff --git a/x11/redshift/patches/patch-src_gamma-drm.c b/x11/redshift/patches/patch-src_gamma-drm.c new file mode 100644 index 00000000000..f96b0d02f15 --- /dev/null +++ b/x11/redshift/patches/patch-src_gamma-drm.c @@ -0,0 +1,16 @@ +$NetBSD: patch-src_gamma-drm.c,v 1.1 2016/05/18 22:18:43 snj Exp $ + +No alloca.h on non-Linux/non-SunOS systems. + +--- src/gamma-drm.c.orig 2015-05-20 00:07:57.000000000 -0700 ++++ src/gamma-drm.c 2015-05-20 00:08:01.000000000 -0700 +@@ -21,7 +21,9 @@ + #include <stdlib.h> + #include <stdint.h> + #include <string.h> ++#if defined(__linux__) || defined(__sun) + #include <alloca.h> ++#endif + #include <sys/types.h> + #include <sys/stat.h> + #include <fcntl.h> |