summaryrefslogtreecommitdiff
path: root/multimedia/vlc/Makefile
blob: 0d886613131c48d8cad80dbdcb03def6aaf84f9d (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.3 2004/04/12 23:22:59 salo 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_BUILDLINK3=		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/buildlink3.mk"
PLIST_SUBST+=	DVDCSS=
.else
CONFIGURE_ARGS+=	--disable-dvd
PLIST_SUBST+=	DVDCSS="@comment "
.endif

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

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