2001-08-04 15:01:02 +02:00
|
|
|
# New ports collection makefile for: vlc
|
|
|
|
# Date created: 3rd August 2001
|
2002-03-13 12:31:08 +01:00
|
|
|
# Whom: Brian Somers <brian@FreeBSD.org>
|
2001-08-04 15:01:02 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2006-10-14 10:54:54 +02:00
|
|
|
# $MCom: ports/multimedia/vlc/Makefile,v 1.4 2006/10/01 16:05:06 ahze Exp $
|
2001-08-04 15:01:02 +02:00
|
|
|
#
|
2006-05-08 00:16:41 +02:00
|
|
|
# *** PLEASE READ Makefile.inc for more information on knobs ***
|
2004-10-15 00:12:32 +02:00
|
|
|
#
|
2001-08-04 15:01:02 +02:00
|
|
|
|
|
|
|
PORTNAME= vlc
|
2006-05-08 00:16:41 +02:00
|
|
|
DISTVERSION= 0.8.5
|
2007-03-17 23:40:22 +01:00
|
|
|
PORTREVISION= 11
|
2004-11-16 22:59:37 +01:00
|
|
|
CATEGORIES= multimedia audio ipv6 net www
|
2006-05-08 00:16:41 +02:00
|
|
|
MASTER_SITES= http://download.videolan.org/pub/videolan/vlc/${PORTVERSION}/ \
|
2005-11-27 21:42:55 +01:00
|
|
|
http://ftp.snt.utwente.nl/pub/software/videolan/vlc/${PORTVERSION}/ \
|
|
|
|
ftp://ftp.crans.org/pub/videolan/vlc/${PORTVERSION}/ \
|
|
|
|
ftp://videolan.cs.pu.edu.tw/Windows/VideoLAN/vlc/${PORTVERSION}/ \
|
2001-08-04 15:01:02 +02:00
|
|
|
|
2006-06-09 20:00:35 +02:00
|
|
|
MAINTAINER= multimedia@FreeBSD.org
|
2004-10-14 06:06:58 +02:00
|
|
|
COMMENT= Multimedia streaming server and player for various audio/video formats
|
2001-08-04 15:01:02 +02:00
|
|
|
|
2005-11-29 18:42:36 +01:00
|
|
|
RUN_DEPENDS= ${X11BASE}/lib/X11/fonts/bitstream-vera/Vera.ttf:${PORTSDIR}/x11-fonts/bitstream-vera
|
2004-11-27 07:43:41 +01:00
|
|
|
|
2006-05-08 00:16:41 +02:00
|
|
|
CONFLICTS= vlc-devel-[0-9]*
|
2004-11-25 22:36:55 +01:00
|
|
|
|
2004-11-27 07:43:41 +01:00
|
|
|
WITH_VLC_DEFAULT_FONT?= ${X11BASE}/lib/X11/fonts/bitstream-vera/Vera.ttf
|
|
|
|
|
2004-05-26 07:54:17 +02:00
|
|
|
USE_BZIP2= yes
|
2003-09-14 11:56:09 +02:00
|
|
|
USE_GETOPT_LONG=yes
|
2004-02-04 05:36:30 +01:00
|
|
|
USE_GETTEXT= yes
|
2003-09-14 11:56:09 +02:00
|
|
|
USE_GMAKE= yes
|
2004-11-16 22:59:37 +01:00
|
|
|
WANT_GNOME= yes
|
2005-06-26 16:11:40 +02:00
|
|
|
USE_GNOME= gnometarget libxml2
|
2004-11-16 22:59:37 +01:00
|
|
|
WANT_SDL= yes
|
2004-05-26 07:54:17 +02:00
|
|
|
USE_ICONV= yes
|
2005-11-27 21:42:55 +01:00
|
|
|
USE_PERL5_BUILD=yes
|
2003-09-14 11:56:09 +02:00
|
|
|
|
2004-11-16 10:23:26 +01:00
|
|
|
FAKEDIR= ${WRKDIR}/fake
|
2004-11-16 22:59:37 +01:00
|
|
|
PLIST= ${WRKDIR}/plist
|
2004-11-16 10:23:26 +01:00
|
|
|
|
2006-08-20 07:30:55 +02:00
|
|
|
USE_LDCONFIG= yes
|
2003-09-14 11:56:09 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2005-11-29 18:42:36 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${WRKSRC}/include ${CPPFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}" \
|
2004-11-16 22:59:37 +01:00
|
|
|
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}"
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --enable-ffmpeg \
|
2004-12-07 09:11:58 +01:00
|
|
|
--with-ffmpeg=${LOCALBASE} \
|
2006-05-08 00:16:41 +02:00
|
|
|
--with-libiconv-prefix=${LOCALBASE} \
|
2004-11-16 22:59:37 +01:00
|
|
|
--with-ffmpeg-zlib \
|
|
|
|
--disable-gnome \
|
|
|
|
--disable-gtk \
|
2006-05-08 00:16:41 +02:00
|
|
|
--without-libintl-prefix \
|
|
|
|
--without-dv-raw1394
|
2004-11-16 22:59:37 +01:00
|
|
|
|
2004-03-03 18:53:47 +01:00
|
|
|
MAN1= vlc.1 \
|
|
|
|
vlc-config.1
|
|
|
|
|
2006-05-08 00:16:41 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-06-25 00:08:49 +02:00
|
|
|
.if ${OSVERSION} < 500035
|
2006-08-20 07:30:55 +02:00
|
|
|
BROKEN= Does not build on FreeBSD 4.x
|
2006-06-25 00:08:49 +02:00
|
|
|
.endif
|
|
|
|
|
2005-11-27 21:42:55 +01:00
|
|
|
.if ${PERL_LEVEL} < 500800
|
2006-08-20 07:30:55 +02:00
|
|
|
BROKEN= Does not compile with perl ${PERL_VERSION}
|
2005-11-27 21:42:55 +01:00
|
|
|
.endif
|
|
|
|
|
2006-05-08 00:16:41 +02:00
|
|
|
.if exists(${LOCALBASE}/libdata/pkgconfig/libavcodec.pc) || !exists(${LOCALBASE}/lib/libavformat.a)
|
|
|
|
LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg-devel
|
2007-04-04 16:43:20 +02:00
|
|
|
FFMPEG= new
|
2006-05-08 00:16:41 +02:00
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg
|
2007-04-04 16:43:20 +02:00
|
|
|
FFMPEG= old
|
|
|
|
EXTRA_PATCHES= ${PATCHDIR}/old-ffmpeg-patch
|
2005-05-16 00:15:11 +02:00
|
|
|
.endif
|
|
|
|
|
2004-11-16 22:59:37 +01:00
|
|
|
# compatible knobs.
|
|
|
|
.if defined(WITH_DEBUG)
|
|
|
|
DEBUG= yes
|
2004-05-26 07:54:17 +02:00
|
|
|
.endif
|
|
|
|
|
2005-11-27 21:42:55 +01:00
|
|
|
.if defined(WITH_LIBMPEG2)
|
|
|
|
WITH_MPEG2=yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_LIBCACA)
|
|
|
|
WITH_CACA=yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_LIBA52)
|
|
|
|
WITH_A52=yes
|
2004-07-16 08:24:54 +02:00
|
|
|
.endif
|
|
|
|
|
2005-11-27 21:42:55 +01:00
|
|
|
.if defined(WITH_SMB)
|
|
|
|
WITH_SAMBA=yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_LIBMATROSKA)
|
|
|
|
WITH_MATROSKA=yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_LIBTREMOR)
|
|
|
|
WITH_TREMOR=yes
|
2004-11-16 22:59:37 +01:00
|
|
|
.endif
|
|
|
|
# end compatible knobs
|
|
|
|
|
2004-09-21 21:42:02 +02:00
|
|
|
.if defined(WITHOUT_NLS)
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
.endif
|
|
|
|
|
2004-05-26 07:54:17 +02:00
|
|
|
.if defined(WITH_DVD_DEVICE)
|
|
|
|
DEFAULT_DVD_DEVICE=${WITH_DVD_DEVICE}
|
|
|
|
.else
|
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
DEFAULT_DVD_DEVICE=/dev/acd0c
|
|
|
|
.else
|
|
|
|
DEFAULT_DVD_DEVICE=/dev/acd0
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2006-05-08 00:16:41 +02:00
|
|
|
.if !defined(WITHOUT_GNOMEVFS)
|
2005-11-27 21:42:55 +01:00
|
|
|
USE_GNOME+= gnomevfs2
|
|
|
|
CONFIGURE_ARGS+= --enable-gnomevfs
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-gnomevfs
|
|
|
|
.endif
|
|
|
|
|
2004-05-26 07:54:17 +02:00
|
|
|
.if defined(WITH_CDROM_DEVICE)
|
|
|
|
DEFAULT_CDROM_DEVICE=${WITH_CDROM_DEVICE}
|
|
|
|
.else
|
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
DEFAULT_CDROM_DEVICE=/dev/acd0c
|
|
|
|
.else
|
|
|
|
DEFAULT_CDROM_DEVICE=/dev/acd0
|
|
|
|
.endif
|
2004-03-03 18:53:47 +01:00
|
|
|
.endif
|
|
|
|
|
2004-11-16 22:59:37 +01:00
|
|
|
.if defined(WITH_SKINS) && !defined(WITHOUT_SKINS)
|
2005-07-14 08:04:04 +02:00
|
|
|
LIB_DEPENDS+= tar.0:${PORTSDIR}/devel/libtar
|
2005-11-27 21:42:55 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-skins2
|
2006-12-01 08:39:02 +01:00
|
|
|
.undef WITHOUT_WXGTK
|
2004-11-16 22:59:37 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-skins2
|
2004-01-03 17:30:48 +01:00
|
|
|
.endif
|
|
|
|
|
2005-11-27 21:42:55 +01:00
|
|
|
.if ${ARCH}=="i386" && defined(WITH_WIN32_CODECS)
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/win32/wmv8ds32.ax:${PORTSDIR}/multimedia/win32-codecs
|
|
|
|
CONFIGURE_ARGS+=--enable-loader
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-loader
|
|
|
|
.endif
|
|
|
|
|
2005-05-12 23:18:29 +02:00
|
|
|
.if !defined(WITHOUT_WXGTK)
|
2006-12-01 08:39:02 +01:00
|
|
|
USE_WX= 2.6
|
2005-11-27 21:42:55 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-wxwidgets
|
2004-09-21 21:42:02 +02:00
|
|
|
.else
|
2005-11-27 21:42:55 +01:00
|
|
|
CONFIGURE_ARGS+=--disable-wxwidgets
|
2004-09-21 21:42:02 +02:00
|
|
|
.endif
|
|
|
|
|
2005-06-26 16:11:40 +02:00
|
|
|
.if (defined(WITH_ARTS) || exists(${LOCALBASE}/lib/libartsc.so)) && !defined(WITHOUT_ARTS)
|
2004-11-16 22:59:37 +01:00
|
|
|
LIB_DEPENDS+= artsc.0:${PORTSDIR}/audio/arts
|
|
|
|
CONFIGURE_ARGS+= --enable-arts
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-arts
|
|
|
|
.endif
|
|
|
|
|
2006-05-08 00:16:41 +02:00
|
|
|
.if !defined(WITHOUT_AVAHI)
|
2005-11-27 21:42:55 +01:00
|
|
|
LIB_DEPENDS+= avahi-common.3:${PORTSDIR}/net/avahi
|
|
|
|
CONFIGURE_ARGS+= --enable-bonjour
|
|
|
|
.else
|
|
|
|
CONFIGUE_ARGS+= --disable-bonjour
|
|
|
|
.endif
|
|
|
|
|
2004-11-16 22:59:37 +01:00
|
|
|
.if !defined(WITHOUT_CDROM)
|
2005-09-16 21:41:51 +02:00
|
|
|
LIB_DEPENDS+= vcdinfo.2:${PORTSDIR}/multimedia/vcdimager \
|
2006-05-24 11:13:19 +02:00
|
|
|
cdio.7:${PORTSDIR}/sysutils/libcdio
|
2004-11-16 22:59:37 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-vcd \
|
2005-11-27 21:42:55 +01:00
|
|
|
--disable-libcdio \
|
|
|
|
--disable-libcddb \
|
|
|
|
--disable-cddax
|
2004-11-16 22:59:37 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-vcd \
|
|
|
|
--disable-libcddb \
|
2005-06-26 16:11:40 +02:00
|
|
|
--disable-libcdio \
|
|
|
|
--disable-cddax
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_CDPARANOIA) && !defined(WITHOUT_CDROM)
|
|
|
|
LIB_DEPENDS+= cdda_interface.0:${PORTSDIR}/audio/cdparanoia
|
|
|
|
CONFIGURE_ARGS+=--enable-cdda \
|
|
|
|
--enable-cddax
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-cdda \
|
|
|
|
--disable-cddax
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_CORBA) && !defined(WITHOUT_CORBA)
|
|
|
|
USE_GNOME+= orbit2
|
|
|
|
CONFIGURE_ARGS+=--enable-corba
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-corba
|
2004-11-16 22:59:37 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_DVBPSI)
|
2005-07-06 19:52:14 +02:00
|
|
|
LIB_DEPENDS+= dvbpsi.4:${PORTSDIR}/multimedia/libdvbpsi
|
2004-11-16 22:59:37 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-dvbpsi \
|
|
|
|
--with-dvbpsi=${LOCALBASE}
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-dvbpsi
|
|
|
|
.endif
|
|
|
|
|
2005-06-26 16:11:40 +02:00
|
|
|
.if !defined(WITHOUT_DVDNAV)
|
2005-10-08 16:22:10 +02:00
|
|
|
LIB_DEPENDS+= dvdnav.4:${PORTSDIR}/multimedia/libdvdnav
|
2005-06-26 16:11:40 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-dvdnav
|
2004-11-16 22:59:37 +01:00
|
|
|
.else
|
2005-06-26 16:11:40 +02:00
|
|
|
CONFIGURE_ARGS+=--disable-dvdnav
|
2004-11-16 22:59:37 +01:00
|
|
|
.endif
|
|
|
|
|
2005-06-26 16:11:40 +02:00
|
|
|
.if defined(WITH_DVDREAD) && !defined(WITHOUT_DVDREAD)
|
|
|
|
LIB_DEPENDS+= dvdread.3:${PORTSDIR}/multimedia/libdvdread
|
|
|
|
CONFIGURE_ARGS+=--enable-dvdread
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-dvdread
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if (defined(WITH_ESOUND) || ${HAVE_GNOME:Mesound}!="") && !defined(WITHOUT_ESOUND)
|
2004-03-03 18:53:47 +01:00
|
|
|
USE_GNOME+= esound
|
|
|
|
CONFIGURE_ARGS+=--enable-esd
|
2005-06-26 16:11:40 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-esd
|
2004-03-03 18:53:47 +01:00
|
|
|
.endif
|
2001-08-12 11:44:16 +02:00
|
|
|
|
2004-11-16 22:59:37 +01:00
|
|
|
.if defined(WITH_FAAC) && !defined(WITHOUT_FAAC)
|
|
|
|
CONFIGURE_ARGS+=--with-ffmpeg-faac
|
|
|
|
LIB_DEPENDS+= faac.0:${PORTSDIR}/audio/faac
|
|
|
|
.endif
|
|
|
|
|
2005-06-26 16:11:40 +02:00
|
|
|
.if (defined(WITH_FAAD) || exists(${LOCALBASE}/lib/libfaad.a)) && !defined(WITHOUT_FAAD)
|
2004-11-16 22:59:37 +01:00
|
|
|
LIB_DEPENDS+= faad.0:${PORTSDIR}/audio/faad
|
|
|
|
CONFIGURE_ARGS+=--enable-faad
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-faad
|
|
|
|
.endif
|
|
|
|
|
2006-05-08 00:16:41 +02:00
|
|
|
.if (defined(WITH_FLAC) || exists(${LOCALBASE}/lib/libFLAC.a)) && !defined(WITHOUT_FLAC)
|
2005-03-16 15:50:13 +01:00
|
|
|
LIB_DEPENDS+= FLAC.7:${PORTSDIR}/audio/flac
|
2004-11-16 22:59:37 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-flac
|
|
|
|
.else
|
|
|
|
CONFLGIRE_ARGS+=--disable-flac
|
|
|
|
.endif
|
|
|
|
|
2005-06-26 16:11:40 +02:00
|
|
|
.if (defined(WITH_FRIBIDI) || exists(${LOCALBASE}/bin/fribidi-config)) && !defined(WITHOUT_FRIBIDI)
|
2004-05-26 07:54:17 +02:00
|
|
|
LIB_DEPENDS+= fribidi.0:${PORTSDIR}/converters/fribidi
|
|
|
|
CONFIGURE_ARGS+=--enable-fribidi
|
2005-06-26 16:11:40 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-fribidi
|
2004-05-26 07:54:17 +02:00
|
|
|
.endif
|
|
|
|
|
2005-06-26 16:11:40 +02:00
|
|
|
.if (defined(WITH_AALIB) || exists(${LOCALBASE}/lib/libaa.so.1)) && !defined(WITHOUT_AALIB)
|
2004-03-03 18:53:47 +01:00
|
|
|
LIB_DEPENDS+= aa.1:${PORTSDIR}/graphics/aalib
|
2005-01-20 07:50:30 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-aa
|
2005-06-26 16:11:40 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-aa
|
|
|
|
.endif
|
|
|
|
|
2006-08-11 13:30:38 +02:00
|
|
|
#.if (defined(WITH_DIRAC) || exists(${LOCALBASE}/lib/libdirac_decoder.a)) && !defined(WITHOUT_DIRAC)
|
|
|
|
#LIB_DEPENDS+= dirac_encoder.0:${PORTSDIR}/multimedia/dirac
|
|
|
|
#CONFIGURE_ARGS+=--enable-dirac
|
|
|
|
#CPPFLAGS+= -I${LOCALBASE}/include/dirac
|
|
|
|
#.else
|
2005-06-26 16:11:40 +02:00
|
|
|
CONFIGURE_ARGS+=--disable-dirac
|
2006-08-11 13:30:38 +02:00
|
|
|
#.endif
|
2004-03-03 18:53:47 +01:00
|
|
|
|
2006-05-08 00:16:41 +02:00
|
|
|
.if !defined(WITHOUT_X264)
|
2005-01-12 06:24:07 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-x264
|
2006-10-01 06:08:00 +02:00
|
|
|
LIB_DEPENDS+= x264.50:${PORTSDIR}/multimedia/x264
|
2005-01-12 06:24:07 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-x264
|
|
|
|
.endif
|
|
|
|
|
2005-11-27 21:42:55 +01:00
|
|
|
.if (defined(WITH_CACA) || exists(${LOCALBASE}/lib/libcaca.a)) && !defined(WITHOUT_CACA)
|
2004-11-16 22:59:37 +01:00
|
|
|
.if !defined(WITHOUT_AALIB)
|
|
|
|
WITH_AALIB= yes
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libcaca.a:${PORTSDIR}/graphics/libcaca
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/libcaca.a:${PORTSDIR}/graphics/libcaca
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+=--enable-caca
|
|
|
|
.endif
|
2004-03-03 18:53:47 +01:00
|
|
|
.else
|
2004-11-16 22:59:37 +01:00
|
|
|
CONFIGURE_ARGS+=--disable-caca
|
2004-03-03 18:53:47 +01:00
|
|
|
.endif
|
|
|
|
|
2006-05-08 00:16:41 +02:00
|
|
|
.if !defined(WITHOUT_DAAP)
|
2005-06-26 16:11:40 +02:00
|
|
|
LIB_DEPENDS+= opendaap.0:${PORTSDIR}/devel/libopendaap
|
|
|
|
CONFIGURE_ARGS+=--enable-daap
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-daap
|
|
|
|
.endif
|
|
|
|
|
2004-11-16 22:59:37 +01:00
|
|
|
.if !defined(WITHOUT_DTS)
|
2004-05-26 07:54:17 +02:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libdts.a:${PORTSDIR}/multimedia/libdts
|
2004-12-07 09:11:58 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-dts
|
2004-05-26 07:54:17 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-dts
|
|
|
|
.endif
|
|
|
|
|
2006-05-08 00:16:41 +02:00
|
|
|
.if (defined(WITH_DV) || exists(${LOCALBASE}/lib/libdv.a)) && !defined(WITHOUT_DV)
|
|
|
|
LIB_DEPENDS+= dv.4:${PORTSDIR}/multimedia/libdv
|
|
|
|
CONFIGURE_ARGS+=--enable-dv
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-dv
|
|
|
|
.endif
|
|
|
|
|
2004-11-16 22:59:37 +01:00
|
|
|
.if defined(WITHOUT_HTTPD)
|
|
|
|
CONFIGURE_ARGS+=--disable-httpd
|
|
|
|
.endif
|
|
|
|
|
2005-06-26 16:11:40 +02:00
|
|
|
.if (defined(WITH_GGI) || exists(${LOCALBASE}/lib/libggi.a)) && !defined(WITHOUT_GGI)
|
2004-03-03 18:53:47 +01:00
|
|
|
LIB_DEPENDS+= ggi.2:${PORTSDIR}/graphics/libggi
|
|
|
|
CONFIGURE_ARGS+=--enable-ggi
|
2004-09-21 21:42:02 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-ggi
|
2004-03-03 18:53:47 +01:00
|
|
|
.endif
|
|
|
|
|
2005-06-26 16:11:40 +02:00
|
|
|
# Do not use lame if PACKAGE_BUILDING is defined. since
|
|
|
|
# lame can NOT be packaged.
|
|
|
|
.if !defined(WITHOUT_LAME) && !defined(PACKAGE_BUILDING)
|
2004-11-16 22:59:37 +01:00
|
|
|
LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame
|
2004-12-07 09:11:58 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-mp3lame
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-mp3lame
|
2004-03-03 18:53:47 +01:00
|
|
|
.endif
|
|
|
|
|
2005-11-27 21:42:55 +01:00
|
|
|
.if !defined(WITHOUT_MATROSKA)
|
2005-05-29 05:58:24 +02:00
|
|
|
LIB_DEPENDS+= matroska.0:${PORTSDIR}/multimedia/libmatroska
|
2005-06-26 16:11:40 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-mkv
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-mkv
|
2004-03-03 18:53:47 +01:00
|
|
|
.endif
|
|
|
|
|
2005-11-27 21:42:55 +01:00
|
|
|
.if !defined(WITHOUT_A52)
|
2004-11-16 22:59:37 +01:00
|
|
|
LIB_DEPENDS+= a52.0:${PORTSDIR}/audio/liba52
|
2004-12-07 09:11:58 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-a52
|
2004-11-16 22:59:37 +01:00
|
|
|
.else
|
2004-11-27 07:43:41 +01:00
|
|
|
CONFIGURE_ARGS+=--disable-a52
|
2004-11-16 22:59:37 +01:00
|
|
|
.endif
|
|
|
|
|
2006-05-08 00:16:41 +02:00
|
|
|
.if defined(WITH_VLC_MOZILLA_PLUGIN) && !defined(WITHOUT_VLC_MOZILLA_PLUGIN)
|
|
|
|
USE_GECKO= firefox mozilla seamonkey nvu
|
|
|
|
.include "${.CURDIR}/../../www/mozilla/bsd.gecko.mk"
|
|
|
|
CONFIGURE_ENV+= MOZILLA_CONFIG="${GECKO_CONFIG}" \
|
|
|
|
XPIDL="${XPIDL}" \
|
|
|
|
XPIDL_INCL="${XPIDL_INCL}"
|
|
|
|
CONFIGURE_ARGS+=--enable-mozilla
|
|
|
|
.endif
|
|
|
|
|
2005-11-27 21:42:55 +01:00
|
|
|
.if !defined(WITHOUT_MPEG2)
|
2004-03-03 18:53:47 +01:00
|
|
|
LIB_DEPENDS+= mpeg2.0:${PORTSDIR}/multimedia/libmpeg2
|
|
|
|
CONFIGURE_ARGS+=--enable-libmpeg2
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-libmpeg2
|
|
|
|
.endif
|
|
|
|
|
2005-11-27 21:42:55 +01:00
|
|
|
.if defined(WITH_REALAUDIO)
|
2006-05-08 00:16:41 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-real \
|
|
|
|
--enable-realrtsp
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if (defined(WITH_SHOUT) || exists(${LOCALBASE}/lib/libshout.a)) && !defined(WITHOUT_SHOUT)
|
|
|
|
LIB_DEPENDS+= shout.5:${PORTSDIR}/audio/libshout2
|
2006-08-20 07:30:55 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-shout
|
2005-11-27 21:42:55 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if (defined(WITH_THEORA) || exists(${LOCALBASE}/lib/libtheora.a)) && !defined(WITHOUT_THEORA)
|
2006-05-07 04:57:34 +02:00
|
|
|
LIB_DEPENDS+= theora.2:${PORTSDIR}/multimedia/libtheora
|
2004-03-03 18:53:47 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-theora
|
2004-09-21 21:42:02 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-theora
|
2004-03-03 18:53:47 +01:00
|
|
|
.endif
|
|
|
|
|
2006-05-08 00:16:41 +02:00
|
|
|
.if (defined(WITH_LIVEMEDIA) || exists(${LOCALBASE}/live/liveMedia/libliveMedia.a)) && !defined(WITHOUT_LIVEMEDIA)
|
2004-03-03 18:53:47 +01:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/live/liveMedia/libliveMedia.a:${PORTSDIR}/net/liveMedia
|
|
|
|
CONFIGURE_ARGS+=--enable-livedotcom \
|
|
|
|
--with-livedotcom-tree=${LOCALBASE}/live
|
2004-09-21 21:42:02 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-livedotcom
|
2004-03-03 18:53:47 +01:00
|
|
|
.endif
|
|
|
|
|
2004-11-16 22:59:37 +01:00
|
|
|
.if !defined(WITHOUT_MAD)
|
2005-10-28 09:59:53 +02:00
|
|
|
LIB_DEPENDS+= id3tag.0:${PORTSDIR}/audio/libid3tag \
|
2004-11-16 22:59:37 +01:00
|
|
|
mad.2:${PORTSDIR}/audio/libmad
|
|
|
|
CONFIGURE_ARGS+=--enable-mad \
|
|
|
|
--with-mad=${LOCALBASE}
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-mad
|
|
|
|
.endif
|
|
|
|
|
2005-06-26 16:11:40 +02:00
|
|
|
.if !defined(WITHOUT_OGG)
|
|
|
|
LIB_DEPENDS+= ogg.5:${PORTSDIR}/audio/libogg
|
|
|
|
CONFIGURE_ARGS+=--enable-ogg
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-ogg
|
|
|
|
WITHOUT_VORBIS= yes
|
|
|
|
.endif
|
|
|
|
|
2004-05-26 07:54:17 +02:00
|
|
|
.if defined(WITH_NCURSES) && !defined(WITHOUT_NCURSES)
|
|
|
|
CONFIGURE_ARGS+=--enable-ncurses
|
|
|
|
.endif
|
|
|
|
|
2004-11-16 22:59:37 +01:00
|
|
|
.if defined(WITH_OPENGL) && !defined(WITHOUT_OPENGL)
|
|
|
|
USE_GL= yes
|
|
|
|
CONFIGURE_ARGS+=--enable-galaktos
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-galaktos
|
|
|
|
.endif
|
|
|
|
|
2006-05-08 00:16:41 +02:00
|
|
|
.if !defined(WITHOUT_SAMBA)
|
2006-08-20 07:30:55 +02:00
|
|
|
LIB_DEPENDS+= smbclient.0:${PORTSDIR}/net/samba-libsmbclient
|
2005-06-26 16:11:40 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-smb
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-smb
|
|
|
|
.endif
|
|
|
|
|
2006-05-08 00:16:41 +02:00
|
|
|
.if !defined(WITHOUT_SDL)
|
|
|
|
USE_SDL= image
|
2004-11-16 22:59:37 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-sdl
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-sdl
|
|
|
|
.endif
|
|
|
|
|
2005-06-26 16:11:40 +02:00
|
|
|
.if defined(WITH_TRANSCODE) || exists(${LOCALBASE}/bin/transcode)
|
2004-12-30 03:27:19 +01:00
|
|
|
RUN_DEPENDS+= transcode:${PORTSDIR}/multimedia/transcode
|
|
|
|
.endif
|
|
|
|
|
2005-06-26 16:11:40 +02:00
|
|
|
.if !defined(WITHOUT_HTTPD) && (defined(WITH_SSL) || exists(${LOCALBASE}/lib/libgnutls.a))
|
2007-01-02 09:54:13 +01:00
|
|
|
LIB_DEPENDS+= gnutls.15:${PORTSDIR}/security/gnutls
|
2004-11-16 22:59:37 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-gnutls
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-gnutls
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_SLP)
|
|
|
|
LIB_DEPENDS+= slp.1:${PORTSDIR}/net/openslp
|
|
|
|
.else
|
2004-11-27 07:43:41 +01:00
|
|
|
CONFIGURE_ARGS+=--disable-slp
|
2004-11-16 22:59:37 +01:00
|
|
|
.endif
|
|
|
|
|
2006-05-08 00:16:41 +02:00
|
|
|
.if !defined(WITHOUT_SPEEX)
|
2007-02-23 23:51:12 +01:00
|
|
|
LIB_DEPENDS+= speex.1:${PORTSDIR}/audio/speex
|
2004-03-03 18:53:47 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-speex
|
2004-11-16 22:59:37 +01:00
|
|
|
CPPFLAGS+=-I${LOCALBASE}/include/speex
|
2004-03-21 07:42:15 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-speex
|
2004-03-03 18:53:47 +01:00
|
|
|
.endif
|
|
|
|
|
2005-06-26 16:11:40 +02:00
|
|
|
.if defined(WITHOUT_STREAM_PLUGINS)
|
|
|
|
CONFIGURE_ARGS+=--disable-sout
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if (defined(WITH_SVG) || ${HAVE_GNOME:Mlibrsvg2}!="") && !defined(WITHOUT_SVG)
|
2004-11-16 22:59:37 +01:00
|
|
|
USE_GNOME+= librsvg2
|
|
|
|
CONFIGURE_ARGS+=--enable-svg
|
|
|
|
.else
|
2006-08-20 07:30:55 +02:00
|
|
|
CONFIGURE_ARGS+=--disable-svg
|
2004-11-16 22:59:37 +01:00
|
|
|
.endif
|
|
|
|
|
2005-06-26 16:11:40 +02:00
|
|
|
.if (defined(WITH_SVGALIB) || exists(${LOCALBASE}/lib/lib/vga.a)) && !defined(WITHOUT_SVGALIB)
|
2004-03-03 18:53:47 +01:00
|
|
|
LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib
|
|
|
|
CONFIGURE_ARGS+=--enable-svgalib
|
2004-09-21 21:42:02 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-svgalib
|
2004-03-03 18:53:47 +01:00
|
|
|
.endif
|
|
|
|
|
2005-11-27 21:42:55 +01:00
|
|
|
.if (defined(WITH_TREMOR) || exists(${LOCALBASE}/lib/libvorbisidec.a)) && !defined(WITHOUT_TREMOR)
|
2004-11-16 22:59:37 +01:00
|
|
|
LIB_DEPENDS+= vorbisidec.1:${PORTSDIR}/audio/libtremor
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-tremor
|
|
|
|
.endif
|
|
|
|
|
2005-06-26 16:11:40 +02:00
|
|
|
.if (defined(WITH_TWOLAME) || exists(${LOCALBASE}/lib/libtwolame.a)) && !defined(WITHOUT_TWOLAME)
|
|
|
|
LIB_DEPENDS+= twolame.0:${PORTSDIR}/audio/twolame
|
|
|
|
CONFIGURE_ARGS+= --enable-twolame
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-twolame
|
|
|
|
.endif
|
|
|
|
|
2004-11-16 22:59:37 +01:00
|
|
|
.if !defined(WITHOUT_VORBIS)
|
|
|
|
LIB_DEPENDS+= vorbis.3:${PORTSDIR}/audio/libvorbis
|
|
|
|
CONFIGURE_ARGS+=--enable-vorbis
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-vorbis
|
|
|
|
.endif
|
|
|
|
|
2005-06-26 16:11:40 +02:00
|
|
|
.if (defined(WITH_XOSD) || exists(${LOCALBASE}/lib/libxosd.a)) && !defined(WITHOUT_XOSD)
|
2004-03-03 18:53:47 +01:00
|
|
|
LIB_DEPENDS+= xosd.4:${PORTSDIR}/misc/xosd
|
|
|
|
CONFIGURE_ARGS+=--enable-xosd
|
2004-09-21 21:42:02 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-xosd
|
2004-03-03 18:53:47 +01:00
|
|
|
.endif
|
|
|
|
|
2004-11-16 22:59:37 +01:00
|
|
|
.if defined(DEBUG)
|
2006-08-20 07:30:55 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-debug
|
2004-11-16 22:59:37 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--enable-release
|
2004-05-26 07:54:17 +02:00
|
|
|
.endif
|
|
|
|
|
2004-03-03 18:53:47 +01:00
|
|
|
.if defined(WITH_OPTIMIZED_CFLAGS)
|
2004-11-27 07:43:41 +01:00
|
|
|
CFLAGS+= -O2 -ffast-math -fomit-frame-pointer
|
2005-06-26 16:11:40 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-release \
|
|
|
|
--enable-optimizations
|
2004-03-03 18:53:47 +01:00
|
|
|
.else
|
2005-06-26 16:11:40 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-release
|
2004-03-03 18:53:47 +01:00
|
|
|
.endif
|
|
|
|
|
2004-01-03 17:30:48 +01:00
|
|
|
.if ${OSVERSION} < 500000
|
2004-03-03 18:53:47 +01:00
|
|
|
CONFIGURE_ENV+= LIBS="-L/usr/lib -lcipher"
|
2004-01-03 17:30:48 +01:00
|
|
|
.endif
|
|
|
|
|
2006-05-08 00:16:41 +02:00
|
|
|
.include "${.CURDIR}/Makefile.inc"
|
2004-01-03 17:30:48 +01:00
|
|
|
.include <bsd.port.post.mk>
|