Skip to content
Snippets Groups Projects
Commit 1f514820 authored by Jan Beich's avatar Jan Beich
Browse files

x11/hyprpicker: add new port

A wlroots-compatible Wayland color picker that does not suck.

https://github.com/hyprwm/hyprpicker
parent e2c09e62
No related branches found
No related tags found
No related merge requests found
......@@ -111,6 +111,7 @@
SUBDIR += hs-xmobar
SUBDIR += hsetroot
SUBDIR += hyprpaper
SUBDIR += hyprpicker
SUBDIR += i3blocks
SUBDIR += i3lock-color
SUBDIR += iceauth
......
PORTNAME= hyprpicker
PORTVERSION= s20221120
CATEGORIES= x11 wayland
MAINTAINER= jbeich@FreeBSD.org
COMMENT= wlroots-compatible Wayland color picker that does not suck
WWW= https://github.com/hyprwm/hyprpicker
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= gmake:devel/gmake \
wayland-protocols>0:graphics/wayland-protocols
LIB_DEPENDS= libwayland-client.so:graphics/wayland
USES= compiler:c++11-lib cmake gnome jpeg pkgconfig
USE_GCC= yes:build # C++23
USE_GNOME= cairo
USE_GITHUB= yes
GH_ACCOUNT= hyprwm
GH_TAGNAME= f6c24d9
LDFLAGS+= -static-libstdc++ -static-libgcc # avoid libc++ conflict
PLIST_FILES= bin/${PORTNAME}
post-patch:
# Extract (snapshot) version from the port instead of Git
@${REINPLACE_CMD} -i .nogit -e '/Get git info/,/^#$$/d' \
-e 's/$${GIT_BRANCH}/main/' \
-e 's/$${GIT_COMMIT_HASH}/${GH_TAGNAME}/' \
-e 's/$${GIT_COMMIT_MESSAGE}/<unknown>/' \
-e 's/$${GIT_DIRTY}/portbld/' \
${WRKSRC}/CMakeLists.txt
# Drop unused dependencies
@${REINPLACE_CMD} 's/ wlroots//' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's/ pango pangocairo//' \
-e 's/ libjpeg//' \
-e '/OpenGL/d; /GLESv2/d' \
-e '/pthread/d; /CMAKE_THREAD_LIBS_INIT/d' \
-e '/ rt)/d' \
${WRKSRC}/CMakeLists.txt
pre-configure:
@${SETENV} ${MAKE_ENV} ${GMAKE} protocols -C${WRKSRC}
do-install:
${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${PORTNAME} \
${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>
TIMESTAMP = 1668940659
SHA256 (hyprwm-hyprpicker-s20221120-f6c24d9_GH0.tar.gz) = 29f73fe0ef09735b815f7459aa8ad42aa905f618a926531fd23ffe330a8ab8bb
SIZE (hyprwm-hyprpicker-s20221120-f6c24d9_GH0.tar.gz) = 20984
A wlroots-compatible Wayland color picker that does not suck.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment