]> git.pld-linux.org Git - packages/ffmpeg.git/commitdiff
- DESTDIR fixes
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 5 Dec 2006 12:02:00 +0000 (12:02 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ffmpeg-libtool.patch -> 1.16

ffmpeg-libtool.patch

index 7ff1d9c7112c8f661f373fc9b30e1cf824d82c98..9cc6cd83a9a6f910647e3896a9919d5d6c71d313 100644 (file)
@@ -1,5 +1,5 @@
---- ffmpeg-export-2006-12-04/Makefile  2006-11-20 23:46:43.000000000 +0200
-+++ ffmpeg-export-2006-12-04.libtool2/Makefile 2006-12-05 13:08:44.141688603 +0200
+--- ffmpeg-export-2006-12-04.libtool2/Makefile 2006-12-05 13:08:44.141688603 +0200
++++ ffmpeg-export-2006-12-04/Makefile  2006-12-05 13:56:42.000000000 +0200
 @@ -13,7 +13,6 @@
  
  ifeq ($(CONFIG_FFMPEG),yes)
 -      $(CC) $(LDFLAGS) -o $@ ffplay.o cmdutils.o $(EXTRALIBS) $(SDL_LIBS)
 +libavformat/libavformat.la:
 +      $(MAKE) -C libavformat all
-+
-+libavcodec/libavcodec.la:
-+      $(MAKE) -C libavcodec  all
  
 -%$(EXESUF): %_g$(EXESUF)
 -      cp -p $< $@
 -      $(STRIP) $@
++libavcodec/libavcodec.la:
++      $(MAKE) -C libavcodec  all
++
 +ffplay$(EXESUF): ffplay.lo cmdutils.lo
 +      libtool --mode=link --tag=CC $(CC) $(LDFLAGS) -o $@ $^ $(EXTRALIBS) $(SDL_LIBS)
  
        $(MAKE) -C vhook all
  
  documentation:
+@@ -118,16 +115,16 @@
+ else
+ install-progs: $(PROGS)
+ endif
+-      install -d "$(bindir)"
+-      install -c $(INSTALLSTRIP) -m 755 $(PROGS) "$(bindir)"
++      install -d "$(DESTDIR)$(bindir)"
++      install -c $(INSTALLSTRIP) -m 755 $(PROGS) "$(DESTDIR)$(bindir)"
+ # create the window installer
+ wininstaller: all install
+       makensis ffinstall.nsi
+ install-man:
+-      install -d "$(mandir)/man1"
+-      install -m 644 $(MANPAGES) "$(mandir)/man1"
++      install -d "$(DESTDIR)$(mandir)/man1"
++      install -m 644 $(MANPAGES) "$(DESTDIR)$(mandir)/man1"
+ install-vhook:
+       $(MAKE) -C vhook install
+@@ -159,10 +156,10 @@
+ uninstall: uninstall-progs uninstall-libs uninstall-headers uninstall-man uninstall-vhook
+ uninstall-progs:
+-      rm -f $(addprefix $(bindir)/, $(ALLPROGS))
++      rm -f $(addprefix $(DESTDIR)$(bindir)/, $(ALLPROGS))
+ uninstall-man:
+-      rm -f $(addprefix $(mandir)/man1/,$(ALLMANPAGES))
++      rm -f $(addprefix $(DESTDIR)$(mandir)/man1/,$(ALLMANPAGES))
+ uninstall-vhook:
+       $(MAKE) -C vhook uninstall
 @@ -198,10 +195,6 @@
  .depend: $(SRCS) version.h
        $(CC) -MM $(CFLAGS) $(SDL_CFLAGS) $(filter-out %.h,$^) 1>.depend
           output_example$(EXESUF) qt-faststart$(EXESUF) cws2fws$(EXESUF)
  
  distclean: clean
---- ffmpeg-export-2006-12-04/common.mak        2006-11-25 17:44:55.000000000 +0200
-+++ ffmpeg-export-2006-12-04.libtool2/common.mak       2006-12-05 13:08:44.141688603 +0200
+--- ffmpeg-export-2006-12-04.libtool2/common.mak       2006-12-05 13:08:44.141688603 +0200
++++ ffmpeg-export-2006-12-04/common.mak        2006-12-05 13:40:21.000000000 +0200
 @@ -8,37 +8,30 @@
  CFLAGS += -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
            -D_ISOC9X_SOURCE -I$(BUILD_ROOT) -I$(SRC_PATH) \
  
  depend dep: $(SRCS)
        $(CC) -MM $(CFLAGS) $^ 1>.depend
-@@ -62,13 +55,8 @@
- install-libs: $(INSTLIBTARGETS)
+@@ -50,36 +43,17 @@
+ distclean: clean
+       rm -f .depend
+-ifeq ($(BUILD_SHARED),yes)
+-INSTLIBTARGETS += install-lib-shared
+-endif
+-ifeq ($(BUILD_STATIC),yes)
+-INSTLIBTARGETS += install-lib-static
+-endif
+-
+ install: install-libs install-headers
  
- install-lib-shared: $(SLIBNAME)
+-install-libs: $(INSTLIBTARGETS)
+-
+-install-lib-shared: $(SLIBNAME)
 -      install -d "$(shlibdir)"
 -      install $(INSTALLSTRIP) -m 755 $(SLIBNAME) \
 -              "$(shlibdir)/$(SLIBNAME_WITH_VERSION)"
 -              ln -sf $(SLIBNAME_WITH_VERSION) $(SLIBNAME_WITH_MAJOR)
 -      cd "$(shlibdir)" && \
 -              ln -sf $(SLIBNAME_WITH_VERSION) $(SLIBNAME)
+-
+-install-lib-static: $(LIB)
+-      install -d "$(libdir)"
+-      install -m 644 $(LIB) "$(libdir)"
+-      $(LIB_INSTALL_EXTRA_CMD)
++install-libs: $(SLIBNAME) $(LIB)
 +      install -d $(DESTDIR)$(libdir)
 +      libtool --mode=install install $(INSTALLSTRIP) $(LIB) $(DESTDIR)$(libdir)
  
- install-lib-static: $(LIB)
-       install -d "$(libdir)"
-@@ -76,10 +64,10 @@
-       $(LIB_INSTALL_EXTRA_CMD)
  install-headers:
 -      install -d "$(incdir)"
 -      install -d "$(libdir)/pkgconfig"
  
  uninstall: uninstall-libs uninstall-headers
  
---- ffmpeg-export-2006-12-04/configure 2006-11-29 01:55:24.000000000 +0200
-+++ ffmpeg-export-2006-12-04.libtool2/configure        2006-12-05 13:08:44.141688603 +0200
+--- ffmpeg-export-2006-12-04.libtool2/configure        2006-12-05 13:08:44.141688603 +0200
++++ ffmpeg-export-2006-12-04/configure 2006-12-05 13:46:14.000000000 +0200
 @@ -608,10 +608,10 @@
  LDCONFIG="ldconfig"
  LIBPREF="lib"
  SLIBNAME_WITH_VERSION='$(SLIBNAME).$(LIBVERSION)'
  SLIBNAME_WITH_MAJOR='$(SLIBNAME).$(LIBMAJOR)'
  EXESUF=""
+@@ -1776,12 +1776,12 @@
+ echo "#define FFMPEG_CONFIGURATION "'"'"$FFMPEG_CONFIGURATION"'"' >> $TMPH
+ echo "PREFIX=$PREFIX" >> config.mak
+-echo "prefix=\$(DESTDIR)\${PREFIX}" >> config.mak
+-echo "libdir=\$(DESTDIR)$libdir" >> config.mak
+-echo "shlibdir=\$(DESTDIR)$shlibdir" >> config.mak
+-echo "incdir=\$(DESTDIR)$incdir" >> config.mak
+-echo "bindir=\$(DESTDIR)$bindir" >> config.mak
+-echo "mandir=\$(DESTDIR)$mandir" >> config.mak
++echo "prefix=\${PREFIX}" >> config.mak
++echo "libdir=$libdir" >> config.mak
++echo "shlibdir=$shlibdir" >> config.mak
++echo "incdir=$incdir" >> config.mak
++echo "bindir=$bindir" >> config.mak
++echo "mandir=$mandir" >> config.mak
+ echo "MAKE=$make" >> config.mak
+ echo "CC=$cc" >> config.mak
+ echo "AR=$ar" >> config.mak
 --- ffmpeg-export-2006-12-04/libavcodec/Makefile       2006-11-22 11:20:16.000000000 +0200
 +++ ffmpeg-export-2006-12-04.libtool2/libavcodec/Makefile      2006-12-05 13:08:44.141688603 +0200
 @@ -6,404 +6,403 @@
This page took 0.218046 seconds and 4 git commands to generate.