openbsd-ports/x11/vlc/Makefile

94 lines
2.1 KiB
Makefile
Raw Normal View History

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}
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
CATEGORIES= x11
2004-12-16 02:40:20 -05:00
MASTER_SITES= http://download.videolan.org/pub/videolan/vlc/${V}/
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
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
CONFIGURE_STYLE=autoconf
AUTOCONF_VERSION=2.59
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \
2004-12-16 02:40:20 -05:00
LIBS="-logg -lm" \
WXCONFIG="${LOCALBASE}/bin/wxgtk2-2.4-config" \
CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/libpng"
2004-07-09 21:49:42 -04:00
CONFIGURE_ARGS+=--disable-altivec \
--disable-oss \
--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
2004-08-04 12:39:21 -04:00
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/autotools
FLAVORS= no_dvd
FLAVOR?=
.if ${MACHINE_ARCH} == "i386"
2004-09-15 15:23:50 -04:00
PKG_ARGS+=-Di386=1
.else
2004-09-15 15:23:50 -04:00
PKG_ARGS+=-Di386=0
.endif
# XXX video window initialization fails without this
.if ${MACHINE_ARCH} == "sparc64"
CFLAGS+=-mhard-quad-float
.endif
.if ${FLAVOR:L:Mno_dvd}
2004-12-16 02:40:20 -05:00
CONFIGURE_ARGS+=--disable-a52 --disable-dvdread --disable-dvdnav
.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
.endif
.include <bsd.port.mk>