1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00
freebsd-ports/x11/hyprcursor/Makefile
2024-03-24 09:20:52 +01:00

35 lines
911 B
Makefile

PORTNAME= hyprcursor
DISTVERSIONPREFIX= v
DISTVERSION= 0.1.5
CATEGORIES= x11
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Hyprland cursor format, library and utilities
WWW= https://github.com/hyprwm/hyprcursor
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libzip.so:archivers/libzip \
libhyprlang.so:devel/hyprlang
RUN_DEPENDS= xcur2png:x11/xcur2png
USES= compiler:c++11-lib cmake:testing gnome pathfix pkgconfig
USE_GITHUB= yes
USE_GNOME= cairo librsvg2
GH_ACCOUNT= hyprwm
PLIST_SUB= VERSION=${DISTVERSION:C/-.*//}
# XXX Drop after FreeBSD 14.0 EOL around 2025-03-01
.if exists(/usr/include/c++/v1/__format/format_functions.h) && \
!exists(/usr/include/c++/v1/__format/write_escaped.h)
CXXFLAGS+= -fexperimental-library
.endif
post-patch:
# Respect PREFIX for icons
@${REINPLACE_CMD} 's,/usr/share,${DATADIR:H},' \
${WRKSRC}/lib${PORTNAME}/${PORTNAME}.cpp
.include <bsd.port.mk>