summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-15 21:31:15 +0200
committerwm4 <wm4@nowhere>2013-07-15 21:31:15 +0200
commit0a6654ce2f36ca87810f400f9b2a1db6ea2481a3 (patch)
tree1f8b03e4ebee7797fc715159d041c44487a5aab7
parent2599729e968b532c7241896920fc5b1df2babe62 (diff)
downloadmpv-0a6654ce2f36ca87810f400f9b2a1db6ea2481a3.tar.bz2
mpv-0a6654ce2f36ca87810f400f9b2a1db6ea2481a3.tar.xz
configure: add /usr/local on FreeBSD, also NetBSD/DragonFly
In my opinion this should be unneeded and unclean, which is why I removed it some time ago. But apparently this is a convenience for BSD users (so they don't have to use --extra-cflags), so add it back.
-rwxr-xr-xconfigure10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure b/configure
index d9d48f6b1e..825a6ae0c3 100755
--- a/configure
+++ b/configure
@@ -860,6 +860,16 @@ extra_cflags="-I. -D_GNU_SOURCE $extra_cflags"
_timer=timer-linux.c
_getch=getch2.c
+if freebsd ; then
+ extra_ldflags="$extra_ldflags -L/usr/local/lib"
+ extra_cflags="$extra_cflags -I/usr/local/include"
+fi
+
+if netbsd || dragonfly ; then
+ extra_ldflags="$extra_ldflags -L/usr/pkg/lib"
+ extra_cflags="$extra_cflags -I/usr/pkg/include"
+fi
+
if darwin; then
extra_cflags="-mdynamic-no-pic $extra_cflags"
_timer=timer-darwin.c