Import screenbrightness-1.1 as sysutils/screenbrightness

screenbrightness is an OS X command line utility for changing screen brightness.
It also lets you retrieve the current brightness settings.
This commit is contained in:
wiedi 2015-01-17 15:34:21 +00:00
parent 20a5c0d763
commit 6b7e2d8ae6
5 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1,2 @@
screenbrightness is an OS X command line utility for changing screen brightness.
It also lets you retrieve the current brightness settings.

View file

@ -0,0 +1,21 @@
# $NetBSD: Makefile,v 1.1 2015/01/17 15:34:21 wiedi Exp $
VERSION= 1.1
DISTNAME= ${VERSION}
PKGNAME= screenbrightness-${VERSION}
CATEGORIES= sysutils
MASTER_SITES= https://github.com/jmstacey/screenbrightness/archive/
MAINTAINER= wiedi@frubar.net
HOMEPAGE= https://github.com/jmstacey/screenbrightness/
COMMENT= Command-line display brightness control for OS X
LICENSE= 2-clause-bsd
WRKSRC= ${WRKDIR}/screenbrightness-${VERSION}
USE_TOOLS+= gmake
BUILD_TARGET= build
MAKE_ENV+= DESTDIR=${DESTDIR}
ONLY_FOR_PLATFORM= Darwin-*-*
.include "../../mk/bsd.pkg.mk"

View file

@ -0,0 +1,2 @@
@comment $NetBSD: PLIST,v 1.1 2015/01/17 15:34:21 wiedi Exp $
bin/screenbrightness

View file

@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.1 2015/01/17 15:34:21 wiedi Exp $
SHA1 (1.1.tar.gz) = f9750733ac298837f519fcfedcbfec74f781bc68
RMD160 (1.1.tar.gz) = e99e365e90e6ade83af2d6b842a71472252b98a6
Size (1.1.tar.gz) = 2603 bytes
SHA1 (patch-Makefile) = 6f56125fe38c5cc06d8b3928c88b2b4a0fd8bd0c

View file

@ -0,0 +1,23 @@
$NetBSD: patch-Makefile,v 1.1 2015/01/17 15:34:21 wiedi Exp $
install to correct prefix
--- Makefile.orig 2013-11-02 05:56:09.000000000 +0000
+++ Makefile
@@ -3,9 +3,7 @@
# Friday November 1, 2013
# Jon Stacey <jon@jonsview.com>
-prefix=/usr/local
-
-CC=clang
+prefix=$(DESTDIR)$(PREFIX)
build: screenbrightness
@@ -20,4 +18,4 @@ clean:
install:
mkdir -p $(prefix)/bin
- install -s -m 0755 screenbrightness $(prefix)/bin
\ No newline at end of file
+ install -s -m 0755 screenbrightness $(prefix)/bin