diff options
Diffstat (limited to 'polish/napi/files')
-rw-r--r-- | polish/napi/files/patch-libs_libnapi__fs.sh | 29 | ||||
-rw-r--r-- | polish/napi/files/patch-libs_libnapi__subs.sh | 16 | ||||
-rw-r--r-- | polish/napi/files/patch-libs_libnapi__wrappers.sh | 24 |
3 files changed, 69 insertions, 0 deletions
diff --git a/polish/napi/files/patch-libs_libnapi__fs.sh b/polish/napi/files/patch-libs_libnapi__fs.sh new file mode 100644 index 0000000..755e942 --- /dev/null +++ b/polish/napi/files/patch-libs_libnapi__fs.sh @@ -0,0 +1,29 @@ +--- libs/libnapi_fs.sh.orig 2020-04-24 07:22:41 UTC ++++ libs/libnapi_fs.sh +@@ -54,7 +54,7 @@ _fs_configureStat_GV() { + # verify stat tool + ___g_fsWrappers[$___g_fsStat]="stat -c%s " + +- if wrappers_isSystemDarwin; then ++ if wrappers_isSystemDarwin || wrappers_isSystemFreeBSD; then + # stat may be installed through macports, check if + # there's a need to reconfigure it to BSD flavour + ${___g_fsWrappers[$___g_fsStat]} "$0" >/dev/null 2>&1 || +@@ -72,6 +72,8 @@ _fs_configureBase64_GV() { + # verify base64 + wrappers_isSystemDarwin && + ___g_fsWrappers[$___g_fsBase64]="base64 -D" ++ wrappers_isSystemFreeBSD && ++ ___g_fsWrappers[$___g_fsBase64]="base64 -d" + } + + # +@@ -83,6 +85,8 @@ _fs_configureMd5_GV() { + # verify md5 tool + ___g_fsWrappers[$___g_fsMd5]="md5sum" + wrappers_isSystemDarwin && ++ ___g_fsWrappers[$___g_fsMd5]="md5" ++ wrappers_isSystemFreeBSD && + ___g_fsWrappers[$___g_fsMd5]="md5" + } + diff --git a/polish/napi/files/patch-libs_libnapi__subs.sh b/polish/napi/files/patch-libs_libnapi__subs.sh new file mode 100644 index 0000000..2b55c8f --- /dev/null +++ b/polish/napi/files/patch-libs_libnapi__subs.sh @@ -0,0 +1,16 @@ +--- libs/libnapi_subs.sh.orig 2020-04-26 01:52:36 UTC ++++ libs/libnapi_subs.sh +@@ -189,11 +189,11 @@ subs_convertFormat() { + subotage_processFile \ + "${videoFileDir}/${sourceSubsFileName}" \ + "none" \ +- "0" \ ++ "${fps}" \ + "" \ + "${videoFileDir}/${destSubsFileName}" \ + "${format}" \ +- "${fps}" \ ++ "0" \ + "" + convStatus=$? + diff --git a/polish/napi/files/patch-libs_libnapi__wrappers.sh b/polish/napi/files/patch-libs_libnapi__wrappers.sh new file mode 100644 index 0000000..fd696a7 --- /dev/null +++ b/polish/napi/files/patch-libs_libnapi__wrappers.sh @@ -0,0 +1,24 @@ +--- libs/libnapi_wrappers.sh.orig 2020-04-24 07:38:48 UTC ++++ libs/libnapi_wrappers.sh +@@ -129,13 +129,20 @@ wrappers_isSystemDarwin() { + } + + # ++# @brief returns true if system is FreeBSD ++# ++wrappers_isSystemFreeBSD() { ++ [ "$(wrappers_getSystem_SO)" = "freebsd" ] ++} ++ ++# + # @brief determines number of available cpu's in the system + # + # @param system type (linux|darwin) + # + wrappers_getCores_SO() { + local os="${1:-linux}" +- if wrappers_isSystemDarwin; then ++ if wrappers_isSystemDarwin || wrappers_isSystemFreeBSD; then + sysctl hw.ncpu | cut -d ' ' -f 2 + else + grep -i processor /proc/cpuinfo | wc -l |