Date: Wed, 19 Nov 2008 00:10:03 GMT From: Jochen Baier <email@Jochen-Baier.de> To: freebsd-multimedia@FreeBSD.org Subject: re: ports/124501: multimedia/gstreamer-ffmpeg version 0.10.4_1 compile fails (gnome-config, gstreamer-check, many config errors) Message-ID: <200811190010.mAJ0A3PS087485@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/124501; it has been noted by GNATS. From: Jochen Baier <email@Jochen-Baier.de> To: bug-followup@FreeBSD.org, rannumgen@globaleyes.net, email@jochen-baier.de Cc: Subject: re: ports/124501: multimedia/gstreamer-ffmpeg version 0.10.4_1 compile fails (gnome-config, gstreamer-check, many config errors) Date: Wed, 19 Nov 2008 00:52:23 +0100 This is a multi-part message in MIME format. --------------010308090507080305010405 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit hi, the configure script from gst-ffmpeg-0.10.4/gst-libs/ext/ffmpeg only accepts a few options, if an other option is passed the script will do weird things. For example if "-march=athlon64" if passed (from the configure file in gst-ffmpeg-0.10.4) the script will convert it to '_march=-march=athlon64' and set this to CFLAGS. If now the configure script starts the gcc check this test will file because gcc do not know this option. Fix: ignore all options which are not allowed. The "-march" option will anyway work cause it is set in CFLAGS correctly. patch attached. jochen --------------010308090507080305010405 Content-Type: text/x-patch; name="gstreamer-ffmpeg.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="gstreamer-ffmpeg.patch" +++ /usr/ports/multimedia/gstreamer-ffmpeg/files/patch-configure 2008-11-19 00:04:13.000000000 +0100 @@ -0,0 +1,32 @@ +--- gst-libs/ext/ffmpeg/configure 2008-05-22 01:05:32.000000000 +0200 ++++ gst-libs/ext/ffmpeg/configure 2008-11-18 23:57:52.000000000 +0100 +@@ -997,7 +997,7 @@ + $OUTDEV_LIST \ + + die_unknown(){ +- echo "Unknown option \"$1\"." ++ echo "Unknown option \"$@\"." + echo "See $0 --help for available options." + + } +@@ -1047,13 +1047,18 @@ + ;; + --help|-h) show_help + ;; ++ + *) +- optname="${opt%=*}" ++ optname="${opt%%=*}" + optname="${optname#--}" + optname=$(echo "$optname" | sed 's/-/_/g') +- is_in $optname $CMDLINE_SET || die_unknown $opt ++ if is_in $optname $CMDLINE_SET; then + eval $optname='$optval' ++ else ++ die_unknown $opt ++ fi + ;; ++ + esac + done + --------------010308090507080305010405--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811190010.mAJ0A3PS087485>