[vlc-devel] commit: contrib: remove pointless patch and avoid libtool/autogen.sh hell ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Sep 3 21:22:14 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Sep  3 20:53:21 2009 +0300| [b6e6e8fbdb4e19335d2def43177c736e58ae29db] | committer: Rémi Denis-Courmont 

contrib: remove pointless patch and avoid libtool/autogen.sh hell

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b6e6e8fbdb4e19335d2def43177c736e58ae29db
---

 extras/contrib/src/Makefile             |   17 +++++++++++++----
 extras/contrib/src/Patches/theora.patch |   25 -------------------------
 2 files changed, 13 insertions(+), 29 deletions(-)

diff --git a/extras/contrib/src/Makefile b/extras/contrib/src/Makefile
index c52fa0f..b1f7354 100644
--- a/extras/contrib/src/Makefile
+++ b/extras/contrib/src/Makefile
@@ -749,9 +749,7 @@ libtheora-$(THEORA_VERSION).tar.bz2:
 
 libtheora: libtheora-$(THEORA_VERSION).tar.bz2
 	$(EXTRACT_BZ2)
-ifndef HAVE_DARWIN_OS
-	patch -p0 < Patches/theora.patch
-else
+ifdef HAVE_DARWIN_OS
 ifdef HAVE_DARWIN_OS_ON_INTEL
 	patch -p0 < Patches/theora_mac_intel32.patch
 else
@@ -776,7 +774,18 @@ THEORACONF += --disable-asm
 endif
 
 .theora: libtheora .ogg
-	(cd $<; $(HOSTCC) ./autogen.sh $(HOSTCONF) --prefix=$(PREFIX) $(THEORACONF) && make && make install)
+ifdef HAVE_DARWIN_OS
+	cd $<; $(HOSTCC) ./autogen.sh $(HOSTCONF) --prefix=$(PREFIX) $(THEORACONF)
+endif
+ifdef HAVE_WIN32
+	cd $<; $(HOSTCC) ./autogen.sh $(HOSTCONF) --prefix=$(PREFIX) $(THEORACONF)
+endif
+	if test ! -f $</config.status; then \
+		cd $< ; \
+		$(HOSTCC) ./configure $(HOSTCONF) \
+			--prefix=$(PREFIX) $(THEORACONF) ; \
+	fi
+	cd $< && make && make install
 	$(INSTALL_NAME)
 	touch $@
 
diff --git a/extras/contrib/src/Patches/theora.patch b/extras/contrib/src/Patches/theora.patch
deleted file mode 100644
index 6e747b8..0000000
--- a/extras/contrib/src/Patches/theora.patch
+++ /dev/null
@@ -1,25 +0,0 @@
---- libtheora/configure.ac	2007-09-18 08:47:09.000000000 +0200
-+++ libtheora.new/configure.ac	2007-09-23 14:44:48.000000000 +0200
-@@ -93,7 +93,7 @@
-         case $host in 
-         *)
-                 DEBUG="-g -DDEBUG"
--                CFLAGS="-O"
-+                EXTRA_CFLAGS="-O"
-                 PROFILE="-g -p -DDEBUG" ;;
-         esac
- else
-@@ -101,11 +101,11 @@
-         case $host in 
-         *)
-                 DEBUG="-g -Wall -Wno-parentheses -DDEBUG -D__NO_MATH_INLINES"
--                CFLAGS="-Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops"
-+                EXTRAS_CFLAGS="-Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops"
-                 PROFILE="-Wall -Wno-parentheses -pg -g -O3 -fno-inline-functions -DDEBUG";;
-         esac
- fi
--CFLAGS="$CFLAGS $cflags_save"
-+CFLAGS="$EXTRAS_CFLAGS $cflags_save"
- 
- cpu_x86_64=no
- cpu_x86_32=no




More information about the vlc-devel mailing list