From 8d0bfef2877ae57ee057a73a015aaebd873d5314 Mon Sep 17 00:00:00 2001 From: lioux Date: Thu, 15 May 2003 02:43:08 +0000 Subject: Add WITH_LZO knob and correctly depend on lzo port if it is already installed PR: 51737 Submitted by: David Yeske Approved by: maintainer --- multimedia/mplayer/Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'multimedia') diff --git a/multimedia/mplayer/Makefile b/multimedia/mplayer/Makefile index f22fbf382ce3..c922a01c679c 100644 --- a/multimedia/mplayer/Makefile +++ b/multimedia/mplayer/Makefile @@ -134,6 +134,9 @@ # WITH_FAAD # default: autodetect # +# WITH_LZO +# default: autodetect +# # WITHOUT_WIN32_CODECS # default: undefined # By default, mplayer depends on and uses the win32-codecs collection. @@ -277,6 +280,10 @@ WITH_XVID= yes WITH_FAAD= yes .endif +.if exists(${LOCALBASE}/lib/liblzo.so) +WITH_LZO= yes +.endif + .if defined(WITH_OPTIMIZED_CFLAGS) CFLAGS+= -O3 -ffast-math -fomit-frame-pointer .endif @@ -397,6 +404,12 @@ CONFIGURE_ARGS+= --enable-xvid \ LIB_DEPENDS+= xvidcore.0:${PORTSDIR}/multimedia/xvid .endif +.if defined(WITH_LZO) +LIB_DEPENDS+= lzo.1:${PORTSDIR}/archivers/lzo +.else +CONFIGURE_ARGS+= --disable-liblzo +.endif + .if defined(WITH_FAAD) CONFIGURE_ARGS+= --enable-faad LIB_DEPENDS+= faad.0:${PORTSDIR}/audio/faad -- cgit