diff --git a/sysutils/screenbrightness/DESCR b/sysutils/screenbrightness/DESCR new file mode 100644 index 000000000000..d87b02f4bd4e --- /dev/null +++ b/sysutils/screenbrightness/DESCR @@ -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. diff --git a/sysutils/screenbrightness/Makefile b/sysutils/screenbrightness/Makefile new file mode 100644 index 000000000000..5bf1189d3adf --- /dev/null +++ b/sysutils/screenbrightness/Makefile @@ -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" diff --git a/sysutils/screenbrightness/PLIST b/sysutils/screenbrightness/PLIST new file mode 100644 index 000000000000..98a68b8cb486 --- /dev/null +++ b/sysutils/screenbrightness/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1 2015/01/17 15:34:21 wiedi Exp $ +bin/screenbrightness diff --git a/sysutils/screenbrightness/distinfo b/sysutils/screenbrightness/distinfo new file mode 100644 index 000000000000..547f0775b407 --- /dev/null +++ b/sysutils/screenbrightness/distinfo @@ -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 diff --git a/sysutils/screenbrightness/patches/patch-Makefile b/sysutils/screenbrightness/patches/patch-Makefile new file mode 100644 index 000000000000..efbec864a54e --- /dev/null +++ b/sysutils/screenbrightness/patches/patch-Makefile @@ -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 + +-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