freebsd-ports/x11/hyprcursor/Makefile
Jan Beich 6a02c54aba x11/hyprcursor: unbreak build after 06c18b031f
hyprcursor-util/src/main.cpp:260:19: error: implicit instantiation of undefined template 'std::basic_ofstream<char>'
  260 |     std::ofstream manifest(out + "/manifest.hl", std::ios::trunc);
      |                   ^
/usr/include/c++/v1/__fwd/fstream.h:26:28: note: template is declared here
   26 | class _LIBCPP_TEMPLATE_VIS basic_ofstream;
      |                            ^
hyprcursor-util/src/main.cpp:292:41: error: implicit instantiation of undefined template 'std::basic_ifstream<char>'
  292 |         std::ifstream                   xconfig("/tmp/hyprcursor-util/" + xcursor.path().stem().string() + ".conf");
      |                                         ^
/usr/include/c++/v1/__fwd/fstream.h:24:28: note: template is declared here
   24 | class _LIBCPP_TEMPLATE_VIS basic_ifstream;
      |                            ^
hyprcursor-util/src/main.cpp:370:23: error: implicit instantiation of undefined template 'std::basic_ofstream<char>'
  370 |         std::ofstream meta(CURSORDIR + "/meta.hl", std::ios::trunc);
      |                       ^
/usr/include/c++/v1/__fwd/fstream.h:26:28: note: template is declared here
   26 | class _LIBCPP_TEMPLATE_VIS basic_ofstream;
      |                            ^

Reported by:	pkg-fallout
2024-12-14 11:30:45 +01:00

33 lines
973 B
Makefile

PORTNAME= hyprcursor
DISTVERSIONPREFIX= v
DISTVERSION= 0.1.10
CATEGORIES= x11
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES+= f8e8455e998e.patch:-p1 # https://github.com/hyprwm/hyprcursor/pull/66
PATCHFILES+= 2b522b0350ea.patch:-p1 # https://github.com/hyprwm/hyprcursor/pull/71
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 \
libtomlplusplus.so:devel/tomlplusplus
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/-.*//}
post-patch:
# Respect PREFIX for icons
@${REINPLACE_CMD} 's,/usr/share,${DATADIR:H},' \
${WRKSRC}/lib${PORTNAME}/${PORTNAME}.cpp
.include <bsd.port.mk>