[oe-commits] org.oe.dreambox libcdio: add libcdio

tmbinc commit oe at amethyst.openembedded.net
Mon Jul 28 08:09:21 UTC 2008


libcdio: add libcdio

Author: tmbinc at openembedded.org
Branch: org.openembedded.dreambox
Revision: 79513b9268327692608035d6694d882006e2b99c
ViewMTN: http://monotone.openembedded.org/revision/info/79513b9268327692608035d6694d882006e2b99c
Files:
1
packages/libcdio
packages/libcdio/libcdio
packages/libcdio/libcdio/libcdio-0.80-add-cdtextinfo.patch
packages/libcdio/libcdio/libcdio-0.80-configure-crosscompile.patch
packages/libcdio/libcdio/libcdio-0.80-fix-pkgconfig.patch
packages/libcdio/libcdio/libcdio-0.80-minimal-new.patch
packages/libcdio/libcdio_0.80.bb
Diffs:

#
# mt diff -rf614357ba8e0764943610cfaccb2ca995a6597da -r79513b9268327692608035d6694d882006e2b99c
#
#
#
# add_dir "packages/libcdio"
# 
# add_dir "packages/libcdio/libcdio"
# 
# add_file "packages/libcdio/libcdio/libcdio-0.80-add-cdtextinfo.patch"
#  content [076514e938772d1ea1329e56ea370059d038237c]
# 
# add_file "packages/libcdio/libcdio/libcdio-0.80-configure-crosscompile.patch"
#  content [fa8db920c2e2943947ecf53d9bd397e35ef4afae]
# 
# add_file "packages/libcdio/libcdio/libcdio-0.80-fix-pkgconfig.patch"
#  content [1670b77756fbbe71cea0217dd06e1f4e1dd4705b]
# 
# add_file "packages/libcdio/libcdio/libcdio-0.80-minimal-new.patch"
#  content [d477cfc19c1386325244afbd9d3ee020bde3b113]
# 
# add_file "packages/libcdio/libcdio_0.80.bb"
#  content [7f0cdc2a9ffc7b280498b7ad37691b6c938e479c]
#
============================================================
--- packages/libcdio/libcdio/libcdio-0.80-add-cdtextinfo.patch	076514e938772d1ea1329e56ea370059d038237c
+++ packages/libcdio/libcdio/libcdio-0.80-add-cdtextinfo.patch	076514e938772d1ea1329e56ea370059d038237c
@@ -0,0 +1,414 @@
+Index: libcdio-0.80/configure.ac
+===================================================================
+--- libcdio-0.80/configure.ac
++++ libcdio-0.80/configure.ac
+@@ -605,6 +605,7 @@
+        test/testisocd2.c \
+        test/check_common_fn \
+        test/Makefile \
++       cdtextinfo/Makefile \
+        ])
+ 
+ # AC_CONFIG_FILES([po/Makefile])
+Index: libcdio-0.80/Makefile.am
+===================================================================
+--- libcdio-0.80/Makefile.am
++++ libcdio-0.80/Makefile.am
+@@ -36,7 +36,7 @@
+ 	libudf.pc.in \
+ 	package/libcdio.spec.in 
+ 
+-SUBDIRS = doc include lib src test example
++SUBDIRS = doc include lib src test cdtextinfo
+ 
+ if BUILD_CD_PARANOIA
+ paranoiapcs = libcdio_paranoia.pc libcdio_cdda.pc
+Index: libcdio-0.80/cdtextinfo/cdtextinfo.c
+===================================================================
+--- libcdio-0.80/cdtextinfo/cdtextinfo.c
++++ libcdio-0.80/cdtextinfo/cdtextinfo.c
+@@ -0,0 +1,372 @@                                                                                                                                    
++/*                                                                                                                                                  
++  This program is free software; you can redistribute it and/or modify                                                                              
++  it under the terms of the GNU General Public License as published by                                                                              
++  the Free Software Foundation; either version 2 of the License, or                                                                                 
++  (at your option) any later version.                                                                                                               
++                                                                                                                                                    
++  This program is distributed in the hope that it will be useful,                                                                                   
++  but WITHOUT ANY WARRANTY; without even the implied warranty of                                                                                    
++  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                                                                     
++  GNU General Public License for more details.                                                                                                      
++                                                                                                                                                    
++  You should have received a copy of the GNU General Public License                                                                                 
++  along with this program; if not, write to the Free Software                                                                                       
++  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                                                                         
++                                                                                                                                                    
++  cdtextinfo, 2008-07-25 by fraxinas <andreas.frisch at multimedia-labs.de>                                                                            
++*/                                                                                                                                                  
++                                                                                                                                                    
++#include "config.h"                                                                                                                                 
++#include <stdio.h>                                                                                                                                  
++#include <stdlib.h>                                                                                                                                 
++#include <string.h>                                                                                                                                 
++#include <cddb/cddb.h>                                                                                                                              
++#include <cdio/cdio.h>                                                                                                                              
++#include <cdio/cdtext.h>                                                                                                                            
++#include "../src/cddb.h"                                                                                                                            
++#include "../src/getopt.h"                                                                                                                          
++                                                                                                                                                    
++struct opts_s                                                                                                                                       
++{                                                                                                                                                   
++    bool       album;                                                                                                                               
++    bool       listing;                                                                                                                             
++    bool       cddb;                                                                                                                                
++    bool       cdtext;                                                                                                                              
++    bool       xml;                                                                                                                                 
++} options;                                                                                                                                          
++                                                                                                                                                    
++/* Configuration option codes */                                                                                                                    
++enum {                                                                                                                                              
++  OP_HANDLED = 0,                                                                                                                                   
++                                                                                                                                                    
++  OP_CDDB_SERVER,                                                                                                                                   
++  OP_CDDB_CACHE,                                                                                                                                    
++  OP_CDDB_EMAIL,                                                                                                                                    
++  OP_CDDB_NOCACHE,                                                                                                                                  
++  OP_CDDB_TIMEOUT,                                                                                                                                  
++                                                                                                                                                    
++  OP_USAGE,                                                                                                                                         
++                                                                                                                                                    
++  /* These are the remaining configuration options */                                                                                               
++  OP_VERSION,                                                                                                                                       
++                                                                                                                                                    
++};                                                                                                                                                  
++                                                                                                                                                    
++static bool parse_options (int argc, char *argv[])                                                                                                  
++{                                                                                                                                                   
++    int opt; /* used for argument parsing */                                                                                                        
++                                                                                                                                                    
++    const char* helpText =                                                                                                                          
++       "Usage: %s [OPTION...]\n"                                                                                                                    
++       "  -a, --album                     Print audio CD album info\n"                                                                              
++       "  -l, --listing                   Print title info for all tracks\n"                                                                        
++       "  -T, --cdtext                    Use CD-Text\n"                                                                                            
++       "  -D, --cddb                      Use CDDB\n"                                                                                               
++       "  -x, --xml                       XML output\n"                                                                                             
++       "\n"                                                                                                                                         
++       "CDDB options:\n"                                                                                                                            
++       "  -P, --cddb-port=INT             CDDB port number to use (default 8880)\n"                                                                 
++       "  --cddb-server=STRING            CDDB server to contact for information\n"                                                                 
++       "                                  (default: freedb.freedb.org)\n"                                                                           
++       "  --cddb-cache=STRING             Location of CDDB cache directory\n"                                                                       
++       "                                  (default ~/.cddbclient)\n"                                                                                
++       "  --cddb-email=STRING             Email address to give CDDB server\n"                                                                      
++       "                                  (default me at dreambox)\n"                                                                                  
++       "  --no-cddb-cache                 Disable caching of CDDB entries\n"                                                                        
++       "                                  locally (default caches)\n"                                                                               
++       "  --cddb-timeout=INT              CDDB timeout value in seconds\n"                                                                          
++       "                                  (default 10 seconds)\n"                                                                                   
++       "\n"                                                                                                                                         
++       "Help options:\n"                                                                                                                            
++       "  -?, --help                      Show this help message\n"                                                                                 
++       "  --usage                         Display brief usage message\n"                                                                            
++       "\n"                                                                                                                                         
++       "Example: %s -xalDT\n"                                                                                                                       
++        "  Will query album info and track listing from both CD-Text and CDDB and display as XML\n";                                                
++                                                                                                                                                    
++    const char* usageText =                                                                                                                         
++       "Usage: %s [-a|--album] [-l|--listing]\n"                                                                                                    
++       "        [-T|--cdtext] [-D|--cddb] [-x|--xml]\n"                                                                                             
++       "        [-P|--cddb-port INT] [--cddb-server=STRING]\n"                                                                                      
++        "        [--cddb-cache=STRING] [--cddb-email=STRING]\n"                                                                                     
++        "        [--no-cddb-cache] [--cddb-timeout=INT]\n"                                                                                          
++       "        [-?|--help] [--usage]\n";                                                                                                           
++                                                                                                                                                    
++    const char* optionsString = "alTDP:x?";                                                         %s
>>> DIFF TRUNCATED @ 16K






More information about the Openembedded-commits mailing list