summaryrefslogtreecommitdiff
path: root/multimedia/vlc/Makefile
blob: b2a3cfeec8f1e2a28b5370d5770b747e3851e53d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# $NetBSD: Makefile,v 1.1.1.1 2004/03/29 10:30:28 grant Exp $
#

DISTNAME=		vlc-0.7.1
CATEGORIES=		multimedia
MASTER_SITES=		http://download.videolan.org/pub/videolan/vlc/0.7.1/
EXTRACT_SUFX=		.tar.bz2

MAINTAINER=		xtraeme@NetBSD.org
HOMEPAGE=		http://www.videolan.org/
COMMENT=		VideoLAN Client

USE_BUILDLINK2=		yes
USE_GNU_TOOLS+=		make
USE_PKGLOCALEDIR=	yes
USE_X11=		yes
GNU_CONFIGURE=		yes
PTHREAD_OPTS+=		require

SUBST_CLASSES+=		oss
SUBST_SED.oss+=		-e 's|/dev/dsp|${DEVOSSAUDIO}|'
SUBST_STAGE.oss=	post-patch
SUBST_MESSAGE.oss=	patching hardcoded /dev/dsp
SUBST_FILES.oss+=	modules/access/v4l/v4l.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+=	modules/gui/wxwindows/v4l.cpp

.include "../../mk/bsd.prefs.mk"

# XXX FIXME
.if ${OPSYS} == "NetBSD"
CONFIGURE_ARGS+=        --disable-vcd
.endif

CONFIGURE_ARGS+=	--enable-oss
CONFIGURE_ARGS+=	--enable-dvb

# XXX FIXME
CONFIGURE_ARGS+=	--disable-arts
CONFIGURE_ARGS+=	--disable-mkv
CONFIGURE_ARGS+=	--disable-faad
CONFIGURE_ARGS+=	--disable-ffmpeg

CONFIGURE_ARGS+=	--enable-flac
CONFIGURE_ARGS+=	--enable-x11
CONFIGURE_ARGS+=	--disable-qt
CONFIGURE_ARGS+=	--disable-kde
CONFIGURE_ARGS+=	--disable-gnome
CONFIGURE_ARGS+=	--disable-gtk

WITH_DVDCSS?=		NO
BUILD_DEFS+=		WITH_DVDCSS

.if !empty(WITH_DVDCSS:M[Yy][Ee][Ss])
CONFIGURE_ARGS+=	--with-dvdcss="${BUILDLINK_PREFIX.libdvdcss}"
.include "../../multimedia/libdvdcss/buildlink2.mk"
PLIST_SUBST+=	DVDCSS=
.else
CONFIGURE_ARGS+=	--disable-dvd
PLIST_SUBST+=	DVDCSS="@comment "
.endif

#.include "../../audio/faad2/buildlink2.mk"
.include "../../audio/flac/buildlink2.mk"
.include "../../audio/lame/buildlink2.mk"
.include "../../audio/liba52/buildlink2.mk"
.include "../../audio/libcddb/buildlink2.mk"
.include "../../audio/libid3tag/buildlink2.mk"
.include "../../audio/libmad/buildlink2.mk"
.include "../../audio/libogg/buildlink2.mk"
.include "../../audio/libvorbis/buildlink2.mk"
.include "../../audio/speex/buildlink2.mk"
.include "../../converters/fribidi/buildlink2.mk"
.include "../../devel/SDL/buildlink2.mk"
.include "../../devel/gettext-lib/buildlink2.mk"
#.include "../../graphics/ffmpeg/buildlink2.mk"
.include "../../graphics/freetype2/buildlink2.mk"
.include "../../graphics/libmpeg2/buildlink2.mk"
.include "../../misc/libcdio/buildlink2.mk"
.include "../../multimedia/libdvdplay/buildlink2.mk"
.include "../../multimedia/libdvbpsi/buildlink2.mk"
.include "../../multimedia/libdvdread/buildlink2.mk"
.include "../../net/openslp/buildlink2.mk"
.include "../../x11/wxGTK/buildlink2.mk"

.include "../../mk/ossaudio.buildlink2.mk"
.include "../../mk/pthread.buildlink2.mk"
.include "../../mk/bsd.pkg.mk"