Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#36890 closed defect (duplicate)

ffmpeg @1.0_1 +gpl2 Patch to allow successful build on PPC Tiger

Reported by: ccarey@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: tiger haspatch Cc: dbevans (David B. Evans), jeremyhu (Jeremy Huddleston Sequoia)
Port: ffmpeg

Description

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
  2. 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).

Attachments (2)

Portfile.ffmpeg_1.0_1.diff (2.7 KB) - added by ccarey@… 12 years ago.
patch to the Portfile to allow ffmpeg @1.0_1 +gpl2 to build successfully on PPC Tiger
configure.ffmpeg_1.0_1.diff (857 bytes) - added by ccarey@… 12 years ago.
patch to configure to allow ffmpeg @1.0_1 +gpl2 to build successfully on PPC Tiger

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by ccarey@…

Attachment: Portfile.ffmpeg_1.0_1.diff added

patch to the Portfile to allow ffmpeg @1.0_1 +gpl2 to build successfully on PPC Tiger

Changed 12 years ago by ccarey@…

Attachment: configure.ffmpeg_1.0_1.diff added

patch to configure to allow ffmpeg @1.0_1 +gpl2 to build successfully on PPC Tiger

comment:1 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: duplicate
Status: newclosed

comment:2 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

r99425 adds --enable-freetype

Note: See TracTickets for help on using tickets.