[vlc-commits] commit: Contribs: compile whole modplug on Win32 (Jean-Baptiste Kempf )
git at videolan.org
git at videolan.org
Mon Aug 9 12:10:18 CEST 2010
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Aug 9 12:09:02 2010 +0200| [922b5784b451e815c1c9626eb4537a7f6d4b9836] | committer: Jean-Baptiste Kempf
Contribs: compile whole modplug on Win32
It now compiles fine
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=922b5784b451e815c1c9626eb4537a7f6d4b9836
---
extras/contrib/src/Makefile | 106 +++++++++------------
extras/contrib/src/Patches/libmodplug-win32.patch | 24 -----
2 files changed, 47 insertions(+), 83 deletions(-)
diff --git a/extras/contrib/src/Makefile b/extras/contrib/src/Makefile
index ee59b99..7018976 100644
--- a/extras/contrib/src/Makefile
+++ b/extras/contrib/src/Makefile
@@ -884,6 +884,53 @@ CLEAN_FILE += .faad
CLEAN_PKG += faad2
DISTCLEAN_PKG += faad2-$(FAAD2_VERSION).tar.gz
+# ***************************************************************************
+# libebml
+# ***************************************************************************
+
+libebml-$(LIBEBML_VERSION).tar.bz2:
+ $(WGET) $(LIBEBML_URL)
+
+libebml: libebml-$(LIBEBML_VERSION).tar.bz2
+ $(EXTRACT_BZ2)
+
+.ebml: libebml
+ifdef HAVE_WIN32
+ (cd $<; make -C make/mingw32 prefix=$(PREFIX) $(HOSTCC) SHARED=no && make -C make/linux install_staticlib install_headers prefix=$(PREFIX) $(HOSTCC))
+else
+ (cd $<; make -C make/linux prefix=$(PREFIX) $(HOSTCC2) staticlib && make -C make/linux install_staticlib install_headers prefix=$(PREFIX))
+ $(RANLIB) $(PREFIX)/lib/libebml.a
+endif
+ touch $@
+
+CLEAN_FILE += .ebml
+CLEAN_PKG += libebml
+DISTCLEAN_PKG += libebml-$(LIBEBML_VERSION).tar.bz2
+
+# ***************************************************************************
+# libmatroska
+# ***************************************************************************
+
+libmatroska-$(LIBMATROSKA_VERSION).tar.bz2:
+ $(WGET) $(LIBMATROSKA_URL)
+
+libmatroska: libmatroska-$(LIBMATROSKA_VERSION).tar.bz2
+ $(EXTRACT_BZ2)
+
+.matroska: libmatroska .ebml
+ifdef HAVE_WIN32
+ (cd $<; make -C make/mingw32 prefix=$(PREFIX) $(HOSTCC) SHARED=no EBML_DLL=no libmatroska.a && make -C make/linux install_staticlib install_headers prefix=$(PREFIX) $(HOSTCC))
+else
+ (cd $<; make -C make/linux prefix=$(PREFIX) $(HOSTCC) staticlib && make -C make/linux install_staticlib install_headers prefix=$(PREFIX))
+ $(RANLIB) $(PREFIX)/lib/libmatroska.a
+endif
+ touch $@
+
+
+CLEAN_FILE += .matroska
+CLEAN_PKG += libmatroska
+DISTCLEAN_PKG += libmatroska-$(LIBMATROSKA_VERSION).tar.bz2
+
# ***************************************************************************
# libvp8
@@ -946,52 +993,6 @@ CLEAN_FILE += .lame
CLEAN_PKG += lame
DISTCLEAN_PKG += lame-$(LAME_VERSION).tar.gz
-# ***************************************************************************
-# libebml
-# ***************************************************************************
-
-libebml-$(LIBEBML_VERSION).tar.bz2:
- $(WGET) $(LIBEBML_URL)
-
-libebml: libebml-$(LIBEBML_VERSION).tar.bz2
- $(EXTRACT_BZ2)
-
-.ebml: libebml
-ifdef HAVE_WIN32
- (cd $<; make -C make/mingw32 prefix=$(PREFIX) $(HOSTCC) SHARED=no && make -C make/linux install_staticlib install_headers prefix=$(PREFIX) $(HOSTCC))
-else
- (cd $<; make -C make/linux prefix=$(PREFIX) $(HOSTCC2) staticlib && make -C make/linux install_staticlib install_headers prefix=$(PREFIX))
- $(RANLIB) $(PREFIX)/lib/libebml.a
-endif
- touch $@
-
-CLEAN_FILE += .ebml
-CLEAN_PKG += libebml
-DISTCLEAN_PKG += libebml-$(LIBEBML_VERSION).tar.bz2
-
-# ***************************************************************************
-# libmatroska
-# ***************************************************************************
-
-libmatroska-$(LIBMATROSKA_VERSION).tar.bz2:
- $(WGET) $(LIBMATROSKA_URL)
-
-libmatroska: libmatroska-$(LIBMATROSKA_VERSION).tar.bz2
- $(EXTRACT_BZ2)
-
-.matroska: libmatroska .ebml
-ifdef HAVE_WIN32
- (cd $<; make -C make/mingw32 prefix=$(PREFIX) $(HOSTCC) SHARED=no EBML_DLL=no libmatroska.a && make -C make/linux install_staticlib install_headers prefix=$(PREFIX) $(HOSTCC))
-else
- (cd $<; make -C make/linux prefix=$(PREFIX) $(HOSTCC) staticlib && make -C make/linux install_staticlib install_headers prefix=$(PREFIX))
- $(RANLIB) $(PREFIX)/lib/libmatroska.a
-endif
- touch $@
-
-
-CLEAN_FILE += .matroska
-CLEAN_PKG += libmatroska
-DISTCLEAN_PKG += libmatroska-$(LIBMATROSKA_VERSION).tar.bz2
# ***************************************************************************
# libamrnb
@@ -1144,15 +1145,6 @@ CLEAN_PKG += libdvdcss
DISTCLEAN_PKG += libdvdcss-$(LIBDVDCSS_VERSION).tar.bz2
# ***************************************************************************
-# dummy dvdread to trigger the INSTALL_NAME script
-# ***************************************************************************
-# .dvdread: .dvdnav
-# $(INSTALL_NAME)
-# touch $@
-#
-# CLEAN_FILE += .dvdread
-
-# ***************************************************************************
# libdvdread: We use dvdnav's dvdread
# ***************************************************************************
libdvdread:
@@ -1420,10 +1412,6 @@ libmodplug-$(MODPLUG_VERSION).tar.gz:
libmodplug: libmodplug-$(MODPLUG_VERSION).tar.gz
$(EXTRACT_GZ)
-ifdef HAVE_WIN32
- patch -p0 < Patches/libmodplug-win32.patch
- (cd $@; autoreconf -ivf )
-endif
.mod: libmodplug
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) --disable-shared --enable-static && make && make install)
diff --git a/extras/contrib/src/Patches/libmodplug-win32.patch b/extras/contrib/src/Patches/libmodplug-win32.patch
deleted file mode 100644
index d8bae79..0000000
--- a/extras/contrib/src/Patches/libmodplug-win32.patch
+++ /dev/null
@@ -1,24 +0,0 @@
---- libmodplug-0.8.4/src/Makefile.am 2006-11-02 04:48:13.000000000 +0100
-+++ libmodplug/src/Makefile.am 2008-04-06 07:55:35.000000000 +0200
-@@ -32,9 +32,6 @@
- load_j2b.cpp \
- load_mt2.cpp \
- load_psm.cpp \
-- load_abc.cpp \
-- load_mid.cpp \
-- load_pat.cpp \
- modplug.cpp
-
- libmodplugincludedir = $(includedir)/libmodplug
-diff -ru libmodplug/src/sndfile.cpp libmodplug-new/src/sndfile.cpp
---- libmodplug/src/sndfile.cpp 2006-11-02 04:31:26.000000000 +0000
-+++ libmodplug-new/src/sndfile.cpp 2008-04-12 20:56:39.000000000 +0100
-@@ -143,8 +143,5 @@
- #ifndef MODPLUG_BASIC_SUPPORT
- /* Sequencer File Format Support */
-- && (!ReadABC(lpStream, dwMemLength))
-- && (!ReadMID(lpStream, dwMemLength))
-- && (!ReadPAT(lpStream, dwMemLength))
- && (!ReadSTM(lpStream, dwMemLength))
- && (!ReadMed(lpStream, dwMemLength))
- && (!ReadMTM(lpStream, dwMemLength))
More information about the vlc-commits
mailing list