From 6c793085d7fdc738ddcdda0613935939779e3033 Mon Sep 17 00:00:00 2001 From: Daniel Engberg Date: Mon, 8 Jun 2020 00:28:03 +0200 Subject: [PATCH] gerbera-wip gerbera-wip Signed-off-by: Daniel Engberg --- net/gerbera/Makefile | 75 ++++++++++++++++++ net/gerbera/distinfo | 3 + ...tch-src_storage_sqlite3_sqlite3__storage.h | 10 +++ net/gerbera/files/patch-src_util_process.h | 11 +++ .../files/patch-src_util_process__executor.h | 11 +++ .../patch-test_config_test__configmanager.cc | 11 +++ .../files/patch-test_core_test__server.cc | 12 +++ net/gerbera/pkg-descr | 5 ++ net/gerbera/pkg-plist | 79 +++++++++++++++++++ 9 files changed, 217 insertions(+) create mode 100644 net/gerbera/Makefile create mode 100644 net/gerbera/distinfo create mode 100644 net/gerbera/files/patch-src_storage_sqlite3_sqlite3__storage.h create mode 100644 net/gerbera/files/patch-src_util_process.h create mode 100644 net/gerbera/files/patch-src_util_process__executor.h create mode 100644 net/gerbera/files/patch-test_config_test__configmanager.cc create mode 100644 net/gerbera/files/patch-test_core_test__server.cc create mode 100644 net/gerbera/pkg-descr create mode 100644 net/gerbera/pkg-plist diff --git a/net/gerbera/Makefile b/net/gerbera/Makefile new file mode 100644 index 000000000000..634d9b9adb44 --- /dev/null +++ b/net/gerbera/Makefile @@ -0,0 +1,75 @@ +# $FreeBSD$ + +PORTNAME= gerbera +DISTVERSIONPREFIX= v +DISTVERSION= 1.5.0 +CATEGORIES= net multimedia + +MAINTAINER= nobody@nogroup.net +COMMENT= Media-server compatible with "Digital Life Network Alliance" + +LICENSE= GPLv2 + +BUILD_DEPENDS= upnp>=1.12.1:devel/upnp \ + spdlog>=1.4.0:devel/spdlog + +LIB_DEPENDS= libupnp.so:devel/upnp \ + libfmt.so:devel/libfmt \ + libspdlog.so:devel/spdlog \ + libpugixml.so:textproc/pugixml \ + libinotify.so:devel/libinotify + +RUN_DEPENDS= upnp>=1.12.1:devel/upnp \ + spdlog>=1.4.0:devel/spdlog + +TEST_DEPENDS= googletest>=0:devel/googletest + +USES= cmake compiler:c++17-lang iconv localbase:ldflags sqlite +USE_GITHUB= yes + +CMAKE_OFF= WITH_EXIF WITH_LASTFM WITH_MYSQL WITH_SYSTEMD +TEST_TARGET= test + +OPTIONS_DEFINE= CURL DEBUG DUKTAPE EXIV2 FFMPEG FFMPEGTHUMBNAILER \ + LIBMAGIC MATROSKA TAGLIB TEST +OPTIONS_DEFAULT= CURL DUKTAPE EXIV2 FFMPEG TAGLIB + +CURL_DESC= Support for online services via cURL +DUKTAPE_DESC= Javascript support for custom import scripts +FFMPEGTHUMBNAILER_DESC= Support for thumbnail generation +LIBMAGIC_DESC= Identify file mime types via libmagic +MATROSKA_DESC= Extract video/mkv metadata via libmatroska +TAGLIB_DESC= Extract audio file metadata via taglib + +CURL_LIB_DEPENDS= libcurl.so:ftp/curl +CURL_CMAKE_BOOL= WITH_CURL + +DEBUG_CMAKE_BOOL= WITH_DEBUG + +DUKTAPE_LIB_DEPENDS= libduktape.so:lang/duktape-lib +DUKTAPE_CMAKE_BOOL= WITH_JS + +EXIV2_LIB_DEPENDS= libexiv2.so:graphics/exiv2 +EXIV2_CMAKE_BOOL= WITH_EXIV2 + +FFMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg +FFMPEG_CMAKE_BOOL= WITH_AVCODEC + +FFMPEGTHUMBNAILER_LIB_DEPENDS= libffmpegthumbnailer.so:multimedia/ffmpegthumbnailer +FFMPEGTHUMBNAILER_CMAKE_BOOL= WITH_FFMPEGTHUMBNAILER + +LIBMAGIC_LIB_DEPENDS= libmagic.so:sysutils/file +LIBMAGIC_CMAKE_BOOL= WITH_MAGIC + +MATROSKA_LIB_DEPENDS= libmatroska.so:multimedia/libmatroska +MATROSKA_CMAKE_BOOL= WITH_MATROSKA + +TAGLIB_LIB_DEPENDS= libtag.so:audio/taglib +TAGLIB_CMAKE_BOOL= WITH_TAGLIB + +TEST_CMAKE_BOOL= WITH_TESTS + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/gerbera + +.include diff --git a/net/gerbera/distinfo b/net/gerbera/distinfo new file mode 100644 index 000000000000..c4897bcb5054 --- /dev/null +++ b/net/gerbera/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1591538900 +SHA256 (gerbera-gerbera-v1.5.0_GH0.tar.gz) = 693a99b295bc79d842f036a6d04996d4676ac0791d65f3a1f7aab4badf9fb5ef +SIZE (gerbera-gerbera-v1.5.0_GH0.tar.gz) = 2876447 diff --git a/net/gerbera/files/patch-src_storage_sqlite3_sqlite3__storage.h b/net/gerbera/files/patch-src_storage_sqlite3_sqlite3__storage.h new file mode 100644 index 000000000000..a64379649f06 --- /dev/null +++ b/net/gerbera/files/patch-src_storage_sqlite3_sqlite3__storage.h @@ -0,0 +1,10 @@ +--- src/storage/sqlite3/sqlite3_storage.h.orig 2020-05-02 15:17:37 UTC ++++ src/storage/sqlite3/sqlite3_storage.h +@@ -38,6 +38,7 @@ + #include + #include + #include ++#include + #include + #include + diff --git a/net/gerbera/files/patch-src_util_process.h b/net/gerbera/files/patch-src_util_process.h new file mode 100644 index 000000000000..985ae45e113c --- /dev/null +++ b/net/gerbera/files/patch-src_util_process.h @@ -0,0 +1,11 @@ +--- src/util/process.h.orig 2020-05-02 15:17:37 UTC ++++ src/util/process.h +@@ -35,6 +35,8 @@ + #include + #include + ++#include ++ + // forward declaration + class Config; + diff --git a/net/gerbera/files/patch-src_util_process__executor.h b/net/gerbera/files/patch-src_util_process__executor.h new file mode 100644 index 000000000000..e3f8f239d5d3 --- /dev/null +++ b/net/gerbera/files/patch-src_util_process__executor.h @@ -0,0 +1,11 @@ +--- src/util/process_executor.h.orig 2020-05-02 15:17:37 UTC ++++ src/util/process_executor.h +@@ -35,6 +35,8 @@ + #include + #include + ++#include ++ + #include "executor.h" + + class ProcessExecutor : public Executor { diff --git a/net/gerbera/files/patch-test_config_test__configmanager.cc b/net/gerbera/files/patch-test_config_test__configmanager.cc new file mode 100644 index 000000000000..8b5ab08718db --- /dev/null +++ b/net/gerbera/files/patch-test_config_test__configmanager.cc @@ -0,0 +1,11 @@ +--- test/config/test_configmanager.cc.orig 2020-06-07 19:48:21 UTC ++++ test/config/test_configmanager.cc +@@ -3,7 +3,7 @@ + #include + #include + #include +-#include ++#include + + #include "config/config_generator.h" + #include "config/config_manager.h" diff --git a/net/gerbera/files/patch-test_core_test__server.cc b/net/gerbera/files/patch-test_core_test__server.cc new file mode 100644 index 000000000000..f125ee3e6afd --- /dev/null +++ b/net/gerbera/files/patch-test_core_test__server.cc @@ -0,0 +1,12 @@ +--- test/core/test_server.cc.orig 2020-06-07 21:05:50 UTC ++++ test/core/test_server.cc +@@ -57,9 +57,6 @@ TEST_F(ServerTest, ServerOutputsCompileInformationIncl + std::string output = exec(cmd.c_str()); + + ASSERT_THAT(output, HasSubstr("Compile info\n-------------\nWITH_")); +- ASSERT_THAT(output, HasSubstr("Git info:\n-------------\n")); +- ASSERT_THAT(output, HasSubstr("Git Branch: ")); +- ASSERT_THAT(output, HasSubstr("Git Commit: ")); + } + + TEST_F(ServerTest, GeneratesFullConfigFromServerCommand) diff --git a/net/gerbera/pkg-descr b/net/gerbera/pkg-descr new file mode 100644 index 000000000000..7a9e25191a4d --- /dev/null +++ b/net/gerbera/pkg-descr @@ -0,0 +1,5 @@ +Fooo + +Fooo + +WWW: https://gerbera.io/ diff --git a/net/gerbera/pkg-plist b/net/gerbera/pkg-plist new file mode 100644 index 000000000000..1126ee70edc4 --- /dev/null +++ b/net/gerbera/pkg-plist @@ -0,0 +1,79 @@ +bin/gerbera +%%DATADIR%%/js/common.js +%%DATADIR%%/js/import.js +%%DATADIR%%/js/import_structured.js +%%DATADIR%%/js/playlists.js +%%DATADIR%%/mappings.xml +%%DATADIR%%/mysql.sql +%%DATADIR%%/sqlite3.sql +%%DATADIR%%/web/README.md +%%DATADIR%%/web/assets/theme/colors.css +%%DATADIR%%/web/assets/theme/gerbera-logo-white.png +%%DATADIR%%/web/assets/theme/gerbera.css +%%DATADIR%%/web/cds.xml +%%DATADIR%%/web/cm.xml +%%DATADIR%%/web/disabled.html +%%DATADIR%%/web/favicon.ico +%%DATADIR%%/web/icons/mt-icon120.bmp +%%DATADIR%%/web/icons/mt-icon120.jpg +%%DATADIR%%/web/icons/mt-icon120.png +%%DATADIR%%/web/icons/mt-icon32.bmp +%%DATADIR%%/web/icons/mt-icon32.jpg +%%DATADIR%%/web/icons/mt-icon32.png +%%DATADIR%%/web/icons/mt-icon48.bmp +%%DATADIR%%/web/icons/mt-icon48.jpg +%%DATADIR%%/web/icons/mt-icon48.png +%%DATADIR%%/web/index.html +%%DATADIR%%/web/js/gerbera-app.module.js +%%DATADIR%%/web/js/gerbera-auth.module.js +%%DATADIR%%/web/js/gerbera-autoscan.module.js +%%DATADIR%%/web/js/gerbera-items.module.js +%%DATADIR%%/web/js/gerbera-menu.module.js +%%DATADIR%%/web/js/gerbera-trail.module.js +%%DATADIR%%/web/js/gerbera-tree.module.js +%%DATADIR%%/web/js/gerbera-updates.module.js +%%DATADIR%%/web/js/jquery.gerbera.autoscan.js +%%DATADIR%%/web/js/jquery.gerbera.editor.js +%%DATADIR%%/web/js/jquery.gerbera.items.js +%%DATADIR%%/web/js/jquery.gerbera.toast.js +%%DATADIR%%/web/js/jquery.gerbera.trail.js +%%DATADIR%%/web/js/jquery.gerbera.tree.js +%%DATADIR%%/web/js/md5.js +%%DATADIR%%/web/mr_reg.xml +%%DATADIR%%/web/vendor/bootstrap/css/bootstrap-grid.css +%%DATADIR%%/web/vendor/bootstrap/css/bootstrap-grid.css.map +%%DATADIR%%/web/vendor/bootstrap/css/bootstrap-grid.min.css +%%DATADIR%%/web/vendor/bootstrap/css/bootstrap-grid.min.css.map +%%DATADIR%%/web/vendor/bootstrap/css/bootstrap-reboot.css +%%DATADIR%%/web/vendor/bootstrap/css/bootstrap-reboot.css.map +%%DATADIR%%/web/vendor/bootstrap/css/bootstrap-reboot.min.css +%%DATADIR%%/web/vendor/bootstrap/css/bootstrap-reboot.min.css.map +%%DATADIR%%/web/vendor/bootstrap/css/bootstrap.css +%%DATADIR%%/web/vendor/bootstrap/css/bootstrap.css.map +%%DATADIR%%/web/vendor/bootstrap/css/bootstrap.min.css +%%DATADIR%%/web/vendor/bootstrap/css/bootstrap.min.css.map +%%DATADIR%%/web/vendor/bootstrap/js/bootstrap.bundle.js +%%DATADIR%%/web/vendor/bootstrap/js/bootstrap.bundle.js.map +%%DATADIR%%/web/vendor/bootstrap/js/bootstrap.bundle.min.js +%%DATADIR%%/web/vendor/bootstrap/js/bootstrap.bundle.min.js.map +%%DATADIR%%/web/vendor/bootstrap/js/bootstrap.js +%%DATADIR%%/web/vendor/bootstrap/js/bootstrap.js.map +%%DATADIR%%/web/vendor/bootstrap/js/bootstrap.min.js +%%DATADIR%%/web/vendor/bootstrap/js/bootstrap.min.js.map +%%DATADIR%%/web/vendor/font-awesome/css/font-awesome.css +%%DATADIR%%/web/vendor/font-awesome/css/font-awesome.min.css +%%DATADIR%%/web/vendor/font-awesome/fonts/FontAwesome.otf +%%DATADIR%%/web/vendor/font-awesome/fonts/fontawesome-webfont.eot +%%DATADIR%%/web/vendor/font-awesome/fonts/fontawesome-webfont.svg +%%DATADIR%%/web/vendor/font-awesome/fonts/fontawesome-webfont.ttf +%%DATADIR%%/web/vendor/font-awesome/fonts/fontawesome-webfont.woff +%%DATADIR%%/web/vendor/font-awesome/fonts/fontawesome-webfont.woff2 +%%DATADIR%%/web/vendor/jquery/jquery-3.4.0.min.js +%%DATADIR%%/web/vendor/jquery/jquery-ui.min.js +%%DATADIR%%/web/vendor/js-cookie.js +%%DATADIR%%/web/vendor/lato/LICENCE.md +%%DATADIR%%/web/vendor/lato/lato-v14-latin-ext_latin-regular.woff +%%DATADIR%%/web/vendor/lato/lato-v14-latin-ext_latin-regular.woff2 +%%DATADIR%%/web/vendor/popper/popper.js +%%DATADIR%%/web/vendor/tether/tether.min.js +share/man/man1/gerbera.1.gz -- 2.26.2