Patch to allow building ffmeg on haiku, taken from a patch by kaliber for tiltos. Not that this disables beos code since it's currently broken.

This commit is contained in:
Scott McCreary
2009-02-20 05:36:36 +00:00
parent 338ecd1f49
commit 0494cf64f8

View File

@@ -0,0 +1,31 @@
Index: configure
===================================================================
--- configure (revision 17469)
+++ configure (working copy)
@@ -1461,16 +1461,21 @@
esac
SHFLAGS=-nostart
# enable BeOS things
- enable audio_beos
+ # enable audio_beos
# no need for libm, but the inet stuff
# Check for BONE
# XXX: actually should check for NOT net_server
- if echo $BEINCLUDES | grep -q 'headers/be/bone'; then
- network_extralibs="-lbind -lsocket"
+ if [ $target_os = "haiku" ]; then
+ network_extralibs="-lnetwork"
else
- enable beos_netserver
- network_extralibs="-lnet"
+ if echo $BEINCLUDES | grep -q 'headers/be/bone'; then
+ network_extralibs="-lbind -lsocket"
+ else
+ enable beos_netserver
+ network_extralibs="-lnet"
+ fi
fi ;;
+
sunos)
FFSERVERLDFLAGS=""
SHFLAGS='-shared -Wl,-h,$$(@F)'