2004-12-30 11:14:35 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.18 2004/12/30 16:14:35 espie Exp $
|
2004-07-09 21:49:42 -04:00
|
|
|
|
|
|
|
NOT_FOR_ARCHS= ${NO_SHARED_ARCHS}
|
2003-07-20 17:09:29 -04:00
|
|
|
|
|
|
|
COMMENT= "videolan client; multimedia player"
|
2004-12-16 02:40:20 -05:00
|
|
|
V= 0.8.1
|
2004-07-09 21:49:42 -04:00
|
|
|
DISTNAME= vlc-${V}
|
2004-12-30 11:14:35 -05:00
|
|
|
PKGNAME= ${DISTNAME}p0
|
2003-07-20 17:09:29 -04:00
|
|
|
CATEGORIES= x11
|
2004-12-16 02:40:20 -05:00
|
|
|
MASTER_SITES= http://download.videolan.org/pub/videolan/vlc/${V}/
|
2003-07-20 17:09:29 -04:00
|
|
|
|
|
|
|
HOMEPAGE= http://www.videolan.org/vlc/
|
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
USE_X11= Yes
|
|
|
|
|
2004-12-16 02:40:20 -05:00
|
|
|
WANTLIB= GL GLU X11 Xext Xinerama Xv c freetype m pthread usbhid z
|
|
|
|
|
2004-08-10 07:16:43 -04:00
|
|
|
MODULES= devel/gettext
|
2003-07-20 17:09:29 -04:00
|
|
|
|
2004-12-16 02:40:20 -05:00
|
|
|
BUILD_DEPENDS= :pkgconfig-*:devel/pkgconfig
|
|
|
|
|
|
|
|
LIB_DEPENDS= SDL.3.0::devel/sdl \
|
2004-12-30 11:14:35 -05:00
|
|
|
wx_gtk2.2.4:wxWidgets-gtk-*-gtk2:x11/wxWidgets/gtk2 \
|
2004-12-16 02:40:20 -05:00
|
|
|
png.4.1::graphics/png \
|
|
|
|
id3tag.3.0::audio/libid3tag \
|
|
|
|
mad.2.1::audio/libmad \
|
|
|
|
ogg.5.2::audio/libogg \
|
|
|
|
vorbis.3.0,vorbisenc.2.0::audio/libvorbis \
|
|
|
|
mpeg2.0.0::graphics/libmpeg2 \
|
|
|
|
avcodec.4.9,avformat.4.9::graphics/ffmpeg \
|
|
|
|
fribidi.0.0::devel/fribidi \
|
|
|
|
faad.0.0::audio/faad
|
2003-07-20 17:09:29 -04:00
|
|
|
|
2004-10-05 16:49:08 -04:00
|
|
|
CONFIGURE_STYLE=autoconf
|
|
|
|
AUTOCONF_VERSION=2.59
|
2003-08-16 16:36:12 -04:00
|
|
|
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \
|
2004-12-16 02:40:20 -05:00
|
|
|
LIBS="-logg -lm" \
|
|
|
|
WXCONFIG="${LOCALBASE}/bin/wxgtk2-2.4-config" \
|
2003-08-16 16:36:12 -04:00
|
|
|
CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/libpng"
|
2004-07-09 21:49:42 -04:00
|
|
|
CONFIGURE_ARGS+=--disable-altivec \
|
|
|
|
--disable-oss \
|
2003-07-20 17:09:29 -04:00
|
|
|
--enable-sdl \
|
|
|
|
--enable-mad \
|
|
|
|
--disable-optimizations \
|
2004-07-09 21:49:42 -04:00
|
|
|
--disable-dvbpsi \
|
|
|
|
--disable-vcd \
|
|
|
|
--disable-mod \
|
|
|
|
--disable-mkv \
|
|
|
|
--disable-dts \
|
2004-04-17 20:42:14 -04:00
|
|
|
--disable-cddax \
|
|
|
|
--disable-skins2 \
|
2004-04-27 21:30:53 -04:00
|
|
|
--disable-speex \
|
2004-12-16 02:40:20 -05:00
|
|
|
--disable-x264 \
|
2004-07-09 21:49:42 -04:00
|
|
|
--enable-faad \
|
|
|
|
--disable-dvbpsi \
|
|
|
|
--disable-v4l \
|
|
|
|
--disable-pvr \
|
|
|
|
--disable-fb \
|
|
|
|
--disable-qnx \
|
|
|
|
--disable-slp
|
2003-07-20 17:09:29 -04:00
|
|
|
|
2004-08-04 12:39:21 -04:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/autotools
|
|
|
|
|
2003-08-16 16:36:12 -04:00
|
|
|
FLAVORS= no_dvd
|
2003-07-20 17:09:29 -04:00
|
|
|
FLAVOR?=
|
|
|
|
|
2003-08-16 16:36:12 -04:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
2004-09-15 15:23:50 -04:00
|
|
|
PKG_ARGS+=-Di386=1
|
2003-08-16 16:36:12 -04:00
|
|
|
.else
|
2004-09-15 15:23:50 -04:00
|
|
|
PKG_ARGS+=-Di386=0
|
2003-08-16 16:36:12 -04:00
|
|
|
.endif
|
|
|
|
|
2003-08-02 23:41:20 -04:00
|
|
|
# XXX video window initialization fails without this
|
|
|
|
.if ${MACHINE_ARCH} == "sparc64"
|
|
|
|
CFLAGS+=-mhard-quad-float
|
|
|
|
.endif
|
|
|
|
|
2003-07-20 17:09:29 -04:00
|
|
|
.if ${FLAVOR:L:Mno_dvd}
|
2004-12-16 02:40:20 -05:00
|
|
|
CONFIGURE_ARGS+=--disable-a52 --disable-dvdread --disable-dvdnav
|
2003-07-20 17:09:29 -04:00
|
|
|
.else
|
2004-12-16 02:40:20 -05:00
|
|
|
CONFIGURE_ARGS+=--enable-a52 --enable-dvdread --enable-dvdnav
|
|
|
|
LIB_DEPENDS+= a52.0.0::audio/liba52 \
|
|
|
|
dvdnav.3.0::multimedia/libdvdnav \
|
|
|
|
dvdread.3.0::devel/libdvdread
|
2003-07-20 17:09:29 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|