From nobody Mon Feb 13 20:51:30 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PFxMk2yxxz3q3JB; Mon, 13 Feb 2023 20:51:30 +0000 (UTC) (envelope-from git@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PFxMk2X68z4Q1T; Mon, 13 Feb 2023 20:51:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676321490; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9eInWLCOrAMzJo0LVjpqRDhWYzGIS4/CAsKTlKUkaIQ=; b=qZaSQbLyjT0HkRneaR4zbedV3w+a2nWSiwEcnypj5/nIu8BkRVAoTX4cUpWnmbKpD7CvuJ RKcCcbzYlKlaAv7JweO12O/l0QfTSwcAfPXRfrdkCoTGpg56wGFo3ONGwtq+Sm17YITwrl kx6bKlT8/bxK9BZSbGTPI+snO9r9HsrAqQd6uK21Q4YuRVig2kvGbOsKltwDeBBiBt6AGb SlyAHVubksXeO0HOiiO4RKMZjHYk5xOV5CFGeYSF4T/oxLmiX8E5rzbnYhuwzdkkDjHCb0 Q7yoIQyxok+hM54yT4R9GaWCBd9RzOmliki9imgVhXfYmmFG38f9B9nVFb7M+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676321490; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9eInWLCOrAMzJo0LVjpqRDhWYzGIS4/CAsKTlKUkaIQ=; b=TkfL9tDHYHkfOYnsW7WShOcVIL8s53948Z0wBx/2x7sxjFtQecXcDtZ5zTZ3CuBb2JB+ka qK5J/B8N5YCWFB7mQKR8eB4hTV/0WAioEN8F3GXK7BbxPjnURn7DpCvhVuKqdLe//o0yba 3ALVNeX77r9q+jAtwH5aH/YPDb1sqWT6Zdj5798WuQkB22Vow3/3gPZSuNMp0eUzYP1ylP d54bHRWh4+rNUksz+XSXY1c06e4SaY32tx0OtpiSNyUXTROy/BMxZU2lMXv2PSC0J5HtuY Iv1bZYV3kVohtiEWNbFul+YSVUjzO7pQBDOHO9useVonkVQI4E3BPP1v8B+ljQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676321490; a=rsa-sha256; cv=none; b=G6xNyNxziTeQs3X4Axx3QjoHXLzY8aQZv0tTpFSa3ea88Zl25mNLs7yiYS0vH/fYzNKqyP TeotYb+tL5wa5UoGkac7D1ghx4lzI/syCntYUGCYdU+i29OR6b9eYSLUjzFKH3Qa2NI2Ws VRuMuz7YU6MmJDIXwGTvFVEHt1uX6ICaoEftcR/rGLu93VUhxJPiwlw85R6BnlIPBnb6QO htn5mI4gP+p+0raoUaM8drksmiHpc/5qljINN+mPfsKtNWhVOk9dkOTUbjuLxbdll/MQ2N fZ6Mq+l0CbhzPYUN+N+CZcYrfC68CTgO2WvzKMnQ1oH6gwMJ841SutWrx4Fk1Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PFxMk1bP5zXXT; Mon, 13 Feb 2023 20:51:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31DKpUfv038544; Mon, 13 Feb 2023 20:51:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31DKpUOM038543; Mon, 13 Feb 2023 20:51:30 GMT (envelope-from git) Date: Mon, 13 Feb 2023 20:51:30 GMT Message-Id: <202302132051.31DKpUOM038543@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jan Beich Subject: git: b63d5b65f0e8 - main - sysutils/libdisplay-info: add new port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jbeich X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b63d5b65f0e8dda1a6635ba0d9f09545af3021de Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=b63d5b65f0e8dda1a6635ba0d9f09545af3021de commit b63d5b65f0e8dda1a6635ba0d9f09545af3021de Author: Jan Beich AuthorDate: 2023-02-13 16:18:58 +0000 Commit: Jan Beich CommitDate: 2023-02-13 20:50:29 +0000 sysutils/libdisplay-info: add new port EDID and DisplayID library. Goals: - Provide a set of high-level, easy-to-use, opinionated functions as well as low-level functions to access detailed information. - Simplicity and correctness over performance and resource usage. - Well-tested and fuzzed. https://gitlab.freedesktop.org/emersion/libdisplay-info --- sysutils/Makefile | 1 + sysutils/libdisplay-info/Makefile | 41 ++++++++++++++++++++++++++++++++++++++ sysutils/libdisplay-info/distinfo | 7 +++++++ sysutils/libdisplay-info/pkg-descr | 8 ++++++++ sysutils/libdisplay-info/pkg-plist | 12 +++++++++++ 5 files changed, 69 insertions(+) diff --git a/sysutils/Makefile b/sysutils/Makefile index d75847cb7df5..2ecc08b9ac65 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -644,6 +644,7 @@ SUBDIR += libcdio-paranoia SUBDIR += libchk SUBDIR += libcpuid + SUBDIR += libdisplay-info SUBDIR += libdnf SUBDIR += libfvde SUBDIR += libg15 diff --git a/sysutils/libdisplay-info/Makefile b/sysutils/libdisplay-info/Makefile new file mode 100644 index 000000000000..649de7822238 --- /dev/null +++ b/sysutils/libdisplay-info/Makefile @@ -0,0 +1,41 @@ +PORTNAME= libdisplay-info +DISTVERSION= 0.1.0 +CATEGORIES= sysutils + +PATCH_SITES= ${GL_SITE}/${GL_ACCOUNT}/${GL_PROJECT}/-/commit/ +PATCHFILES+= d0ad02c6405f.patch:-p1 # https://gitlab.freedesktop.org/emersion/libdisplay-info/-/merge_requests/150 +PATCHFILES+= 015bddc1a6c6.patch:-p1 # https://gitlab.freedesktop.org/emersion/libdisplay-info/-/merge_requests/150 + +MAINTAINER= jbeich@FreeBSD.org +COMMENT= EDID and DisplayID library +WWW= https://gitlab.freedesktop.org/emersion/libdisplay-info + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= hwdata>0:misc/hwdata +TEST_DEPENDS= edid-decode:sysutils/edid-decode + +USES= compiler:c11 meson pkgconfig python:build shebangfix +USE_GITLAB= yes +GL_SITE= https://gitlab.freedesktop.org +GL_ACCOUNT= emersion +GL_COMMIT= 1871aabb25a8f71f38b4b595154c1537686677cf +SHEBANG_FILES= tool/*.py + +post-patch: +# XXX Drop after FreeBSD 12.3 EOL around 2023-03-01 +# https://cgit.freebsd.org/src/commit/?id=773538247007 + @if [ ${OPSYS} = FreeBSD -a ${OSVERSION} -lt 1203501 ]; then \ + ${REINPLACE_CMD} -e 's/static_assert/_Static_assert/' \ + ${WRKSRC}/edid.c; \ + fi + +pre-test: + @if [ ! -e ${WRKDIR}/.meson_build_tests ]; then \ + ${RM} ${CONFIGURE_COOKIE} ${BUILD_COOKIE}; \ + ${MAKE} -C${.CURDIR} build MESON_ARGS="${MESON_ARGS} --reconfigure"; \ + ${TOUCH} ${WRKDIR}/.meson_build_tests; \ + fi + +.include diff --git a/sysutils/libdisplay-info/distinfo b/sysutils/libdisplay-info/distinfo new file mode 100644 index 000000000000..11f9db72f3e5 --- /dev/null +++ b/sysutils/libdisplay-info/distinfo @@ -0,0 +1,7 @@ +TIMESTAMP = 1676305138 +SHA256 (emersion-libdisplay-info-1871aabb25a8f71f38b4b595154c1537686677cf_GL0.tar.gz) = 6f25f27559991e12aa9ea7cd1d366fb66d83030d352b1ca6adbdf2284d526d12 +SIZE (emersion-libdisplay-info-1871aabb25a8f71f38b4b595154c1537686677cf_GL0.tar.gz) = 99599 +SHA256 (d0ad02c6405f.patch) = 5d5fad6cc70639398cb2f542a438c6279ae6f4302afea838d4b61743e1cc4122 +SIZE (d0ad02c6405f.patch) = 674 +SHA256 (015bddc1a6c6.patch) = cb01980f273e6a6cb746d6324656d639e5dd2031115f062a29c9539f9cdbb2ad +SIZE (015bddc1a6c6.patch) = 706 diff --git a/sysutils/libdisplay-info/pkg-descr b/sysutils/libdisplay-info/pkg-descr new file mode 100644 index 000000000000..8d862e547709 --- /dev/null +++ b/sysutils/libdisplay-info/pkg-descr @@ -0,0 +1,8 @@ +EDID and DisplayID library. + +Goals: + +- Provide a set of high-level, easy-to-use, opinionated functions as well as + low-level functions to access detailed information. +- Simplicity and correctness over performance and resource usage. +- Well-tested and fuzzed. diff --git a/sysutils/libdisplay-info/pkg-plist b/sysutils/libdisplay-info/pkg-plist new file mode 100644 index 000000000000..871294153dd7 --- /dev/null +++ b/sysutils/libdisplay-info/pkg-plist @@ -0,0 +1,12 @@ +bin/di-edid-decode +include/libdisplay-info/cta.h +include/libdisplay-info/cvt.h +include/libdisplay-info/displayid.h +include/libdisplay-info/dmt.h +include/libdisplay-info/edid.h +include/libdisplay-info/gtf.h +include/libdisplay-info/info.h +lib/libdisplay-info.so +lib/libdisplay-info.so.0.1.0 +lib/libdisplay-info.so.1 +libdata/pkgconfig/libdisplay-info.pc