Date: Fri, 16 Mar 2018 02:26:14 +0000 (UTC) From: Johannes M Dieterich <jmd@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r464647 - head/graphics/intel-backlight Message-ID: <201803160226.w2G2QEvA076539@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jmd Date: Fri Mar 16 02:26:14 2018 New Revision: 464647 URL: https://svnweb.freebsd.org/changeset/ports/464647 Log: 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) Added: head/graphics/intel-backlight/pkg-plist (contents, props changed) Modified: head/graphics/intel-backlight/Makefile head/graphics/intel-backlight/distinfo head/graphics/intel-backlight/pkg-descr Modified: head/graphics/intel-backlight/Makefile ============================================================================== --- head/graphics/intel-backlight/Makefile Fri Mar 16 02:21:33 2018 (r464646) +++ head/graphics/intel-backlight/Makefile Fri Mar 16 02:26:14 2018 (r464647) @@ -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> Modified: head/graphics/intel-backlight/distinfo ============================================================================== --- head/graphics/intel-backlight/distinfo Fri Mar 16 02:21:33 2018 (r464646) +++ head/graphics/intel-backlight/distinfo Fri Mar 16 02:26:14 2018 (r464647) @@ -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 Modified: head/graphics/intel-backlight/pkg-descr ============================================================================== --- head/graphics/intel-backlight/pkg-descr Fri Mar 16 02:21:33 2018 (r464646) +++ head/graphics/intel-backlight/pkg-descr Fri Mar 16 02:26:14 2018 (r464647) @@ -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 Added: head/graphics/intel-backlight/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/intel-backlight/pkg-plist Fri Mar 16 02:26:14 2018 (r464647) @@ -0,0 +1,3 @@ +%%SUID%%@(,,4555) bin/intel_backlight +%%NO_SUID%%@(,,0555) bin/intel_backlight +man/man1/intel_backlight.1.gz
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803160226.w2G2QEvA076539>