2011-03-29 16:01:43 -04:00
|
|
|
$OpenBSD: patch-configure,v 1.25 2011/03/29 20:01:43 edd Exp $
|
|
|
|
--- configure.orig Sun Mar 6 15:03:48 2011
|
|
|
|
+++ configure Mon Mar 7 00:29:31 2011
|
|
|
|
@@ -1066,6 +1066,7 @@ HAVE_LIST="
|
2010-05-26 17:38:52 -04:00
|
|
|
setmode
|
2010-04-25 21:57:13 -04:00
|
|
|
socklen_t
|
2010-05-26 17:38:52 -04:00
|
|
|
soundcard_h
|
2010-04-25 21:57:13 -04:00
|
|
|
+ sndio_h
|
|
|
|
poll_h
|
2010-05-26 17:38:52 -04:00
|
|
|
setrlimit
|
|
|
|
strerror_r
|
2011-03-29 16:01:43 -04:00
|
|
|
@@ -1405,6 +1406,8 @@ jack_indev_deps="jack_jack_h"
|
2010-05-26 17:38:52 -04:00
|
|
|
libdc1394_indev_deps="libdc1394"
|
|
|
|
oss_indev_deps_any="soundcard_h sys_soundcard_h"
|
|
|
|
oss_outdev_deps_any="soundcard_h sys_soundcard_h"
|
|
|
|
+sndio_indev_deps="sndio_h"
|
|
|
|
+sndio_outdev_deps="sndio_h"
|
|
|
|
v4l_indev_deps="linux_videodev_h"
|
|
|
|
v4l2_indev_deps_any="linux_videodev2_h sys_videoio_h"
|
2011-03-29 16:01:43 -04:00
|
|
|
vfwcap_indev_deps="capCreateCaptureWindow vfwcap_defines"
|
|
|
|
@@ -1589,6 +1592,10 @@ cpu="generic"
|
2010-05-26 17:38:52 -04:00
|
|
|
target_os_default=$(tolower $(uname -s))
|
|
|
|
host_os=$target_os_default
|
|
|
|
|
|
|
|
+if test "$target_os_default" = "openbsd"; then
|
|
|
|
+ arch_default=$(arch -s)
|
2008-09-04 21:10:21 -04:00
|
|
|
+fi
|
|
|
|
+
|
2010-05-26 17:38:52 -04:00
|
|
|
# configurable options
|
|
|
|
enable avcodec
|
|
|
|
enable avdevice
|
2011-03-29 16:01:43 -04:00
|
|
|
@@ -2335,6 +2342,7 @@ case $target_os in
|
2010-09-03 12:39:13 -04:00
|
|
|
enable pic
|
2011-03-29 16:01:43 -04:00
|
|
|
disable symver
|
2010-09-03 12:39:13 -04:00
|
|
|
SHFLAGS='-shared'
|
|
|
|
+ SLIBNAME_WITH_MAJOR='$(SLIBNAME).$(LIBVERSION)'
|
|
|
|
oss_indev_extralibs="-lossaudio"
|
|
|
|
oss_outdev_extralibs="-lossaudio"
|
|
|
|
;;
|
2011-03-29 16:01:43 -04:00
|
|
|
@@ -2822,7 +2830,7 @@ enabled libdirac && add_cflags $(pkg-config --cflags
|
|
|
|
require libdirac libdirac_decoder/dirac_parser.h dirac_decoder_init $(pkg-config --libs dirac) &&
|
2010-05-26 17:38:52 -04:00
|
|
|
require libdirac libdirac_encoder/dirac_encoder.h dirac_encoder_init $(pkg-config --libs dirac)
|
|
|
|
enabled libfaac && require2 libfaac "stdint.h faac.h" faacEncGetVersion -lfaac
|
|
|
|
-enabled libgsm && require libgsm gsm/gsm.h gsm_create -lgsm
|
|
|
|
+enabled libgsm && require libgsm gsm.h gsm_create -lgsm
|
2011-03-29 16:01:43 -04:00
|
|
|
enabled libmp3lame && require "libmp3lame >= 3.98.3" lame/lame.h lame_set_VBR_quality -lmp3lame
|
2010-05-26 17:38:52 -04:00
|
|
|
enabled libnut && require libnut libnut.h nut_demuxer_init -lnut
|
2011-03-29 16:01:43 -04:00
|
|
|
enabled libopencore_amrnb && require libopencore_amrnb opencore-amrnb/interf_dec.h Decoder_Interface_init -lopencore-amrnb
|
|
|
|
@@ -2890,11 +2898,14 @@ check_header dev/ic/bt8xx.h
|
2010-05-26 17:38:52 -04:00
|
|
|
|
|
|
|
check_header sys/soundcard.h
|
|
|
|
check_header soundcard.h
|
|
|
|
+check_header sndio.h
|
2008-09-08 19:28:28 -04:00
|
|
|
|
2010-05-26 17:38:52 -04:00
|
|
|
enabled_any alsa_indev alsa_outdev && check_lib2 alsa/asoundlib.h snd_pcm_htimestamp -lasound
|
2010-04-25 21:57:13 -04:00
|
|
|
|
2010-05-26 17:38:52 -04:00
|
|
|
enabled jack_indev && check_lib2 jack/jack.h jack_client_open -ljack
|
2010-04-25 21:57:13 -04:00
|
|
|
|
2010-05-26 17:38:52 -04:00
|
|
|
+enabled_any sndio_indev sndio_outdev && check_lib2 sndio.h sio_open -lsndio
|
|
|
|
+
|
2010-04-25 21:57:13 -04:00
|
|
|
enabled x11grab &&
|
2010-05-26 17:38:52 -04:00
|
|
|
check_header X11/Xlib.h &&
|
|
|
|
check_header X11/extensions/XShm.h &&
|
2011-03-29 16:01:43 -04:00
|
|
|
@@ -2930,9 +2941,6 @@ enabled extra_warnings && check_cflags -Winline
|
2010-05-26 17:38:52 -04:00
|
|
|
|
2008-01-25 20:56:02 -05:00
|
|
|
# add some linker flags
|
|
|
|
check_ldflags -Wl,--warn-common
|
2010-05-26 17:38:52 -04:00
|
|
|
-check_ldflags -Wl,--as-needed
|
|
|
|
-check_ldflags '-Wl,-rpath-link,\$(BUILD_ROOT)/libpostproc -Wl,-rpath-link,\$(BUILD_ROOT)/libswscale -Wl,-rpath-link,\$(BUILD_ROOT)/libavfilter -Wl,-rpath-link,\$(BUILD_ROOT)/libavdevice -Wl,-rpath-link,\$(BUILD_ROOT)/libavformat -Wl,-rpath-link,\$(BUILD_ROOT)/libavcodec -Wl,-rpath-link,\$(BUILD_ROOT)/libavutil'
|
2011-03-29 16:01:43 -04:00
|
|
|
-test_ldflags -Wl,-Bsymbolic && append SHFLAGS -Wl,-Bsymbolic
|
2008-01-25 20:56:02 -05:00
|
|
|
|
2010-05-26 17:38:52 -04:00
|
|
|
echo "X{};" > $TMPV
|
2011-03-29 16:01:43 -04:00
|
|
|
if test_ldflags -Wl,--version-script,$TMPV; then
|
|
|
|
@@ -3368,8 +3376,7 @@ Version: $version
|
2010-05-26 17:38:52 -04:00
|
|
|
Requires: $(enabled shared || echo $requires)
|
2008-07-08 21:57:44 -04:00
|
|
|
Requires.private: $(enabled shared && echo $requires)
|
|
|
|
Conflicts:
|
2010-05-26 17:38:52 -04:00
|
|
|
-Libs: -L\${libdir} -l${shortname} $(enabled shared || echo $libs)
|
2008-07-08 21:57:44 -04:00
|
|
|
-Libs.private: $(enabled shared && echo $libs)
|
|
|
|
+Libs: -L\${libdir} -l${shortname} $libs
|
|
|
|
Cflags: -I\${includedir}
|
|
|
|
EOF
|
|
|
|
cat <<EOF > $name/$name-uninstalled.pc
|
2011-03-29 16:01:43 -04:00
|
|
|
@@ -3388,10 +3395,10 @@ Cflags: -I\${includedir}
|
2007-10-19 10:32:57 -04:00
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
2008-07-08 21:57:44 -04:00
|
|
|
-pkgconfig_generate libavutil "FFmpeg utility library" "$LIBAVUTIL_VERSION"
|
2011-03-29 16:01:43 -04:00
|
|
|
-pkgconfig_generate libavcodec "FFmpeg codec library" "$LIBAVCODEC_VERSION" "$extralibs"
|
2010-05-26 17:38:52 -04:00
|
|
|
-pkgconfig_generate libavformat "FFmpeg container format library" "$LIBAVFORMAT_VERSION" "$extralibs" "libavcodec = $LIBAVCODEC_VERSION"
|
|
|
|
-pkgconfig_generate libavdevice "FFmpeg device handling library" "$LIBAVDEVICE_VERSION" "$extralibs" "libavformat = $LIBAVFORMAT_VERSION"
|
2011-03-29 16:01:43 -04:00
|
|
|
-pkgconfig_generate libavfilter "FFmpeg video filtering library" "$LIBAVFILTER_VERSION" "$extralibs"
|
|
|
|
-pkgconfig_generate libpostproc "FFmpeg post processing library" "$LIBPOSTPROC_VERSION"
|
2010-05-26 17:38:52 -04:00
|
|
|
-pkgconfig_generate libswscale "FFmpeg image rescaling library" "$LIBSWSCALE_VERSION" "" "libavutil = $LIBAVUTIL_VERSION"
|
2011-03-29 16:01:43 -04:00
|
|
|
+pkgconfig_generate libavutil "FFmpeg utility library" "$LIBAVUTIL_VERSION" "$LIBavutil_EXTRALIBS"
|
|
|
|
+pkgconfig_generate libavcodec "FFmpeg codec library" "$LIBAVCODEC_VERSION" "$LIBavcodec_EXTRALIBS"
|
|
|
|
+pkgconfig_generate libavformat "FFmpeg container format library" "$LIBAVFORMAT_VERSION" "$LIBavformat_EXTRALIBS" "libavcodec = $LIBAVCODEC_VERSION"
|
|
|
|
+pkgconfig_generate libavdevice "FFmpeg device handling library" "$LIBAVDEVICE_VERSION" "$LIBavdevice_EXTRALIBS" "libavformat = $LIBAVFORMAT_VERSION"
|
|
|
|
+pkgconfig_generate libavfilter "FFmpeg video filtering library" "$LIBAVFILTER_VERSION" "$LIBavfilter_EXTRALIBS"
|
|
|
|
+pkgconfig_generate libpostproc "FFmpeg post processing library" "$LIBPOSTPROC_VERSION" "$LIBpostproc_EXTRALIBS"
|
|
|
|
+pkgconfig_generate libswscale "FFmpeg image rescaling library" "$LIBSWSCALE_VERSION" "$LIBswscale_EXTRALIBS" "libavutil = $LIBAVUTIL_VERSION"
|