ports/x11/rofi-file-browser-extended/files/patch-CMakeLists.txt
Tijl Coosemans 299bcfac71 graphics/cairo: Update to 1.18.2
Upstream has removed OpenGL support and switched from autoconf to meson.

Some ports needed to be fixed:

audio/fogpad-lv2, audio/ssr-lv2, audio/stone-phaser-lv2,
audio/string-machine-lv2: Add dependency on libGL now that cairo
no longer pulls it in.

devel/doxygen: Add upstream patches to support compressed PDF files
generated by more recent versions of cairo.

www/webkit2-gtk3, www/webkit2-gtk4: Remove requirement for cairo-egl.

x11/hyprpaper: Remove inclusion of unused GLES3 headers so a dependency
on libGLES is not needed.

x11/rofi-file-browser-extended: Fix patch to make sure
GLIB2_INCLUDE_DIRS is defined.

PR:		283531
Reviewed by:	diizzy
Exp-run by:	antoine
2025-01-07 11:34:47 +01:00

28 lines
996 B
Text

--- CMakeLists.txt.orig 2022-02-01 17:36:09 UTC
+++ CMakeLists.txt
@@ -11,8 +11,6 @@ pkg_search_module(CAIRO REQUIRED cairo)
pkg_search_module(GLIB2 REQUIRED glib-2.0)
pkg_search_module(CAIRO REQUIRED cairo)
-pkg_get_variable(ROFI_PLUGINS_DIR rofi pluginsdir)
-
include_directories(
include
${GLIB2_INCLUDE_DIRS}
@@ -37,8 +35,8 @@ target_link_libraries(filebrowser
set_target_properties(filebrowser PROPERTIES PREFIX "")
target_link_libraries(filebrowser
- ${GLIB2_LIBRARIES}
- ${CAIRO_LIBRARIES}
+ ${GLIB2_LDFLAGS}
+ ${CAIRO_LDFLAGS}
)
install(TARGETS filebrowser DESTINATION ${ROFI_PLUGINS_DIR})
@@ -53,4 +51,4 @@ add_custom_target(manpage ALL DEPENDS "${CMAKE_CURRENT
add_custom_target(manpage ALL DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/doc/rofi-file-browser-extended.1.gz")
-install(FILES "doc/rofi-file-browser-extended.1.gz" DESTINATION "/usr/share/man/man1")
+install(FILES "doc/rofi-file-browser-extended.1.gz" DESTINATION "${CMAKE_INSTALL_MANDIR}")