openbsd-ports/graphics/drawpile/patches/patch-desktop_CMakeLists_txt
bcallah 60f5d2ee10 Import graphics/drawpile, a collaborative drawing program
ok rsadowski@

Drawpile is a Free/Libre networked drawing program that allows multiple
people to sketch on the same image simultaneously. It supports the
OpenRaster image file format and thus works well with applications such
as MyPaint, Krita and GIMP.
2017-12-29 22:41:06 +00:00

37 lines
1.1 KiB
Plaintext

$OpenBSD: patch-desktop_CMakeLists_txt,v 1.1.1.1 2017/12/29 22:41:06 bcallah Exp $
CMake does this wrong. We'll take care of it in post-install.
Index: desktop/CMakeLists.txt
--- desktop/CMakeLists.txt.orig
+++ desktop/CMakeLists.txt
@@ -1,8 +1,8 @@
-find_program(XDGICON xdg-icon-resource)
-find_program(XDGMENU xdg-desktop-menu)
-find_program(XDGMIME xdg-mime)
+#find_program(XDGICON xdg-icon-resource)
+#find_program(XDGMENU xdg-desktop-menu)
+#find_program(XDGMIME xdg-mime)
-if( XDGICON )
+if( FALSE )
install(CODE "
execute_process(COMMAND ${XDGICON} install --novendor ${CMAKE_CURRENT_SOURCE_DIR}/drawpile-16x16.png --size 16 drawpile)
execute_process(COMMAND ${XDGICON} install --novendor ${CMAKE_CURRENT_SOURCE_DIR}/drawpile-32x32.png --size 32 drawpile)
@@ -18,13 +18,13 @@ if( XDGICON )
")
endif()
-if( XDGMENU )
+if( FALSE )
install(CODE "
execute_process(COMMAND ${XDGMENU} install --novendor ${CMAKE_CURRENT_SOURCE_DIR}/drawpile.desktop)
")
endif()
-if( XDGMIME )
+if( FALSE )
install(CODE "
execute_process(COMMAND ${XDGMIME} install ${CMAKE_CURRENT_SOURCE_DIR}/x-drawpile.xml)
")