]> git.sesse.net Git - vlc/blob - extras/contrib/src/Patches/x264-svn-win32.patch
Contribs: x264, fix the new configure of x264.
[vlc] / extras / contrib / src / Patches / x264-svn-win32.patch
1 Index: configure
2 ===================================================================
3 --- configure   (revision 672)
4 +++ configure   (working copy)
5 @@ -428,6 +428,10 @@
6  ASFLAGS=$ASFLAGS
7  GTK=$gtk
8  EXE=$EXE
9 +AR=$AR
10 +STRIP=$STRIP
11 +AROPTS=$AROPTS
12 +RANLIB=$RANLIB
13  VIS=$vis
14  HAVE_GETOPT_LONG=$HAVE_GETOPT_LONG
15  DEVNULL=$DEVNULL
16 Index: Makefile
17 ===================================================================
18 --- Makefile    (revision 672)
19 +++ Makefile    (working copy)
20 @@ -73,8 +73,8 @@
21  default: $(DEP) x264$(EXE)
22  
23  libx264.a: .depend $(OBJS) $(OBJASM)
24 -       ar rc libx264.a $(OBJS) $(OBJASM)
25 -       ranlib libx264.a
26 +       $(AR) rc libx264.a $(OBJS) $(OBJASM)
27 +       $(RANLIB) libx264.a
28  
29  $(SONAME): .depend $(OBJS) $(OBJASM)
30         $(CC) -shared -o $@ $(OBJS) $(OBJASM) -Wl,-soname,$(SONAME) $(LDFLAGS)
31 @@ -93,7 +93,7 @@
32  %.o: %.asm
33         $(AS) $(ASFLAGS) -o $@ $<
34  # delete local/anonymous symbols, so they don't show up in oprofile
35 -       -@ strip -x $@
36 +       -@ $(STRIP) -x $@
37  
38  .depend: config.mak
39         rm -f .depend
40 @@ -146,14 +146,14 @@
41         rm -rf test/
42         $(MAKE) -C gtk distclean
43  
44 -install: x264 $(SONAME)
45 +install: x264$(EXE)
46         install -d $(DESTDIR)$(bindir) $(DESTDIR)$(includedir)
47         install -d $(DESTDIR)$(libdir) $(DESTDIR)$(libdir)/pkgconfig
48         install -m 644 x264.h $(DESTDIR)$(includedir)
49         install -m 644 libx264.a $(DESTDIR)$(libdir)
50         install -m 644 x264.pc $(DESTDIR)$(libdir)/pkgconfig
51 -       install x264 $(DESTDIR)$(bindir)
52 -       ranlib $(DESTDIR)$(libdir)/libx264.a
53 +       install x264$(EXE) $(DESTDIR)$(bindir)
54 +       $(RANLIB) $(DESTDIR)$(libdir)/libx264.a
55         $(if $(SONAME), ln -sf $(SONAME) $(DESTDIR)$(libdir)/libx264.so)
56         $(if $(SONAME), install -m 755 $(SONAME) $(DESTDIR)$(libdir))
57