git: b4c9cebf9caf - main - emulators/dosbox-staging: update to 0.78.0

From: Max Brazhnikov <makc_at_FreeBSD.org>
Date: Tue, 28 Dec 2021 22:53:44 UTC
The branch main has been updated by makc:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b4c9cebf9caf9a842381ca9d7ab62c41ef6bf909

commit b4c9cebf9caf9a842381ca9d7ab62c41ef6bf909
Author:     Max Brazhnikov <makc@FreeBSD.org>
AuthorDate: 2021-12-28 22:50:43 +0000
Commit:     Max Brazhnikov <makc@FreeBSD.org>
CommitDate: 2021-12-28 22:53:11 +0000

    emulators/dosbox-staging: update to 0.78.0
    
    Release notes: https://dosbox-staging.github.io/v0-78-0/
---
 emulators/dosbox-staging/Makefile                |  6 +++---
 emulators/dosbox-staging/distinfo                |  6 +++---
 emulators/dosbox-staging/files/patch-meson.build | 22 +++++++++++-----------
 emulators/dosbox-staging/pkg-plist               |  8 ++++++++
 4 files changed, 25 insertions(+), 17 deletions(-)

diff --git a/emulators/dosbox-staging/Makefile b/emulators/dosbox-staging/Makefile
index 9bb797537d82..ec96d7ef63dc 100644
--- a/emulators/dosbox-staging/Makefile
+++ b/emulators/dosbox-staging/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	dosbox-staging
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.77.1
-PORTREVISION=	2
+DISTVERSION=	0.78.0
 CATEGORIES=	emulators
 
 MAINTAINER=	makc@FreeBSD.org
@@ -10,7 +9,8 @@ COMMENT=	DOS/x86 emulator based on DOSBox
 LICENSE=	GPLv2
 
 LIB_DEPENDS=	libopusfile.so:audio/opusfile \
-		libpng.so:graphics/png
+		libpng.so:graphics/png \
+		libslirp.so:net/libslirp
 
 USES=		compiler:c++14-lang gl meson pkgconfig sdl
 
diff --git a/emulators/dosbox-staging/distinfo b/emulators/dosbox-staging/distinfo
index a25b3503edfd..17b0346d2783 100644
--- a/emulators/dosbox-staging/distinfo
+++ b/emulators/dosbox-staging/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1630255597
-SHA256 (dosbox-staging-dosbox-staging-v0.77.1_GH0.tar.gz) = 85359efb7cd5c5c0336d88bdf023b7b462a8233490e00274fef0b85cca2f5f3c
-SIZE (dosbox-staging-dosbox-staging-v0.77.1_GH0.tar.gz) = 2622418
+TIMESTAMP = 1640703893
+SHA256 (dosbox-staging-dosbox-staging-v0.78.0_GH0.tar.gz) = 2e6dcfc45d7345b2d89287911718c93f30463f1d58a9bfdc3a353000520cbbf8
+SIZE (dosbox-staging-dosbox-staging-v0.78.0_GH0.tar.gz) = 2908118
diff --git a/emulators/dosbox-staging/files/patch-meson.build b/emulators/dosbox-staging/files/patch-meson.build
index c2e0b4118a0a..f7204b0eced5 100644
--- a/emulators/dosbox-staging/files/patch-meson.build
+++ b/emulators/dosbox-staging/files/patch-meson.build
@@ -1,15 +1,15 @@
---- meson.build.orig	2021-07-17 10:53:48 UTC
+--- meson.build.orig	2021-12-25 12:42:08 UTC
 +++ meson.build
-@@ -340,7 +340,7 @@ subdir('tests')
- # dosbox executable
- #
- version_file = vcs_tag(input : 'src/version.cpp.in', output : 'version.cpp')
--executable('dosbox', ['src/main.cpp', 'src/dosbox.cpp', version_file],
-+executable('dosbox-staging', ['src/main.cpp', 'src/dosbox.cpp', version_file],
-            dependencies : [atomic_dep, threads_dep, sdl2_dep] + internal_deps,
-            include_directories : incdir,
-            install : true)
-@@ -352,7 +352,7 @@ data_dir     = get_option('datadir')
+@@ -421,7 +421,7 @@ if host_machine.system() == 'windows'
+   dosbox_sources += res_file
+ endif
+ 
+-executable('dosbox', dosbox_sources,
++executable('dosbox-staging', dosbox_sources,
+            dependencies : [atomic_dep,
+                            stdcppfs_dep,
+                            sdl2_dep,
+@@ -454,7 +454,7 @@ data_dir     = get_option('datadir')
  licenses_dir = data_dir / 'licenses' / 'dosbox-staging'
  doc_dir      = data_dir / 'doc' / 'dosbox-staging'
  
diff --git a/emulators/dosbox-staging/pkg-plist b/emulators/dosbox-staging/pkg-plist
index e25cd69875b9..c1a8e58a5dbc 100644
--- a/emulators/dosbox-staging/pkg-plist
+++ b/emulators/dosbox-staging/pkg-plist
@@ -4,6 +4,14 @@ share/applications/dosbox-staging.desktop
 %%PORTDOCS%%%%DOCSDIR%%/AUTHORS
 %%PORTDOCS%%%%DOCSDIR%%/README
 %%PORTDOCS%%%%DOCSDIR%%/THANKS
+%%DATADIR%%/translations/de.lng
+%%DATADIR%%/translations/en.lng
+%%DATADIR%%/translations/es.lng
+%%DATADIR%%/translations/fr.lng
+%%DATADIR%%/translations/it.lng
+%%DATADIR%%/translations/pl.cp437.lng
+%%DATADIR%%/translations/pl.lng
+%%DATADIR%%/translations/ru.lng
 share/icons/hicolor/16x16/apps/dosbox-staging.png
 share/icons/hicolor/22x22/apps/dosbox-staging.png
 share/icons/hicolor/24x24/apps/dosbox-staging.png