[MacPorts] #36890: ffmpeg @1.0_1 +gpl2 Patch to allow successful build on PPC Tiger

MacPorts noreply at macports.org
Sun Nov 4 17:05:03 PST 2012


#36890: ffmpeg @1.0_1 +gpl2 Patch to allow successful build on PPC Tiger
----------------------------+--------------------------------
 Reporter:  ccarey@…        |      Owner:  macports-tickets@…
     Type:  defect          |     Status:  new
 Priority:  Normal          |  Milestone:
Component:  ports           |    Version:  2.1.2
 Keywords:  tiger haspatch  |       Port:  ffmpeg
----------------------------+--------------------------------
 The {{{ffmpeg @1.0_1 +gpl2}}} port does not successfully build on PPC
 Tiger because of

 {{{
 :debug:configure Executing command line:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/ffmpeg/work/ffmpeg-1.0"
 && ./configure --prefix=/opt/local --enable-swscale --enable-avfilter
 --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora
 --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug
 --enable-libvpx --enable-libspeex --disable-mmx --disable-mmx2 --disable-
 sse --disable-ssse3 --disable-amd3dnow --disable-amd3dnowext
 --mandir=/opt/local/share/man --enable-shared --enable-pthreads
 --cc=/usr/bin/gcc-4.0 --arch=ppc --enable-gpl --enable-postproc --enable-
 libx264 --enable-libxvid
 :info:configure Unknown option "--disable-mmx2".
 :info:configure See ./configure --help for available options.
 :info:configure Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/ffmpeg/work/ffmpeg-1.0"
 && ./configure --prefix=/opt/local --enable-swscale --enable-avfilter
 --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora
 --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug
 --enable-libvpx --enable-libspeex --disable-mmx --disable-mmx2 --disable-
 sse --disable-ssse3 --disable-amd3dnow --disable-amd3dnowext
 --mandir=/opt/local/share/man --enable-shared --enable-pthreads
 --cc=/usr/bin/gcc-4.0 --arch=ppc --enable-gpl --enable-postproc --enable-
 libx264 --enable-libxvid
 :info:configure Exit code: 1
 }}}

 The attached patch files fix the problem by

  1. Replacing each usage of the Portfile’s {{{--disable-mmx2}}} option
 with {{{--disable-mmxext}}}; and
  1. Appending {{{-lstdc++}}} to the “enabled libmodplug” line in the
 {{{configure}}} file.

 Additionally, because the {{{--enable-libschroedinger}}} option and
 {{{port:schroedinger}}} dependency are present in the Portfile, the
 {{{port:dirac}}} dependency can be removed. The {{{--enable-freetype}}}
 option and {{{port:freetype}}} dependency have been added to the Portfile
 to enable the building of {{{ffmpeg}}}’s drawtext filter. Altivec
 detection in the Portfile has also been enabled for PPC Macs with the
 {{{ppc7450}}} machine type; this section of the updated Portfile can be
 expanded to detect other PPC machines with Altivec support (such as G5
 models).

-- 
Ticket URL: <https://trac.macports.org/ticket/36890>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list