summaryrefslogtreecommitdiff
path: root/audio/bmpx
diff options
context:
space:
mode:
authordholland <dholland>2011-10-08 06:08:27 +0000
committerdholland <dholland>2011-10-08 06:08:27 +0000
commitaf336fc44d2f1631c450ac52b22a44f12d3ad409 (patch)
tree1823cd2f5c5d889796c76ac46b103fe54ff58288 /audio/bmpx
parent95432c261f2b4fc078032841b6854444c0da6ae1 (diff)
downloadpkgsrc-af336fc44d2f1631c450ac52b22a44f12d3ad409.tar.gz
Fix build with newer C++ compilers.
Diffstat (limited to 'audio/bmpx')
-rw-r--r--audio/bmpx/distinfo3
-rw-r--r--audio/bmpx/patches/patch-library_cc24
2 files changed, 26 insertions, 1 deletions
diff --git a/audio/bmpx/distinfo b/audio/bmpx/distinfo
index 070e8e8d1b1..1d15da3e2b0 100644
--- a/audio/bmpx/distinfo
+++ b/audio/bmpx/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.12 2011/01/17 14:30:06 drochner Exp $
+$NetBSD: distinfo,v 1.13 2011/10/08 06:08:27 dholland Exp $
SHA1 (bmpx-0.40.14.tar.bz2) = 3284843c45cab302f414663a5cb31eb4373d07c7
RMD160 (bmpx-0.40.14.tar.bz2) = 12a9939d53b58a43ee9deefa43188ac6b33dae72
@@ -14,3 +14,4 @@ SHA1 (patch-ah) = d8a7085943f3795fe5fe85fa94f4e93434eca329
SHA1 (patch-ai) = 0e8a20bb8d18f14da58f2681a2fb6ae141e9d66d
SHA1 (patch-aj) = e6a9bd43cac01df156a95a688f8fd99e1383bb63
SHA1 (patch-ak) = 10a363145c7e9f75e07ca69fc38515413fc606f8
+SHA1 (patch-library_cc) = 26cbced97d7669081eb4ff60c062a34c258c7337
diff --git a/audio/bmpx/patches/patch-library_cc b/audio/bmpx/patches/patch-library_cc
new file mode 100644
index 00000000000..90078daf57e
--- /dev/null
+++ b/audio/bmpx/patches/patch-library_cc
@@ -0,0 +1,24 @@
+$NetBSD: patch-library_cc,v 1.1 2011/10/08 06:08:27 dholland Exp $
+
+Fix build with newer C++ compilers.
+
+--- src/library.cc~ 2008-03-05 21:31:06.000000000 +0000
++++ src/library.cc
+@@ -530,7 +530,7 @@ namespace Bmp
+ gint64 length_in_nanoseconds;
+ gst_query_parse_duration (query, &format, &length_in_nanoseconds);
+ guint64 length = length_in_nanoseconds / GST_SECOND;
+- ttuple->row->insert (std::make_pair (attrinfo[ATTRIBUTE_TIME].id, Variant (length)));
++ ttuple->row->insert (std::make_pair (attrinfo[ATTRIBUTE_TIME].id, Bmp::DB::Variant (length)));
+ }
+ gst_query_unref (query);
+ gst_element_set_state (GST_ELEMENT (element), GST_STATE_NULL);
+@@ -921,7 +921,7 @@ namespace Bmp
+ }
+ #endif //HAVE_HAL
+
+- row.insert (std::make_pair ("insert_path", Variant (string (insert_path))));
++ row.insert (std::make_pair ("insert_path", Bmp::DB::Variant (string (insert_path))));
+ row.insert (std::make_pair (attrinfo[ATTRIBUTE_NEW_ITEM].id, guint64 (1)));
+
+ struct stat fstat;