]> git.sesse.net Git - vlc/commitdiff
Contribs: separate win32 from other platform for CDDB
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 26 Oct 2009 23:34:50 +0000 (00:34 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 26 Oct 2009 23:46:38 +0000 (00:46 +0100)
The changes needed are not the same.

extras/contrib/src/Makefile
extras/contrib/src/Patches/libcddb-cross.patch
extras/contrib/src/Patches/libcddb-win32.patch [new file with mode: 0644]

index af4d44efe0ba6e8d38d9f0a17fcae0594ec1121c..f8e411ed9731989a802443a0a512699653bd28a0 100644 (file)
@@ -1426,7 +1426,11 @@ libcddb-$(CDDB_VERSION).tar.bz2:
 
 libcddb: libcddb-$(CDDB_VERSION).tar.bz2
        $(EXTRACT_BZ2)
-       (cd $@; patch -p0 < ../Patches/libcddb-cross.patch && autoreconf -fisv)
+       (cd $@; patch -p0 < ../Patches/libcddb-cross.patch )
+ifdef HAVE_WIN32
+       (cd $@; patch -p0 < ../Patches/libcddb-win32.patch )
+endif
+       (cd $@; autoreconf -fisv)
 
 ifdef HAVE_WIN32
 .cddb: libcddb .regex
index 5c91f01dad4d80c75c5fff0c8de9c0f275340d2b..591c187af1951c9dc17ec7e54565c6bb7fadfff4 100644 (file)
  AC_FUNC_STAT
  AC_FUNC_VPRINTF
  AC_FUNC_SELECT_ARGTYPES
---- libcddb.pc.in.orig 2009-10-25 21:36:57.000000000 +0100
-+++ libcddb.pc.in      2009-10-25 21:36:11.000000000 +0100
-@@ -6,5 +6,5 @@
- Name: libcddb
- Description: CDDB server access library
- Version: @VERSION@
--Libs: -L${libdir} -lcddb @LIBICONV@
-+Libs: -L${libdir} -lcddb ${libdir}/libregex.a @LIBICONV@
- Cflags: -I${includedir}
 --- include/cddb/cddb_ni.h.orig        2009-10-25 21:58:20.000000000 +0100
 +++ include/cddb/cddb_ni.h     2009-10-25 21:58:46.000000000 +0100
 @@ -35,6 +35,7 @@
diff --git a/extras/contrib/src/Patches/libcddb-win32.patch b/extras/contrib/src/Patches/libcddb-win32.patch
new file mode 100644 (file)
index 0000000..9808a1c
--- /dev/null
@@ -0,0 +1,9 @@
+--- libcddb.pc.in.orig 2009-10-25 21:36:57.000000000 +0100
++++ libcddb.pc.in      2009-10-25 21:36:11.000000000 +0100
+@@ -6,5 +6,5 @@
+ Name: libcddb
+ Description: CDDB server access library
+ Version: @VERSION@
+-Libs: -L${libdir} -lcddb @LIBICONV@
++Libs: -L${libdir} -lcddb -lregex ${libdir}/libregex.a @LIBICONV@ -lws2_32
+ Cflags: -I${includedir}