]> git.sesse.net Git - vlc/commitdiff
* Don't build x264 application because it uses getopt which is not available under...
authorDerk-Jan Hartman <hartman@videolan.org>
Thu, 9 Jun 2005 22:44:02 +0000 (22:44 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Thu, 9 Jun 2005 22:44:02 +0000 (22:44 +0000)
extras/contrib/src/Makefile
extras/contrib/src/Patches/x264.patch [new file with mode: 0644]

index c7e5e29e969d5a3910d6fcf448ae860a4459e749..7b1a3e018d421d8e8d0444aae8a86565b7c5ea0d 100644 (file)
@@ -928,7 +928,8 @@ x264-$(X264_VERSION).tar.gz:
 
 x264: x264-$(X264_VERSION).tar.gz
        $(EXTRACT_GZ)
-
+       patch -p 0 < Patches/x264.patch
+       rm x264/x264.c
 
 .x264: x264
        (cd $<; ./configure --enable-pthread --prefix=$(PREFIX) && make && make install)
diff --git a/extras/contrib/src/Patches/x264.patch b/extras/contrib/src/Patches/x264.patch
new file mode 100644 (file)
index 0000000..7c9fcf9
--- /dev/null
@@ -0,0 +1,34 @@
+diff -ruN x264.orig/Makefile x264/Makefile
+--- x264.orig/Makefile Mon May 30 21:47:02 2005
++++ x264/Makefile      Fri Jun 10 00:43:31 2005
+@@ -40,7 +40,7 @@
+ OBJS = $(SRCS:%.c=%.o)
+ DEP  = depend
+-default: $(DEP) x264$(EXE)
++default: $(DEP) libx264.a
+ libx264.a: .depend $(OBJS) $(OBJASM)
+       ar rc libx264.a $(OBJS) $(OBJASM)
+@@ -61,7 +61,7 @@
+ .depend: config.mak config.h
+       rm -f .depend
+ # Hacky - because gcc 2.9x doesn't have -MT
+-      $(foreach SRC, $(SRCS) x264.c, ( echo -n "`dirname $(SRC)`/" && $(CC) $(CFLAGS) $(SRC) -MM -g0 ) 1>> .depend;)
++      $(foreach SRC, $(SRCS), ( echo -n "`dirname $(SRC)`/" && $(CC) $(CFLAGS) $(SRC) -MM -g0 ) 1>> .depend;)
+ config.h: $(wildcard .svn/entries */.svn/entries */*/.svn/entries)
+       ./version.sh
+@@ -78,11 +78,10 @@
+ distclean: clean
+       rm -f config.mak vfw/build/cygwin/config.mak
+-install: x264
++install: libx264.a
+       install -d $(DESTDIR)$(bindir) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)
+       install -m 644 x264.h $(DESTDIR)$(includedir)
+       install -m 644 libx264.a $(DESTDIR)$(libdir)
+-      install x264 $(DESTDIR)$(bindir)
+ etags: TAGS