[SCM] calf/master: + LV2: got makerdf.cpp to compile properly when LV2 is disabled

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:37:07 UTC 2013


The following commit has been merged in the master branch:
commit cfbe6a5bc9ca7ac19cc4b5d2acf1821f5f2c934c
Author: kfoltman <kfoltman at 78b06b96-2940-0410-b7fc-879d825d01d8>
Date:   Sat Apr 5 21:49:17 2008 +0000

    + LV2: got makerdf.cpp to compile properly when LV2 is disabled
    
    
    
    git-svn-id: https://calf.svn.sourceforge.net/svnroot/calf/trunk@146 78b06b96-2940-0410-b7fc-879d825d01d8

diff --git a/src/makerdf.cpp b/src/makerdf.cpp
index 18f23d1..f0adcda 100644
--- a/src/makerdf.cpp
+++ b/src/makerdf.cpp
@@ -58,6 +58,7 @@ void make_rdf()
     printf("%s\n", rdf.c_str());
 }
 
+#if USE_LV2
 static void add_port(string &ports, const char *symbol, const char *name, const char *direction, int pidx, const char *type = "lv2:AudioPort", bool optional = false)
 {
     stringstream ss;
@@ -221,6 +222,16 @@ void make_manifest()
 
     printf("%s\n", ttl.c_str());
 }
+#else
+void make_manifest()
+{
+    fprintf(stderr, "LV2 not supported.\n");
+}
+void make_ttl(string tmp)
+{
+    fprintf(stderr, "LV2 not supported.\n");
+}
+#endif
 
 int main(int argc, char *argv[])
 {

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list