openbsd-ports/graphics/ffmpeg/patches/patch-configure
jakemsr cfb61f73b5 update to CVS as of 3/12/06.
relevant portion of the official ChangeLog:

- Fraps FPS1 video decoder
- Snow video encoder/decoder
- Sonic audio encoder/decoder
- Vorbis audio decoder
- Macromedia ADPCM decoder
- Duck TrueMotion 2 video decoder
- support for decoding FLX and DTA extensions in FLIC files
- H.264 custom quantization matrices support
- ffserver fixed, it should now be usable again
- QDM2 audio decoder
- Real Cooker audio decoder
- TrueSpeech audio decoder
- WMA2 audio decoder fixed, now all files should play correctly
- RealAudio 14.4 and 28.8 decoders fixed
- JPEG-LS encoder and decoder
- CamStudio video decoder
- build system improvements
- tabs and trailing whitespace removed from the codebase
- AIFF/AIFF-C audio format, encoding and decoding
- ADTS AAC file reading and writing
- Creative VOC file reading and writing
- American Laser Games multimedia (*.mm) playback system
- Zip Blocks Motion Video decoder
- Improved Theora/VP3 decoder
- True Audio (TTA) decoder
- AVS demuxer and video decoder

also, bktr(4) support has been integrated upstream, and most of the
source patches in the port are no longer necessary.

OK brad@
2006-03-20 05:50:49 +00:00

95 lines
2.8 KiB
Plaintext

$OpenBSD: patch-configure,v 1.13 2006/03/20 05:50:49 jakemsr Exp $
--- configure.orig Tue Feb 28 00:11:44 2006
+++ configure Tue Feb 28 00:15:42 2006
@@ -243,7 +243,7 @@ LIBSUF=".a"
LIB='$(LIBPREF)$(NAME)$(LIBSUF)'
SLIBPREF="lib"
SLIBSUF=".so"
-SLIBNAME='$(SLIBPREF)$(NAME)$(SLIBSUF)'
+SLIBNAME='$(SLIBPREF)$(NAME)$(SLIBSUF).$(LIBVERSION)'
SLIBNAME_WITH_VERSION='$(SLIBPREF)$(NAME)$(SLIBSUF).$(LIBVERSION)'
SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(NAME)$(SLIBSUF).$(LIBMAJOR)'
EXESUF=""
@@ -324,10 +324,11 @@ bktr="yes"
audio_oss="yes"
dv1394="no"
make="gmake"
+SHFLAGS='-shared'
LIBOBJFLAGS="\$(PIC)"
-LDFLAGS="$LDFLAGS -export-dynamic -pthread"
+LDFLAGS="$LDFLAGS -export-dynamic"
LDCONFIG="ldconfig -m \$(libdir)"
-extralibs="$extralibs -lossaudio"
+extralibs=""
;;
FreeBSD)
v4l="no"
@@ -1015,10 +1016,12 @@ EOF
$cc -o $TMPE $TMPC 2> /dev/null || _memalign=no
fi
+if false ; then
if test "$_memalign" = "no" -a "$mmx" = "yes" -a "$memalignhack" != "yes"; then
echo "Error, no memalign() but SSE enabled, disable it or use --enable-memalign-hack."
exit 1
fi
+fi
cat > $TMPC << EOF
#include <time.h>
@@ -1046,7 +1049,8 @@ $cc $CFLAGS $LDFLAGS -o $TMPE $TMPC -lz
# XXX: more tests needed - runtime test
fi
if test "$zlib" = "yes"; then
-extralibs="$extralibs -lz"
+# extralibs="$extralibs -lz"
+ :
fi
if test "$lzo" = "yes" -a "$gpl" = "yes"; then
@@ -1074,7 +1078,7 @@ int main( void ) { return (lrintf(3.999f
EOF
have_lrintf="no"
-if $cc $CFLAGS $LDFLAGS $extralibs -o $TMPE $TMPC 2> /dev/null ; then
+if $cc $CFLAGS $LDFLAGS -lm -o $TMPE $TMPC 2> /dev/null ; then
have_lrintf="yes"
# allanc@chickenandporn.com: cannot execute cross-compiled
# code on the host. Only execute if not cross-compiling.
@@ -1963,7 +1967,7 @@ Description: FFmpeg utility library
Version: $lavu_version
Requires:
Conflicts:
-Libs: -L\${libdir} -lavutil
+Libs: -L\${libdir} -lavutil -lm
Cflags: -I\${includedir} -I\${includedir}/ffmpeg
EOF
@@ -1994,7 +1998,7 @@ Description: FFmpeg codec library
Version: $lavc_version
Requires: $pkg_requires libavutil = $lavu_version
Conflicts:
-Libs: -L\${libdir} -lavcodec $extralibs
+Libs: -L\${libdir} -lavcodec -lavutil -lm -lz -pthread
Cflags: -I\${includedir} -I\${includedir}/ffmpeg
EOF
@@ -2009,7 +2013,7 @@ Description: FFmpeg codec library
Version: $lavc_version
Requires: $pkg_requires libavutil = $lavu_version
Conflicts:
-Libs: \${libdir}/${LIBPREF}avcodec${LIBSUF} $extralibs
+Libs: \${libdir}/${LIBPREF}avcodec${LIBSUF} ${extralibs}
Cflags: -I\${includedir}
EOF
@@ -2025,7 +2029,7 @@ Description: FFmpeg container format lib
Version: $lavf_version
Requires: $pkg_requires libavcodec = $lavc_version
Conflicts:
-Libs: -L\${libdir} -lavformat $extralibs
+Libs: -L\${libdir} -lavformat -lavutil -lossaudio -lavcodec -lm -lz -pthread
Cflags: -I\${includedir} -I\${includedir}/ffmpeg
EOF