openbsd-ports/x11/vlc/Makefile
jolan 89b94481a3 - don't install the plugin which reads divx subtitles from a file. it
isn't built correctly which causes problems on macppc and it isn't
  popular/useful anyway.  this will be properly fixed "soon".
- remove NOT_FOR_ARCHS=powerpc as it seems to "work" on my ibook
  (to the extent that it can without accelerated video and problematic
   audio)
- use SED_PLIST, rather than the dirty FLAVOR+=${MACHINE_ARCH} hack, it
  makes the index entry look prettier.
- adjust PLIST accordingly, and also add the logo plugin (useless?)
- adjust LIB_DEPENDS for the liba52 change and logo plugin

thanks to drahn@ for help, hints, & suggestions
2003-08-16 20:36:12 +00:00

76 lines
1.6 KiB
Makefile

# $OpenBSD: Makefile,v 1.5 2003/08/16 20:36:12 jolan Exp $
COMMENT= "videolan client; multimedia player"
VER= 0.6.2
DISTNAME= vlc-${VER}
PKGNAME= ${DISTNAME}p0
CATEGORIES= x11
MASTER_SITES= http://www.videolan.org/pub/videolan/vlc/${VER}/
HOMEPAGE= http://www.videolan.org/vlc/
MAINTAINER= Jolan Luff <jolan@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
USE_X11= Yes
MODULES= gettext
LIB_DEPENDS= SDL::devel/sdl \
gtk.1.2,gdk.1.2::x11/gtk+ \
glib,gthread::devel/glib \
png::graphics/png \
mad.1,id3tag.1::audio/mad \
ogg::audio/libogg \
vorbis,vorbisenc::audio/libvorbis \
mpeg2::graphics/libmpeg2 \
avcodec::graphics/ffmpeg
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \
CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/libpng"
CONFIGURE_ARGS+=--disable-oss \
--enable-sdl \
--disable-dvbpsi \
--enable-mad \
--disable-optimizations \
--disable-vcd \
--disable-dvd
FLAVORS= no_dvd
FLAVOR?=
.if ${MACHINE_ARCH} == "i386"
SED_PLIST+= |sed -e '/^IFCRAPPYHW:/s///'
.else
SED_PLIST+= |sed -e '/^IFCRAPPYHW:/d'
.endif
.if ${MACHINE_ARCH} == "powerpc"
SED_PLIST+= |sed -e '/^IFPPC:/s///'
.else
SED_PLIST+= |sed -e '/^IFPPC:/d'
.endif
# XXX video window initialization fails without this
.if ${MACHINE_ARCH} == "sparc64"
CFLAGS+=-mhard-quad-float
.endif
.if ${FLAVOR:L:Mno_dvd}
CONFIGURE_ARGS+=--disable-a52 --disable-dvdplay --disable-dvdread
.else
CONFIGURE_ARGS+=--enable-a52 --enable-dvdplay --enable-dvdread
LIB_DEPENDS+= a52::audio/liba52 \
dvdplay::devel/libdvdplay \
dvdread::devel/libdvdread
.endif
.include <bsd.port.mk>