160 lines
5 KiB
Makefile
160 lines
5 KiB
Makefile
# $NetBSD: Makefile,v 1.91 2010/05/09 07:46:28 tnn Exp $
|
|
#
|
|
|
|
DISTNAME= vlc-${VLC_VERSION}
|
|
CATEGORIES= multimedia
|
|
MASTER_SITES= http://download.videolan.org/pub/videolan/vlc/${VLC_VERSION}/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
VLC_VERSION= 1.0.6
|
|
|
|
MAINTAINER= ahoka@NetBSD.org
|
|
HOMEPAGE= http://videolan.org/
|
|
COMMENT= VLC media player and streaming server
|
|
|
|
CONFLICTS= vlc07-[0-9]* vlc08-[0-9]*
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
USE_LIBTOOL= yes
|
|
USE_TOOLS+= gmake perl pkg-config \
|
|
autoconf automake autoreconf
|
|
USE_PKGLOCALEDIR= yes
|
|
GNU_CONFIGURE= yes
|
|
PTHREAD_OPTS+= require
|
|
USE_LANGUAGES= c99 c++
|
|
PLIST_VARS+= x86simd altivec v4l2 vcd cdda
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
.include "options.mk"
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
CONFIGURE_ARGS+= --disable-vcd
|
|
.else
|
|
PLIST.vcd= yes
|
|
# This may need a closer look.
|
|
PLIST.cdda= yes
|
|
.endif
|
|
|
|
BUILDLINK_API_DEPENDS.zlib+= zlib>=1.2.0
|
|
BUILDLINK_API_DEPENDS.vcdimager+= vcdimager>=0.7.20nb1
|
|
|
|
CONFIGURE_ARGS+= --disable-speex # needs unstable 1.1.x branch
|
|
CONFIGURE_ARGS+= --disable-smb
|
|
|
|
CONFIGURE_ARGS+= --enable-cddax \
|
|
--enable-dvdread \
|
|
--enable-flac \
|
|
--enable-live555 \
|
|
--enable-theora
|
|
|
|
# Build optimalized modules
|
|
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
|
|
PLIST.x86simd= yes
|
|
CONFIGURE_ARGS+= --enable-mmx \
|
|
--enable-sse
|
|
.endif
|
|
.if ${MACHINE_ARCH} == "powerpc"
|
|
PLIST.altivec= yes
|
|
CONFIGURE_ARGS+= --enable-altivec
|
|
.endif
|
|
|
|
# Enable when cleanly builds
|
|
.if exists(/usr/include/linux/videodev2.h) # || exists(/usr/include/sys/videoio.h)
|
|
CONFIGURE_ARGS+= --enable-v4l2
|
|
PLIST.v4l2= yes
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-v4l2
|
|
.endif
|
|
|
|
INSTALLATION_DIRS+= share/vlc/http/dialogs share/vlc/http/images \
|
|
share/vlc/http/js share/vlc/http/old \
|
|
share/vlc/http/old/admin share/vlc/http/old/vlm \
|
|
share/vlc/http/requests share/vlc/osdmenu/default \
|
|
share/vlc/osdmenu/default/selected \
|
|
share/vlc/osdmenu/default/selection \
|
|
share/vlc/osdmenu/default/volume \
|
|
share/vlc/osdmenu/dvd/selected \
|
|
share/vlc/osdmenu/dvd/volume \
|
|
share/vlc/osdmenu/dvd/unselect \
|
|
share/vlc/osdmenu/dvd/selection \
|
|
share/vlc/skins2 share/vlc/skins2/fonts \
|
|
${PKGMANDIR}/man1
|
|
pre-configure:
|
|
cd ${WRKSRC} && autoreconf -f
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/doc/vlc.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
${INSTALL_DATA} ${WRKSRC}/doc/vlc-config.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
# Let's use dejavu-ttf as it has nice unicode support
|
|
#
|
|
ORIGFNT= /usr/share/fonts/truetype/freefont/FreeSerifBold.ttf
|
|
DEFAULT_FONT?= ${PREFIX}/lib/X11/fonts/TTF/DejaVuSans.ttf
|
|
DEPENDS+= dejavu-ttf>=2.26:../../fonts/dejavu-ttf
|
|
|
|
SUBST_CLASSES+= oss
|
|
SUBST_STAGE.oss= pre-configure
|
|
SUBST_SED.oss= -e "s,/dev/dsp,${DEVOSSAUDIO},g"
|
|
SUBST_FILES.oss+= modules/access/oss.c
|
|
SUBST_FILES.oss+= modules/audio_output/oss.c
|
|
SUBST_FILES.oss+= modules/gui/pda/pda_interface.c
|
|
SUBST_FILES.oss+= modules/gui/pda/pda.glade
|
|
SUBST_FILES.oss+= po/*.po
|
|
SUBST_MESSAGE.oss= Fixing hardcoded audio device.
|
|
|
|
SUBST_CLASSES+= fnt
|
|
SUBST_STAGE.fnt= pre-configure
|
|
SUBST_SED.fnt= -e "s,${ORIGFNT},${DEFAULT_FONT},"
|
|
SUBST_FILES.fnt= modules/misc/freetype.c
|
|
SUBST_MESSAGE.fnt= Fixing hardcoded paths.
|
|
|
|
REPLACE_SH+= vlc-config.in.in
|
|
|
|
# VLC embeds the build environment info to help debuging.
|
|
# Change it if it's bumped after a VLC upgrade!
|
|
#
|
|
CHECK_WRKREF_SKIP= lib/libvlccore.a \
|
|
lib/libvlccore.so \
|
|
lib/libvlccore.so.2 \
|
|
lib/libvlccore.so.2.1.2
|
|
|
|
.include "../../audio/libmpcdec/buildlink3.mk"
|
|
.include "../../audio/flac/buildlink3.mk"
|
|
.include "../../audio/libmad/buildlink3.mk"
|
|
.include "../../audio/libvorbis/buildlink3.mk"
|
|
.include "../../audio/liba52/buildlink3.mk"
|
|
.include "../../audio/libcddb/buildlink3.mk"
|
|
.include "../../audio/libid3tag/buildlink3.mk"
|
|
.include "../../audio/libdca/buildlink3.mk"
|
|
.include "../../audio/taglib/buildlink3.mk"
|
|
.include "../../audio/libcddb/buildlink3.mk"
|
|
.include "../../misc/libcdio/buildlink3.mk"
|
|
|
|
.include "../../graphics/jpeg/buildlink3.mk"
|
|
.include "../../net/liblive/buildlink3.mk"
|
|
.include "../../converters/fribidi/buildlink3.mk"
|
|
.include "../../devel/libebml/buildlink3.mk"
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
.include "../../devel/pcre/buildlink3.mk"
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../textproc/libxml2/buildlink3.mk"
|
|
.include "../../security/libgcrypt/buildlink3.mk"
|
|
.include "../../security/gnutls/buildlink3.mk"
|
|
|
|
.include "../../multimedia/ffmpeg/buildlink3.mk"
|
|
.include "../../multimedia/libdvdplay/buildlink3.mk"
|
|
.include "../../multimedia/libdvbpsi/buildlink3.mk"
|
|
.include "../../multimedia/libdvdnav/buildlink3.mk"
|
|
.include "../../multimedia/libdvdread/buildlink3.mk"
|
|
.include "../../multimedia/libmatroska/buildlink3.mk"
|
|
.include "../../multimedia/libmpeg2/buildlink3.mk"
|
|
.include "../../multimedia/libogg/buildlink3.mk"
|
|
.include "../../multimedia/libtheora/buildlink3.mk"
|
|
# needs x264_encoder_delayed_frames
|
|
BUILDLINK_API_DEPENDS.x264-devel+= x264-devel>=20090920
|
|
.include "../../multimedia/x264-devel/buildlink3.mk"
|
|
|
|
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
|
|
.include "../../mk/oss.buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|