1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

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)
This commit is contained in:
John Marino 2013-10-30 11:29:19 +00:00
parent 39d38dc020
commit 5108906a51
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=332095

View File

@ -27,7 +27,8 @@ CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
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 \