git: 7bd5500819bf - main - x11/boomer: new port had been added (+)
Date: Tue, 25 Jun 2024 06:46:30 UTC
The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=7bd5500819bfa2eec4a7d65ac6cb0987b8998559 commit 7bd5500819bfa2eec4a7d65ac6cb0987b8998559 Author: Alexey Dokuchaev <danfe@FreeBSD.org> AuthorDate: 2024-06-25 06:45:46 +0000 Commit: Alexey Dokuchaev <danfe@FreeBSD.org> CommitDate: 2024-06-25 06:45:46 +0000 x11/boomer: new port had been added (+) Boomer is a screen zoomer for X11, written using OpenGL shaders for fast screen grab and drag, enlighten a portion of the screen with a variable radius (flashlight effect), etc. Written in Nim language, it compiles into small executable that only needs OpenGL and X11 libraries at run-time. WWW: https://github.com/tsoding/boomer --- x11/Makefile | 1 + x11/boomer/Makefile | 41 +++++++++++++++++++++++++++++++++ x11/boomer/distinfo | 7 ++++++ x11/boomer/files/opengl-nimblemeta.json | 25 ++++++++++++++++++++ x11/boomer/files/x11-nimblemeta.json | 40 ++++++++++++++++++++++++++++++++ x11/boomer/pkg-descr | 3 +++ 6 files changed, 117 insertions(+) diff --git a/x11/Makefile b/x11/Makefile index 60f37aed6a01..56a99eb4a1f2 100644 --- a/x11/Makefile +++ b/x11/Makefile @@ -27,6 +27,7 @@ SUBDIR += bgs SUBDIR += bitmap SUBDIR += bmpanel2 + SUBDIR += boomer SUBDIR += brisk-menu SUBDIR += budgie SUBDIR += budgie-desktop diff --git a/x11/boomer/Makefile b/x11/boomer/Makefile new file mode 100644 index 000000000000..71177839b396 --- /dev/null +++ b/x11/boomer/Makefile @@ -0,0 +1,41 @@ +PORTNAME= boomer +PORTVERSION= 0.0.1 +CATEGORIES= x11 + +MAINTAINER= danfe@FreeBSD.org +COMMENT= Screen zoom and highlight program for X11 +WWW= https://github.com/tsoding/boomer + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= nimble:devel/nimble +RUN_DEPENDS= ${LOCALBASE}/lib/libGL.so:graphics/libglvnd \ + ${LOCALBASE}/lib/libX11.so:x11/libX11 \ + ${LOCALBASE}/lib/libXrandr.so:x11/libXrandr + +USE_GITHUB= yes +GH_ACCOUNT= tsoding nim-lang:x11,opengl +GH_PROJECT= x11:x11 opengl:opengl +GH_TAGNAME= dfd4e1f 1.2:x11 1.2.9:opengl +GH_SUBDIR= nimbledeps/pkgs2/x11-1.2:x11 \ + nimbledeps/pkgs2/opengl-1.2.9:opengl + +PLIST_FILES= bin/${PORTNAME} + +post-patch: +.for pkg in x11 opengl + ${LN} -s ${FILESDIR}/${pkg}-nimblemeta.json \ + ${WRKSRC_${pkg}}/nimblemeta.json +.endfor + ${MV} ${WRKSRC_opengl}/src/opengl* ${WRKSRC_opengl} + +do-build: + cd ${BUILD_WRKSRC} && nimble build --nim=${LOCALBASE}/nim/bin/nim \ + --localdeps --offline --reject --verbose -d:release -d:nimDebugDlOpen + +do-install: + ${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${PORTNAME} \ + ${STAGEDIR}${PREFIX}/bin + +.include <bsd.port.mk> diff --git a/x11/boomer/distinfo b/x11/boomer/distinfo new file mode 100644 index 000000000000..1f191e7fa75a --- /dev/null +++ b/x11/boomer/distinfo @@ -0,0 +1,7 @@ +TIMESTAMP = 1707424554 +SHA256 (tsoding-boomer-0.0.1-dfd4e1f_GH0.tar.gz) = 1c061cc3d55513ace5b0848f883039263ffb65ea502d2903dd032ce44ac976c3 +SIZE (tsoding-boomer-0.0.1-dfd4e1f_GH0.tar.gz) = 7074555 +SHA256 (nim-lang-x11-1.2_GH0.tar.gz) = 40a04906a522faa1746babcc72a536f26cdeac646475ac8a297945bd7813fdcf +SIZE (nim-lang-x11-1.2_GH0.tar.gz) = 96522 +SHA256 (nim-lang-opengl-1.2.9_GH0.tar.gz) = bb7a8a91da12f33b3b12564956e031cbc89633d4576d456412a0f26728eb335e +SIZE (nim-lang-opengl-1.2.9_GH0.tar.gz) = 102551 diff --git a/x11/boomer/files/opengl-nimblemeta.json b/x11/boomer/files/opengl-nimblemeta.json new file mode 100644 index 000000000000..5abad8f68140 --- /dev/null +++ b/x11/boomer/files/opengl-nimblemeta.json @@ -0,0 +1,25 @@ +{ + "version": 1, + "metaData": { + "url": "https://github.com/nim-lang/opengl", + "downloadMethod": "git", + "vcsRevision": "8e2e098f82dc5eefd874488c37b5830233cd18f4", + "files": [ + "/opengl/private/types.nim", + "/opengl.nim", + "/opengl/glu.nim", + "/opengl/glut.nim", + "/opengl.nimble", + "/opengl/private/errors.nim", + "/opengl/private/prelude.nim", + "/opengl/wingl.nim", + "/opengl/private/constants.nim", + "/opengl/glx.nim", + "/opengl/private/procs.nim" + ], + "binaries": [], + "specialVersions": [ + "1.2.9" + ] + } +} diff --git a/x11/boomer/files/x11-nimblemeta.json b/x11/boomer/files/x11-nimblemeta.json new file mode 100644 index 000000000000..fbef2f65c625 --- /dev/null +++ b/x11/boomer/files/x11-nimblemeta.json @@ -0,0 +1,40 @@ +{ + "version": 1, + "metaData": { + "url": "https://github.com/nim-lang/x11", + "downloadMethod": "git", + "vcsRevision": "29aca5e519ebf5d833f63a6a2769e62ec7bfb83a", + "files": [ + "/x11/xinput.nim", + "/x11/xf86vmode.nim", + "/x11/keysym.nim", + "/x11/cursorfont.nim", + "/x11/xinput2.nim", + "/x11/xinerama.nim", + "/x11.nimble", + "/x11/xi.nim", + "/x11/xf86dga.nim", + "/x11/xkb.nim", + "/x11/xrender.nim", + "/x11/xutil.nim", + "/x11/xi2.nim", + "/x11/x11pragma.nim", + "/x11/xlib.nim", + "/x11/x.nim", + "/x11/xresource.nim", + "/x11/xv.nim", + "/x11/xrandr.nim", + "/x11/xkblib.nim", + "/x11/xvlib.nim", + "/x11/xft.nim", + "/x11/xatom.nim", + "/x11/xcms.nim", + "/x11/xtst.nim", + "/x11/xshm.nim" + ], + "binaries": [], + "specialVersions": [ + "1.2" + ] + } +} diff --git a/x11/boomer/pkg-descr b/x11/boomer/pkg-descr new file mode 100644 index 000000000000..ea4efc0cac13 --- /dev/null +++ b/x11/boomer/pkg-descr @@ -0,0 +1,3 @@ +Boomer is a screen zoomer for X11, written using OpenGL shaders for +fast screen grab and drag, enlighten the portion of the screen with +a variable radius (flashlight effect), etc.