svn commit: r424762 - in head/audio/taglookup: . files
Dmitry Marakasov
amdmi3 at FreeBSD.org
Thu Oct 27 12:59:42 UTC 2016
Author: amdmi3
Date: Thu Oct 27 12:59:41 2016
New Revision: 424762
URL: https://svnweb.freebsd.org/changeset/ports/424762
Log:
- Add LICENSE
- Fix build on 12.x (where dirname(3), basename(3) now take char* instead of const char*)
Approved by: portmgr blanket
Modified:
head/audio/taglookup/Makefile
head/audio/taglookup/files/patch-tag.cpp
Modified: head/audio/taglookup/Makefile
==============================================================================
--- head/audio/taglookup/Makefile Thu Oct 27 12:53:12 2016 (r424761)
+++ head/audio/taglookup/Makefile Thu Oct 27 12:59:41 2016 (r424762)
@@ -10,6 +10,9 @@ MASTER_SITES= http://www.kamaz.org.uk/ta
MAINTAINER= alex at kamaz.org.uk
COMMENT= Utility for tagging groups of audio files using CDDB
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
LIB_DEPENDS= libcddb.so:audio/libcddb \
libtag.so:audio/taglib
Modified: head/audio/taglookup/files/patch-tag.cpp
==============================================================================
--- head/audio/taglookup/files/patch-tag.cpp Thu Oct 27 12:53:12 2016 (r424761)
+++ head/audio/taglookup/files/patch-tag.cpp Thu Oct 27 12:59:41 2016 (r424762)
@@ -31,3 +31,20 @@
return true;
else
return false;
+@@ -261,8 +262,14 @@ namespace TagLookup
+
+ void operator() (const OldNameNewName &onnn)
+ {
+- std::string new_base(basename(onnn.new_name.c_str()));
+- std::string new_path(dirname(onnn.old_name.c_str()));
++ std::vector<char> newbuf(onnn.new_name.begin(), onnn.new_name.end());
++ newbuf.push_back('\0');
++
++ std::vector<char> oldbuf(onnn.old_name.begin(), onnn.old_name.end());
++ oldbuf.push_back('\0');
++
++ std::string new_base(basename(newbuf.data()));
++ std::string new_path(dirname(oldbuf.data()));
+
+ new_path.append("/");
+ new_path.append(new_base);
More information about the svn-ports-all
mailing list