Skip to content

Commit

Permalink
x11/xdg-desktop-portal-hyprland: unbreak with Clang after 4ce3b4b
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeich committed Sep 27, 2023
1 parent edff562 commit 2944f5e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 6 additions & 8 deletions x11/xdg-desktop-portal-hyprland/Makefile
@@ -1,10 +1,12 @@
PORTNAME= xdg-desktop-portal-hyprland
DISTVERSIONPREFIX= v
DISTVERSION= 1.1.0
PORTREVISION= 1
CATEGORIES= x11 wayland

PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES+= 54b5467ec12f.patch:-p1 # https://github.com/hyprwm/xdg-desktop-portal-hyprland/pull/98
PATCHFILES+= f9461b0b7d30.patch:-p1 # https://github.com/hyprwm/xdg-desktop-portal-hyprland/pull/100

MAINTAINER= jbeich@FreeBSD.org
COMMENT= xdg-desktop-portal backend for hyprland
Expand All @@ -27,7 +29,7 @@ qt5_CONFLICTS_INSTALL= ${PORTNAME}-qt6
qt6_CONFLICTS_INSTALL= ${PORTNAME}
qt6_PKGNAMESUFFIX= -qt6

USES= compiler:gcc-c++11-lib gl meson pkgconfig
USES= compiler:c++11-lib gl meson pkgconfig
USE_GITHUB= yes
USE_GL= gbm
GH_ACCOUNT= hyprwm
Expand All @@ -39,9 +41,7 @@ PLIST_FILES= libexec/${PORTNAME} \

# XXX Drop after FreeBSD 14.0 EOL around 2025-03-01
.if exists(/usr/lib/libc++.so) && !exists(/usr/include/c++/v1/__format/write_escaped.h)
# Emulate -fexperimental-library for GCC
CXXFLAGS+= -D_LIBCPP_ENABLE_EXPERIMENTAL # std::vformat
LDFLAGS+= -lc++experimental
CXXFLAGS+= -fexperimental-library
.endif

post-patch:
Expand All @@ -58,6 +58,8 @@ post-configure:
.if ${CXX} == c++ && exists(/usr/lib/libc++.so)
.if !exists(/usr/include/c++/v1/__ranges/as_rvalue_view.h) || make(makesum) || make(fetch)
BUILD_DEPENDS+= ${CMAKE_BIN}:devel/cmake-core
USES+= llvm:min=16,build,export
PATH:= ${LLVM_PREFIX}/bin:${PATH} # XXX _CMAKE_TOOLCHAIN_SUFFIX vs. devel/llvm*
CONFIGURE_ENV+= CC="${CC}" CXX="${CXX}" CPP="${CPP}"
CMAKE_BIN= ${LOCALBASE}/bin/cmake

Expand All @@ -78,7 +80,3 @@ bundled-libcxx:
.endif # exists(/usr/lib/libc++.so)

.include <bsd.port.mk>

# XXX USES=compiler:gcc-c++11-lib
RUN_DEPENDS:= ${RUN_DEPENDS:Ngcc*}
LDFLAGS+= -static-libgcc
2 changes: 2 additions & 0 deletions x11/xdg-desktop-portal-hyprland/distinfo
Expand Up @@ -7,3 +7,5 @@ SHA256 (llvm-llvm-project-llvmorg-16.0.1_GH0.tar.gz) = b5a9ff1793b1e2d388a3819bf
SIZE (llvm-llvm-project-llvmorg-16.0.1_GH0.tar.gz) = 179289803
SHA256 (54b5467ec12f.patch) = 2cacc5de7b4b72410b9d338377ee51927fdc61918bf4657dd4c03eda7e56b34f
SIZE (54b5467ec12f.patch) = 2818
SHA256 (f9461b0b7d30.patch) = 278adb116da65a783c8c1f103e2c6b3da8de413618cd7a3ced50f27c1a66f07e
SIZE (f9461b0b7d30.patch) = 6421

0 comments on commit 2944f5e

Please sign in to comment.