diff options
author | lioux <lioux@FreeBSD.org> | 2003-05-15 10:43:08 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2003-05-15 10:43:08 +0800 |
commit | 8d0bfef2877ae57ee057a73a015aaebd873d5314 (patch) | |
tree | 05f990b2732008e52e3e7e2a1fe35f6b8d3bb3be /multimedia | |
parent | ef4db60c8ad0b4fcfc9149b5274ca7fe6a3833ce (diff) | |
download | freebsd-ports-gnome-8d0bfef2877ae57ee057a73a015aaebd873d5314.tar.gz freebsd-ports-gnome-8d0bfef2877ae57ee057a73a015aaebd873d5314.tar.zst freebsd-ports-gnome-8d0bfef2877ae57ee057a73a015aaebd873d5314.zip |
Add WITH_LZO knob and correctly depend on lzo port if it is already
installed
PR: 51737
Submitted by: David Yeske <dyeske@yahoo.com>
Approved by: maintainer
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/mplayer/Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
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 |