Ticket #17527: ffmpeg.diff

File ffmpeg.diff, 2.5 KB (added by takanori@…, 16 years ago)

Here is a patch to avoid this problem.

  • files/patch-configure.diff

     
    1 --- configure.orig      2008-08-04 15:43:25.000000000 -0700
    2 +++ configure   2008-08-04 15:44:07.000000000 -0700
    3 @@ -1234,7 +1234,7 @@
    4          ;;
    5      darwin)
    6          disable need_memalign
    7 -        SHFLAGS='-dynamiclib -Wl,-single_module -Wl,-install_name,$(SHLIBDIR)/$(SLIBNAME),-current_version,$(LIBVERSION),-compatibility_version,$(LIBMAJOR) -Wl,-read_only_relocs,suppress'
    8 +        SHFLAGS='-dynamiclib -Wl,-single_module -Wl,-install_name,$(SHLIBDIR)/$(SLIBNAME) -Wl,-read_only_relocs,suppress'
    9          VHOOKSHFLAGS='-dynamiclib -Wl,-single_module -flat_namespace -undefined suppress -Wl,-install_name,$(SHLIBDIR)/vhook/$$(@F)'
    10          strip="strip -x"
    11          FFLDFLAGS="-Wl,-dynamic,-search_paths_first"
     1--- ./configure.orig    2008-12-05 20:07:39.000000000 +0900
     2+++ ./configure 2008-12-05 22:44:48.000000000 +0900
     3@@ -975,7 +975,7 @@
     4 vhook="default"
     5 
     6 # build settings
     7-add_cflags -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112
     8+add_cflags -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_DARWIN_C_SOURCE
     9 SHFLAGS='-shared -Wl,-soname,$$(@F)'
     10 VHOOKSHFLAGS='$(SHFLAGS)'
     11 FFSERVERLDFLAGS=-Wl,-E
  • files/patch-libswscale-Makefile.diff

     
    1 --- libswscale/Makefile (revision 27347)
    2 +++ libswscale/Makefile (working copy)
    3 @@ -1,5 +1,7 @@
    4  include $(SUBDIR)../config.mak
    5  
    6 +EXTRALIBS := -L$(BUILD_ROOT)/libavutil -lavutil$(BUILDSUF) $(EXTRALIBS)
    7 +
    8  NAME = swscale
    9  FFLIBS = avutil
    10  
  • Portfile

     
    3434homepage        http://ffmpeg.mplayerhq.hu/
    3535master_sites
    3636distfiles
     37patchfiles      patch-configure.diff
    3738use_parallel_build  yes
    3839worksrcdir     trunk
    3940depends_build  bin:svn:subversion port:gmake
     
    155156}
    156157
    157158variant avfilter requires gpl description {video filter support (replaces vhook)} {
    158         patchfiles-append patch-libswscale-Makefile.diff \
    159                 patch-configure.diff
     159        patchfiles-append avfilter/patch-libswscale-Makefile.diff \
     160                avfilter/patch-configure.diff
    160161        configure.args-append --enable-swscale --enable-avfilter
    161162
    162163        # keep vhook as long as avfilter isnt working fully