freebsd-ports/multimedia/mplayer2/files/patch-configure
Chris Rees e60f4e63a5 MPlayer2 is an advanced general-purpose video player.
A fork of the original MPlayer project, it contains significant further
development and supports a number of features not available
in other Unix players.

WWW: http://www.mplayer2.org/

PR:		ports/163438
Submitted by:	Grzegorz Blach <magik@roorback.net>
Feature safe:	yes
2012-10-24 16:32:17 +00:00

29 lines
1 KiB
Text

--- configure.orig 2012-05-12 01:08:28.473233004 -0500
+++ configure 2012-05-12 01:10:33.294799627 -0500
@@ -3111,7 +3111,7 @@ echocheck "pthread"
if linux ; then
THREAD_CFLAGS=-D_REENTRANT
elif freebsd || netbsd || openbsd || bsdos ; then
- THREAD_CFLAGS=-D_THREAD_SAFE
+ THREAD_CFLAGS=${PTHREAD_CFLAGS}
fi
if test "$_pthreads" = auto ; then
cat > $TMPC << EOF
@@ -3128,7 +3128,7 @@ int main(void) {
EOF
_pthreads=no
if ! hpux ; then
- for _ld_tmp in "-lpthreadGC2" "" "-lpthread" "-pthread" ; do
+ for _ld_tmp in ${PTHREAD_LIBS} ; do
# for crosscompilation, we cannot execute the program, be happy if we can link statically
cc_check $THREAD_CFLAGS $_ld_tmp && (tmp_run || test "$_ld_static") && _ld_pthread="$_ld_tmp" && _pthreads=yes && break
done
@@ -6340,7 +6340,7 @@ TIMER = $_timer
EXESUF = $_exesuf
EXESUFS_ALL = .exe
-ARCH = $arch
+MPLAYER_ARCH = $arch
$(mak_enable "$arch_all" "$arch" ARCH)
$(mak_enable "$subarch_all" "$subarch" ARCH)
$(mak_enable "$cpuexts_all" "$cpuexts" HAVE)