openbsd-ports/x11/vlc/Makefile

210 lines
4.9 KiB
Makefile
Raw Normal View History

2006-11-03 10:15:07 -05:00
# $OpenBSD: Makefile,v 1.39 2006/11/03 15:15:07 jolan Exp $
2004-07-09 21:49:42 -04:00
SHARED_ONLY= Yes
COMMENT= "videolan client; multimedia player"
2006-11-03 10:15:07 -05:00
V= 0.8.5
2004-07-09 21:49:42 -04:00
DISTNAME= vlc-${V}
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= "patents"
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2005-12-21 22:45:36 -05:00
USE_LIBTOOL= Yes
USE_X11= Yes
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_image.>=1.3::devel/sdl-image \
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::graphics/libmpeg2 \
avcodec.>=7.0,avformat.>=7.0,postproc.>=7.0,avutil.>=1.0::graphics/ffmpeg \
fribidi::devel/fribidi \
faad::audio/faad \
a52::audio/liba52 \
theora.>=1::multimedia/libtheora \
xml2.>=9::textproc/libxml \
FLAC.>=7.0::audio/flac \
mpcdec.>=1::audio/libmpcdec \
matroska::multimedia/libmatroska \
ebml::textproc/libebml \
dvdnav.>=3.0::multimedia/libdvdnav \
dvdread.>=3.0::devel/libdvdread \
wx_base,wx_base_net,wx_base_odbc,wx_base_xml,wx_gtk2_adv,wx_gtk2_core,wx_gtk2_dbgrid,wx_gtk2_html,wx_gtk2_qa,wx_gtk2_xrc:wxWidgets-gtk2->=2.6.3:x11/wxWidgets
2006-11-03 10:15:07 -05:00
WANTLIB= ICE SM X11 Xext Xinerama Xv Xxf86vm c freetype m ncurses \
ossaudio pthread stdc++ usbhid z \
SDL jpeg tiff
CONFIGURE_STYLE=autoconf
AUTOCONF_VERSION=2.59
2005-12-21 22:45:36 -05:00
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
CPPFLAGS="-I${WRKSRC}/include -I${LOCALBASE}/include -I${LOCALBASE}/include/libpng"
CONFIGURE_ARGS+=--disable-pth \
--disable-st \
--disable-gprof \
--disable-cprof \
--disable-mostly-builtin \
--disable-debug \
--disable-release \
2005-12-21 22:45:36 -05:00
--without-contrib \
--disable-livedotcom \
--disable-v4l \
--disable-pvr \
--disable-vcdx \
--disable-cddax \
--disable-satellite \
--disable-dvb \
--disable-twolame \
--disable-tremor \
--disable-tarkin \
--disable-dirac \
--disable-svg \
--disable-qte \
--disable-mga \
--disable-svgalib \
--disable-ggi \
--disable-glide \
--disable-aa \
--disable-caca \
--disable-esd \
--disable-portaudio \
--disable-arts \
--disable-opie \
--disable-galaktos \
--disable-goom \
--disable-slp \
--disable-lirc \
--disable-corba \
--disable-mozilla \
--disable-testsuite \
--disable-hal \
--disable-optimizations \
--disable-gnutls \
--disable-dshow \
--disable-smb \
2004-07-09 21:49:42 -04:00
--disable-dvbpsi \
--disable-libcdio \
--disable-libcddb \
--disable-cdda \
2004-07-09 21:49:42 -04:00
--disable-vcd \
--disable-quicktime \
2004-07-09 21:49:42 -04:00
--disable-dts \
2004-12-16 02:40:20 -05:00
--disable-x264 \
--disable-glx \
--disable-opengl \
--disable-hd1000v \
--disable-directx \
2004-07-09 21:49:42 -04:00
--disable-fb \
--disable-wingdi \
--disable-alsa \
--disable-waveout \
--disable-coreaudio \
--disable-hd1000a \
--disable-macosx \
2004-07-09 21:49:42 -04:00
--disable-qnx \
--disable-visual \
--disable-joystick \
--disable-activex \
--disable-oss \
--disable-skins2 \
--disable-mod \
--disable-speex \
--disable-cmml \
2005-12-21 22:45:36 -05:00
--disable-shout \
--disable-gnomevfs \
--disable-real \
--disable-realrtsp \
--disable-cyberlink \
--disable-bonjour \
--disable-daap \
--disable-pda \
2005-12-24 04:01:17 -05:00
--disable-xosd
2005-12-21 22:45:36 -05:00
CONFIGURE_ARGS+=--enable-ncurses \
--enable-sout \
--enable-httpd \
--enable-vlm \
--enable-screen \
--enable-ogg \
--enable-mad \
--enable-ffmpeg \
2005-07-08 20:36:43 -04:00
--enable-a52 \
--enable-libmpeg2 \
--enable-vorbis \
--enable-png \
--enable-x11 \
--enable-xvideo \
--enable-sdl \
--enable-freetype \
--enable-fribidi \
--enable-libxml2 \
--enable-faad \
--enable-theora \
--enable-flac \
--enable-mkv \
--enable-mpc \
--enable-wxwidgets \
--enable-dvdread \
--enable-dvdnav
2004-08-04 12:39:21 -04:00
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/autotools
2005-12-24 04:01:17 -05:00
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
PKG_ARGS+=-Dx86opt=1
.else
PKG_ARGS+=-Dx86opt=0
.endif
.if ${MACHINE_ARCH} == "i386"
CONFIGURE_ARGS+=--enable-loader
PKG_ARGS+=-Dwin32=1
.else
CONFIGURE_ARGS+=--disable-loader
PKG_ARGS+=-Dwin32=0
.endif
2005-12-21 23:45:38 -05:00
.if ${MACHINE_ARCH} == "powerpc"
CONFIGURE_ARGS+=--enable-altivec
PKG_ARGS+=-Daltivec=1
.else
CONFIGURE_ARGS+=--disable-altivec
PKG_ARGS+=-Daltivec=0
.endif
# XXX video window initialization fails without this
.if ${MACHINE_ARCH} == "sparc64"
CFLAGS+=-mhard-quad-float
.endif
2005-12-24 04:01:17 -05:00
# win32 codecs support uses i386_set_ldt
post-configure:
.if ${MACHINE_ARCH} == "i386"
2006-11-03 10:15:07 -05:00
@perl -pi -e s,'VLC_ENTRY = vlc_entry__0_8_5','VLC_ENTRY = vlc_entry__0_8_5 -li386',g \
2005-12-24 04:01:17 -05:00
${WRKSRC}/modules/codec/Makefile ${WRKSRC}/modules/codec/dmo/Makefile
.endif
2005-12-21 22:45:36 -05:00
# this was used for the pda interface which is disabled now, it may be
# re-renabled when it is more usable so leave this here
#pre-build:
# @perl -pi -e 's|_PREFIX_|${PREFIX}|g' ${WRKSRC}/modules/gui/pda/pda.c
2006-11-03 10:15:07 -05:00
# XXX install fails due to this file not being generated properly
pre-install:
@touch ${WRKSRC}/share/skins2/default.vlt
.include <bsd.port.mk>