Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Oct 2013 11:29:20 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r332095 - head/multimedia/mplayer2
Message-ID:  <201310301129.r9UBTKgA042992@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Wed Oct 30 11:29:19 2013
New Revision: 332095
URL: http://svnweb.freebsd.org/changeset/ports/332095

Log:
  multimedia/mplayer2: fix configure failure, indirect linking
  
  As seen when using gcc48 as the ports compiler (and on DragonFly),
  mplayer2 was misconfigured.  The avresample library doesn't exist
  during configuration, thus it will fail when using a modern
  linker that complains that the library isn't found.
  
  Moving -lavresample from extra-ldflags to extra-libs fixes the
  problem on both FreeBSD+gcc48 and DragonFly
  
  Approved by:	portmgr (bapt, implicit)

Modified:
  head/multimedia/mplayer2/Makefile

Modified: head/multimedia/mplayer2/Makefile
==============================================================================
--- head/multimedia/mplayer2/Makefile	Wed Oct 30 11:28:20 2013	(r332094)
+++ head/multimedia/mplayer2/Makefile	Wed Oct 30 11:29:19 2013	(r332095)
@@ -27,7 +27,8 @@ CONFIGURE_ENV=	PTHREAD_CFLAGS="${PTHREAD
 		TMPDIR="${WRKSRC}"
 CONFIGURE_ARGS=	--cc=${CC} \
 		--extra-cflags='-I${LOCALBASE}/include/portaudio2' \
-		--extra-ldflags='-lavresample -L${LOCALBASE}/lib/portaudio2' \
+		--extra-libs='-lavresample' \
+		--extra-ldflags='-L${LOCALBASE}/lib/portaudio2' \
 		--mandir=${PREFIX}/man \
 		--enable-libavresample \
 		--disable-alsa \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310301129.r9UBTKgA042992>