summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2019-06-13 19:12:44 +0000
committernia <nia@pkgsrc.org>2019-06-13 19:12:44 +0000
commitb309cc0d353a5c31452172df3632b9e180fcf7a1 (patch)
tree2bd6d60bb34342c43e1a54f727c4dda4c2c5f4aa /emulators
parent140d97f81d325823f6f40e4c6d7bc94ea09606b7 (diff)
downloadpkgsrc-b309cc0d353a5c31452172df3632b9e180fcf7a1.tar.gz
mgba: Install .desktop file without needing desktop-file-install(1).
Diffstat (limited to 'emulators')
-rw-r--r--emulators/mgba/Makefile3
-rw-r--r--emulators/mgba/distinfo3
-rw-r--r--emulators/mgba/patches/patch-src_platform_qt_CMakeLists.txt18
3 files changed, 22 insertions, 2 deletions
diff --git a/emulators/mgba/Makefile b/emulators/mgba/Makefile
index f25a11b027d..e99fa514870 100644
--- a/emulators/mgba/Makefile
+++ b/emulators/mgba/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.1 2019/06/08 22:46:03 nia Exp $
+# $NetBSD: Makefile,v 1.2 2019/06/13 19:12:44 nia Exp $
DISTNAME= mgba-0.7.2
+PKGREVISION= 1
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_GITHUB:=mgba-emu/}
diff --git a/emulators/mgba/distinfo b/emulators/mgba/distinfo
index 80d1339ae9d..5591c1205bd 100644
--- a/emulators/mgba/distinfo
+++ b/emulators/mgba/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1 2019/06/08 22:46:03 nia Exp $
+$NetBSD: distinfo,v 1.2 2019/06/13 19:12:44 nia Exp $
SHA1 (mgba-0.7.2.tar.gz) = 342b40efa743f9966ad0e9d3448a8d3f4314c008
RMD160 (mgba-0.7.2.tar.gz) = 0ad8a97d1307bad71b13d12ee0d8c7bbb2599117
@@ -7,4 +7,5 @@ Size (mgba-0.7.2.tar.gz) = 11255680 bytes
SHA1 (patch-CMakeLists.txt) = f0b106e75cd2697fe81c7b962159cfa5ed4c6681
SHA1 (patch-include_mgba-util_math.h) = 448ca1bb3bbe2812e7d9482917c488ddcf3b48f0
SHA1 (patch-include_mgba-util_platform_posix_threading.h) = c5c737be68340e3571934d43bf0c6eab8bc34978
+SHA1 (patch-src_platform_qt_CMakeLists.txt) = e8adb538c1319d6a5c380aa091aa3b10e3ed29e7
SHA1 (patch-version.cmake) = 7d6d44febe7bb0ff2231452f037def7cb3782e21
diff --git a/emulators/mgba/patches/patch-src_platform_qt_CMakeLists.txt b/emulators/mgba/patches/patch-src_platform_qt_CMakeLists.txt
new file mode 100644
index 00000000000..1c2908edf54
--- /dev/null
+++ b/emulators/mgba/patches/patch-src_platform_qt_CMakeLists.txt
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_platform_qt_CMakeLists.txt,v 1.1 2019/06/13 19:12:44 nia Exp $
+
+Install .desktop file without needing desktop-file-install.
+
+--- src/platform/qt/CMakeLists.txt.orig 2019-05-25 22:51:44.000000000 +0000
++++ src/platform/qt/CMakeLists.txt
+@@ -298,10 +298,7 @@ install(TARGETS ${BINARY_NAME}-qt
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT ${BINARY_NAME}-qt
+ BUNDLE DESTINATION Applications COMPONENT ${BINARY_NAME}-qt)
+ if(UNIX AND NOT APPLE)
+- find_program(DESKTOP_FILE_INSTALL desktop-file-install)
+- if(DESKTOP_FILE_INSTALL)
+- install(CODE "execute_process(COMMAND ${DESKTOP_FILE_INSTALL} \"${CMAKE_SOURCE_DIR}/res/mgba-qt.desktop\" --dir \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/applications/\")" COMPONENT ${BINARY_NAME}-qt)
+- endif()
++ install(FILES ${CMAKE_SOURCE_DIR}/res/mgba-qt.desktop DESTINATION ${CMAKE_INSTALL_DATADIR}/applications COMPONENT ${BINARY_NAME}-qt)
+ endif()
+ if(UNIX)
+ install(FILES ${CMAKE_SOURCE_DIR}/doc/mgba-qt.6 DESTINATION ${MANDIR}/man6 COMPONENT ${BINARY_NAME}-qt)