]> git.sesse.net Git - vlc/commitdiff
Contribs: fix libcaca-beta17 linkage on Win32
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 24 Aug 2010 17:30:29 +0000 (19:30 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 24 Aug 2010 18:03:08 +0000 (20:03 +0200)
extras/contrib/src/Makefile
extras/contrib/src/Patches/libcaca-win32-static.patch [new file with mode: 0644]

index 61d5ee7aa662dba4cb79bf34225a8ebbc3928b51..e8879178fa1919dc47e436d2c318ac1016c3555d 100644 (file)
@@ -1323,6 +1323,10 @@ ifdef HAVE_DARWIN_OS
        patch -p0 < Patches/libcaca-osx-sdkofourchoice.patch
        (cd $@; sed -e 's%/Developer/SDKs/MacOSX10.4u.sdk%$(MACOSX_SDK)%' -i.orig  configure)
 endif
+ifdef HAVE_WIN32
+       patch -p0 < Patches/libcaca-win32-static.patch
+endif
+
 
 .caca: libcaca
        (cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) --disable-imlib2 --disable-doc --disable-ruby --disable-csharp --disable-cxx && cd caca && make && make install)
diff --git a/extras/contrib/src/Patches/libcaca-win32-static.patch b/extras/contrib/src/Patches/libcaca-win32-static.patch
new file mode 100644 (file)
index 0000000..87cd4e1
--- /dev/null
@@ -0,0 +1,11 @@
+--- libcaca/caca/caca.h        2010-02-08 13:34:28.000000000 +0100
++++ libcaca.new/caca/caca.h    2010-08-24 19:27:39.000000000 +0200
+@@ -31,7 +31,7 @@
+ #if defined _DOXYGEN_SKIP_ME
+ #elif defined _WIN32 && defined __LIBCACA__ && defined DLL_EXPORT
+ #   define __extern extern __declspec(dllexport)
+-#elif defined _WIN32 && !defined __LIBCACA__
++#elif defined _WIN32 && !defined __LIBCACA__ && defined __NULL
+ #   define __extern extern __declspec(dllimport)
+ #else
+ #   define __extern extern