diff options
Diffstat (limited to 'graphics/mplayer')
-rw-r--r-- | graphics/mplayer/Makefile | 4 | ||||
-rw-r--r-- | graphics/mplayer/Makefile.common | 15 |
2 files changed, 15 insertions, 4 deletions
diff --git a/graphics/mplayer/Makefile b/graphics/mplayer/Makefile index fcd98caaa00..3fa0b460e52 100644 --- a/graphics/mplayer/Makefile +++ b/graphics/mplayer/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.23 2002/04/30 15:10:00 veego Exp $ +# $NetBSD: Makefile,v 1.24 2002/05/03 18:00:50 fredb Exp $ .include "Makefile.common" @@ -18,10 +18,8 @@ do-install: .include "../../audio/lame/buildlink.mk" .include "../../devel/SDL/buildlink.mk" -.include "../../devel/binutils/buildlink.mk" .include "../../graphics/jpeg/buildlink.mk" .include "../../graphics/png/buildlink.mk" -.include "../../lang/gcc/Makefile.gcc" .include "../../misc/libdvdread/buildlink.mk" .include "../../mk/ossaudio.buildlink.mk" .include "../../mk/pthread.buildlink.mk" diff --git a/graphics/mplayer/Makefile.common b/graphics/mplayer/Makefile.common index a6faa6368b8..e6ef6977471 100644 --- a/graphics/mplayer/Makefile.common +++ b/graphics/mplayer/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.7 2002/05/03 14:52:04 wiz Exp $ +# $NetBSD: Makefile.common,v 1.8 2002/05/03 18:00:50 fredb Exp $ MPLAYER_DIST_VERSION= 0.90pre2 MPLAYER_PKG_VERSION= ${MPLAYER_DIST_VERSION:S/pre/rc/} @@ -37,3 +37,16 @@ CONFIGURE_ARGS+= --disable-mpdvdkit # but that directory may be mounted as noexec; work this around by setting # TMPDIR to ${WRKDIR} CONFIGURE_ENV+= TMPDIR=${WRKDIR} + +.include "../../mk/bsd.prefs.mk" + +# The package needs GNU "as" 2.11 or newer to build. +# +AS_VERSION!= ${AS} --version | ${AWK} 'NR==1 {print $$3}' +.if ${AS_VERSION:M2.1[1-9]*} == "" +CONFIGURE_ARGS+= --as="${LOCALBASE}/${MACHINE_GNU_PLATFORM}/bin/as" +CONFIGURE_ENV+= GCC_EXEC_PREFIX="${LOCALBASE}/${MACHINE_GNU_PLATFORM}/bin/" +MAKE_ENV+= GCC_EXEC_PREFIX="${LOCALBASE}/${MACHINE_GNU_PLATFORM}/bin/" +.include "../../devel/binutils/buildlink.mk" +.include "../../lang/gcc/Makefile.gcc" +.endif |