freebsd-ports/multimedia/bombono/files/patch-src-mlib-filesystem.cpp
Pawel Pekala f120b7547b - Force build with external boost libs otherwise port uses old,
bundled ones from tarball
- Add patches to fix build with newer, external boost libs
- Bump PORTREVISION as deps have changed

PR:		ports/168539
Reported by:	David Wolfskill <david@catwhisker.org>
2012-06-06 18:48:37 +00:00

28 lines
893 B
C++

--- src/mlib/filesystem.cpp.orig 2012-06-05 18:44:31.000000000 +0200
+++ src/mlib/filesystem.cpp 2012-06-05 18:46:42.000000000 +0200
@@ -47,7 +47,7 @@
std::string get_basename(const fs::path& pth)
{
- std::string name_s = pth.leaf();
+ std::string name_s = pth.filename().string();
const char* name = name_s.c_str();
//if( const char* dot = strstr(name, ".") )
@@ -58,7 +58,7 @@
std::string get_extension(const fs::path& pth)
{
- std::string name_s = pth.leaf();
+ std::string name_s = pth.filename().string();
if( const char* dot = FindExtDot(name_s.c_str()) )
return std::string(dot+1);
@@ -72,7 +72,6 @@
tune_boost_filesystem()
{
// чтоб любые символы в именах файлов позволялись, для utf8
- fs::path::default_name_check(fs::native);
}
} tune_boost_filesystem_obj;