aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorjmd <jmd@FreeBSD.org>2018-03-16 10:26:14 +0800
committerjmd <jmd@FreeBSD.org>2018-03-16 10:26:14 +0800
commit098bc8790bcfa75b82d00391e3bd0b449ac5c5be (patch)
treee52ff191d2c96612d514dfe401f91fccee4c804e /graphics
parent58f644bf3f672763c43f98e1b6edf69cbb74d091 (diff)
downloadfreebsd-ports-gnome-098bc8790bcfa75b82d00391e3bd0b449ac5c5be.tar.gz
freebsd-ports-gnome-098bc8790bcfa75b82d00391e3bd0b449ac5c5be.tar.zst
freebsd-ports-gnome-098bc8790bcfa75b82d00391e3bd0b449ac5c5be.zip
graphics/intel-backlight: update to 20180303. This brings a large number of updates including examples and link to the upstream man page.
PR: 226326 Submitted by: 0mp@FreeBSD.org Reviewed by: swills (mentor) Approved by: swills (mentor)
Diffstat (limited to 'graphics')
-rw-r--r--graphics/intel-backlight/Makefile34
-rw-r--r--graphics/intel-backlight/distinfo6
-rw-r--r--graphics/intel-backlight/pkg-descr28
-rw-r--r--graphics/intel-backlight/pkg-plist3
4 files changed, 25 insertions, 46 deletions
diff --git a/graphics/intel-backlight/Makefile b/graphics/intel-backlight/Makefile
index 8e6afeb6330e..a85fd2cc45e1 100644
--- a/graphics/intel-backlight/Makefile
+++ b/graphics/intel-backlight/Makefile
@@ -2,36 +2,38 @@
# $FreeBSD$
PORTNAME= intel-backlight
-PORTVERSION= 20170831
+DISTVERSION= 20180303
CATEGORIES= graphics
MAINTAINER= jmd@freebsd.org
COMMENT= Control backlight on various modern Intel(R) GPUs
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+ONLY_FOR_ARCHS= amd64 i386
+ONLY_FOR_ARCHS_REASON= This hardware is only found on Intel x86 systems
+
LIB_DEPENDS= libdrm.so:graphics/libdrm \
libpciaccess.so:devel/libpciaccess
USE_GITHUB= yes
GH_ACCOUNT= FreeBSDDesktop
GH_PROJECT= intel_backlight_fbsd
-GH_TAGNAME= baba3e6
+GH_TAGNAME= 7339989
-PLIST_FILES= bin/intel_backlight
-PORTEXAMPLES= isl_backlight.sh
+PORTEXAMPLES= asmc_backlight.sh \
+ isl_backlight.sh
-ONLY_FOR_ARCHS= amd64 i386
-ONLY_FOR_ARCHS_REASON= This hardware is only found on Intel x86 systems
+INSTALL_TARGET= install-strip
-do-build:
- cd ${WRKSRC} && \
- ${CC} ${CFLAGS} -o intel_backlight -I${PREFIX}/include \
- -I${PREFIX}/include/libdrm -L${PREFIX}/lib -ldrm_intel \
- -lpciaccess intel_reg_map.c intel_mmio.c intel_backlight.c \
- intel_drm.c intel_pci.c
+OPTIONS_SUB= yes
+OPTIONS_DEFINE= EXAMPLES SUID
+OPTIONS_DEFAULT= SUID
+SUID_DESC= Install intel_backlight with the setuid bit set
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/intel_backlight ${STAGEDIR}${PREFIX}/bin
- ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/isl_backlight.sh ${STAGEDIR}${EXAMPLESDIR}
+do-install-EXAMPLES-on:
+ cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTEXAMPLES}" ${STAGEDIR}${EXAMPLESDIR}
+.include <bsd.port.options.mk>
.include <bsd.port.mk>
diff --git a/graphics/intel-backlight/distinfo b/graphics/intel-backlight/distinfo
index f66ed42584f6..6ca4ae3162f5 100644
--- a/graphics/intel-backlight/distinfo
+++ b/graphics/intel-backlight/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1504227150
-SHA256 (FreeBSDDesktop-intel_backlight_fbsd-20170831-baba3e6_GH0.tar.gz) = 909bcd0ad981ad3e198ea2ae8fb59f5fd0a42f18cf47eb80cd23a4bcf6639092
-SIZE (FreeBSDDesktop-intel_backlight_fbsd-20170831-baba3e6_GH0.tar.gz) = 41192
+TIMESTAMP = 1520187440
+SHA256 (FreeBSDDesktop-intel_backlight_fbsd-20180303-7339989_GH0.tar.gz) = 9f26c7275bdfe4e664a9e12263565d316c5356b258f2a4f8508a26adec313af2
+SIZE (FreeBSDDesktop-intel_backlight_fbsd-20180303-7339989_GH0.tar.gz) = 42229
diff --git a/graphics/intel-backlight/pkg-descr b/graphics/intel-backlight/pkg-descr
index fe968f298d67..5c2edbe95b53 100644
--- a/graphics/intel-backlight/pkg-descr
+++ b/graphics/intel-backlight/pkg-descr
@@ -1,29 +1,3 @@
Control backlight on various modern Intel(R) GPUs.
-See here for a list of supported chipsets:
-https://github.com/grembo/intel_backlight_fbsd/blob/master/intel_chipset.h
-
-See here for the original project this has been taken from:
-http://cgit.freedesktop.org/xorg/app/intel-gpu-tools/
-
-Usage:
- $ sudo intel_backlight
- current backlight value: 30% (281/937)
- $ sudo intel_backlight 50
- current backlight value: 15% (141/937)
- set backlight to 50% (469/937)
- $ sudo intel_backlight incr
- current backlight value: 50% (469/937)
- set backlight to 51% (478/937)
- $ sudo intel_backlight incr
- current backlight value: 51% (478/937)
- set backlight to 60% (562/937)
- $ sudo intel_backlight incr
- current backlight value: 60% (562/937)
- set backlight to 70% (656/937)
- $ sudo intel_backlight decr
- current backlight value: 70% (656/937)
- set backlight to 60% (562/937)
- $ sudo intel_backlight decr
- current backlight value: 60% (562/937)
- set backlight to 51% (478/937)
+WWW: https://github.com/FreeBSDDesktop/intel_backlight_fbsd
diff --git a/graphics/intel-backlight/pkg-plist b/graphics/intel-backlight/pkg-plist
new file mode 100644
index 000000000000..096c2049596e
--- /dev/null
+++ b/graphics/intel-backlight/pkg-plist
@@ -0,0 +1,3 @@
+%%SUID%%@(,,4555) bin/intel_backlight
+%%NO_SUID%%@(,,0555) bin/intel_backlight
+man/man1/intel_backlight.1.gz