From owner-svn-ports-all@freebsd.org Sun May 31 13:10:34 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 99149334F9D; Sun, 31 May 2020 13:10:34 +0000 (UTC) (envelope-from adridg@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49Zdvt2F3vz45Cn; Sun, 31 May 2020 13:10:34 +0000 (UTC) (envelope-from adridg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 482C61A44A; Sun, 31 May 2020 13:10:34 +0000 (UTC) (envelope-from adridg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 04VDAYLY057648; Sun, 31 May 2020 13:10:34 GMT (envelope-from adridg@FreeBSD.org) Received: (from adridg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 04VDAXYZ056466; Sun, 31 May 2020 13:10:33 GMT (envelope-from adridg@FreeBSD.org) Message-Id: <202005311310.04VDAXYZ056466@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: adridg set sender to adridg@FreeBSD.org using -f From: Adriaan de Groot Date: Sun, 31 May 2020 13:10:33 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r537159 - in head/graphics: . tslib tslib/files X-SVN-Group: ports-head X-SVN-Commit-Author: adridg X-SVN-Commit-Paths: in head/graphics: . tslib tslib/files X-SVN-Commit-Revision: 537159 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 May 2020 13:10:34 -0000 Author: adridg Date: Sun May 31 13:10:32 2020 New Revision: 537159 URL: https://svnweb.freebsd.org/changeset/ports/537159 Log: New port graphics/tslib, touchscreen support This is a library that handles touchscreen support, translating evdev or other input sources to events that can be consumed by other graphical toolkits. It's one of the ways to hook Qt up to a framebuffer and touchscreen, for instance. Currently has no consumers (the Qt side needs other work as well). The one patch has been submitted and accepted upstream, but there's no newer upstream release. Added: head/graphics/tslib/ head/graphics/tslib/Makefile (contents, props changed) head/graphics/tslib/distinfo (contents, props changed) head/graphics/tslib/files/ head/graphics/tslib/files/patch-git-b80ebf565ed56be2a59b036c3b3ec5a2afd25dc8 (contents, props changed) head/graphics/tslib/pkg-descr (contents, props changed) head/graphics/tslib/pkg-plist (contents, props changed) Modified: head/graphics/Makefile Modified: head/graphics/Makefile ============================================================================== --- head/graphics/Makefile Sun May 31 12:42:19 2020 (r537158) +++ head/graphics/Makefile Sun May 31 13:10:32 2020 (r537159) @@ -1026,6 +1026,7 @@ SUBDIR += tinyows SUBDIR += tkpng SUBDIR += togl + SUBDIR += tslib SUBDIR += ttygif SUBDIR += ttyplot SUBDIR += tumble Added: head/graphics/tslib/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/tslib/Makefile Sun May 31 13:10:32 2020 (r537159) @@ -0,0 +1,20 @@ +# $FreeBSD$ + +PORTNAME= tslib +DISTVERSION= 1.21 +CATEGORIES= graphics + +MAINTAINER= adridg@FreeBSD.org +COMMENT= Touchscreen access library + +LICENSE= LGPL21 + +USES= cmake + +USE_GITHUB= yes +GH_ACCOUNT= libts + +# - Waveshare requires Linux internals +CMAKE_OFF= enable-waveshare + +.include Added: head/graphics/tslib/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/tslib/distinfo Sun May 31 13:10:32 2020 (r537159) @@ -0,0 +1,3 @@ +TIMESTAMP = 1586901679 +SHA256 (libts-tslib-1.21_GH0.tar.gz) = 8b3df2af000aff5c1efcab40ba96d3a61859062e6630f6090b6994e6272e0d30 +SIZE (libts-tslib-1.21_GH0.tar.gz) = 228626 Added: head/graphics/tslib/files/patch-git-b80ebf565ed56be2a59b036c3b3ec5a2afd25dc8 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/tslib/files/patch-git-b80ebf565ed56be2a59b036c3b3ec5a2afd25dc8 Sun May 31 13:10:32 2020 (r537159) @@ -0,0 +1,45 @@ +diff --git tools/ts_uinput.c tools/ts_uinput.c +index 9c40bb3..912ff72 100644 +--- tools/ts_uinput.c ++++ tools/ts_uinput.c +@@ -1,6 +1,7 @@ + /* + * (C) 2017 Ginzinger electronic systems GmbH, A-4952 Weng im Innkreis + * ++ * Adriaan de Groot 2020-04-15 + * Martin Kepplinger 2016-09-14 + * Melchior FRANZ 2015-09-30 + * +@@ -361,6 +362,23 @@ static int send_touch_events(struct data_t *data, struct ts_sample_mt **s, + + static int get_abs_max_fb(struct data_t *data, int *max_x, int *max_y) + { ++#ifdef __FreeBSD__ ++ struct fbtype fbinfo; ++ ++ if (ioctl(data->fd_fb, FBIOGTYPE, &fbinfo) < 0) { ++ perror("ioctl FBIOGTYPE"); ++ return errno; ++ } ++ ++ if ((fbinfo.fb_width == 0) || (fbinfo.fb_height == 0)) { ++ /* Bogus w/h, guess something */ ++ *max_x = 320 - 1; ++ *max_y = 240 - 1; ++ } else { ++ *max_x = fbinfo.fb_width - 1; ++ *max_y = fbinfo.fb_height - 1; ++ } ++#else + struct fb_var_screeninfo fbinfo; + + if (ioctl(data->fd_fb, FBIOGET_VSCREENINFO, &fbinfo) < 0) { +@@ -370,7 +388,7 @@ static int get_abs_max_fb(struct data_t *data, int *max_x, int *max_y) + + *max_x = fbinfo.xres - 1; + *max_y = fbinfo.yres - 1; +- ++#endif + return 0; + } + Added: head/graphics/tslib/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/tslib/pkg-descr Sun May 31 13:10:32 2020 (r537159) @@ -0,0 +1,4 @@ +tslib consists of the library *libts* and tools that help you +calibrate and use it in your environment. + +WWW: http://www.tslib.org/ Added: head/graphics/tslib/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/tslib/pkg-plist Sun May 31 13:10:32 2020 (r537159) @@ -0,0 +1,63 @@ +bin/ts_calibrate +bin/ts_conf +bin/ts_finddev +bin/ts_harvest +bin/ts_print +bin/ts_print_mt +bin/ts_print_raw +bin/ts_test +bin/ts_test_mt +bin/ts_uinput +etc/ts.conf +include/tslib.h +lib/cmake/tslib/tslibConfig.cmake +lib/cmake/tslib/tslibConfigVersion.cmake +lib/cmake/tslib/tslibTargets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/tslib/tslibTargets.cmake +lib/libts.so +lib/libts.so.0 +lib/libts.so.0.10.3 +lib/ts/debounce.so +lib/ts/dejitter.so +lib/ts/evthres.so +lib/ts/iir.so +lib/ts/input.so +lib/ts/invert.so +lib/ts/linear.so +lib/ts/lowpass.so +lib/ts/median.so +lib/ts/pthres.so +lib/ts/skip.so +lib/ts/touchkit.so +lib/ts/variance.so +libdata/pkgconfig/tslib.pc +man/man1/ts_calibrate.1.gz +man/man1/ts_conf.1.gz +man/man1/ts_finddev.1.gz +man/man1/ts_harvest.1.gz +man/man1/ts_print.1.gz +man/man1/ts_print_mt.1.gz +man/man1/ts_print_raw.1.gz +man/man1/ts_test.1.gz +man/man1/ts_test_mt.1.gz +man/man1/ts_uinput.1.gz +man/man1/ts_verify.1.gz +man/man3/ts_close.3.gz +man/man3/ts_close_restricted.3.gz +man/man3/ts_conf_get.3.gz +man/man3/ts_conf_set.3.gz +man/man3/ts_config.3.gz +man/man3/ts_error_fn.3.gz +man/man3/ts_fd.3.gz +man/man3/ts_get_eventpath.3.gz +man/man3/ts_libversion.3.gz +man/man3/ts_open.3.gz +man/man3/ts_open_restricted.3.gz +man/man3/ts_print_ascii_logo.3.gz +man/man3/ts_read.3.gz +man/man3/ts_read_mt.3.gz +man/man3/ts_read_raw.3.gz +man/man3/ts_read_raw_mt.3.gz +man/man3/ts_setup.3.gz +man/man3/tslib_version.3.gz +man/man5/ts.conf.5.gz