/[gentoo-x86]/media-video/vlc/vlc-0.4.4.ebuild
Gentoo

Contents of /media-video/vlc/vlc-0.4.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Sat Dec 13 05:39:38 2003 UTC (9 years, 5 months ago) by seemant
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
cleanup

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/media-video/vlc/vlc-0.4.4.ebuild,v 1.10 2003/09/04 04:52:00 msterret Exp $
4
5 IUSE="arts qt ncurses dvd gtk nls 3dfx esd directfb kde X alsa ggi oggvorbis gnome"
6
7 S=${WORKDIR}/${P}
8 DESCRIPTION="VideoLAN Client - DVD/video player"
9 SRC_URI="http://www.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.bz2"
10 HOMEPAGE="http://www.videolan.org"
11
12 SLOT="0"
13 LICENSE="GPL-2"
14 KEYWORDS="x86 ppc"
15
16 DEPEND="X? ( virtual/x11 )
17 qt? ( x11-libs/qt )
18 dvd? ( media-libs/libdvdread
19 media-libs/libdvdcss )
20 >=media-libs/libsdl-1.1.8-r1
21 esd? ( >=media-sound/esound-0.2.22 )
22 ggi? ( >=media-libs/libggi-2.0_beta3 )
23 gtk? ( =x11-libs/gtk+-1.2* )
24 kde? ( kde-base/kdelibs )
25 arts? ( kde-base/kdelibs )
26 gnome? ( >=gnome-base/gnome-libs-1.4.1.2-r1 )
27 ncurses? ( sys-libs/ncurses )
28 oggvorbis? ( media-libs/libvorbis )
29 alsa? ( >=media-libs/alsa-lib-0.9_rc2 )
30 >=media-sound/mad-0.14.2b
31 >=media-libs/a52dec-0.7.4
32 >=media-libs/libdvbpsi-0.1.1"
33
34 RDEPEND="nls? ( sys-devel/gettext )"
35
36 # get kde and arts paths
37 if [ -n "`use kde`" -o -n "`use arts`" ]; then
38 inherit kde-functions
39 set-kdedir 3
40 # $KDEDIR is now set to arts/kdelibs location
41 fi
42
43 src_unpack() {
44
45 unpack ${A}
46 cd ${S}
47 # if qt3 is installed, patch vlc to work with it instead of qt2
48 ( use qt || use kde ) && ( \
49 if [ ${QTDIR} = "/usr/qt/3" ]
50 then
51 cp configure.in configure.in.orig
52 sed "s:-lkfile::" \
53 configure.in.orig > configure.in
54
55 cd ${S}/plugins/kde
56 cp kde_interface.h kde_interface.h.orig
57 sed "s:\(#include <kmainwindow.h>\):\1\n#include <kstatusbar.h>:" \
58 kde_interface.h.orig > kde_interface.h
59
60 cp kde_preferences.cpp kde_preferences.cpp.orig
61 sed 's:\("vlc preferences", true, false, \)\("Save\):\1(KGuiItem)\2:' \
62 kde_preferences.cpp.orig > kde_preferences.cpp
63 fi
64 )
65 }
66
67 src_compile(){
68
69 use X \
70 && myconf="${myconf} --enable-x11 --enable-xvideo" \
71 || myconf="${myconf} --disable-x11 --disable-xvideo"
72
73 use qt \
74 && myconf="${myconf} --enable-qt" \
75 || myconf="${myconf} --disable-qt"
76
77 use dvd \
78 && myconf="${myconf} \
79 --enable-dvd \
80 --enable-dvdread \
81 --enable-vcd" \
82 || myconf="${myconf} --disable-dvd --disable-dvdread --disable-vcd"
83
84 use esd \
85 && myconf="${myconf} --enable-esd" \
86 || myconf="${myconf} --disable-esd"
87
88 use ggi \
89 && myconf="${myconf} --enable-ggi" \
90 || myconf="${myconf} --disable-ggi"
91
92 use gtk \
93 && myconf="${myconf} --enable-gtk" \
94 || myconf="${myconf} --disable-gtk"
95
96 use kde \
97 && myconf="${myconf} --enable-kde" \
98 || myconf="${myconf} --disable-kde"
99
100 use nls \
101 || myconf="${myconf} --disable-nls"
102
103 use 3dfx \
104 && myconf="${myconf} --enable-glide" \
105 || myconf="${myconf} --disable-glide"
106
107 use arts \
108 && myconf="${myconf} --enable-arts" \
109 || myconf="${myconf} --disable-arts"
110
111 use gnome \
112 && myconf="${myconf} --enable-gnome" \
113 || myconf="${myconf} --disable-gnome"
114
115 use ncurses \
116 && myconf="${myconf} --enable-ncurses" \
117 || myconf="${myconf} --disable-ncurses"
118
119 use directfb \
120 && myconf="${myconf} --enable-fb" \
121 || myconf="${myconf} --disable-fb"
122
123 use oggvorbis \
124 && myconf="${myconf} --enable-vorbis" \
125 || myconf="${myconf} --disable-vorbis"
126
127 use alsa \
128 && myconf="${myconf} --enable-alsa" \
129 || myconf="${myconf} --disable-alsa"
130
131 # vlc uses its own ultraoptimizaed CXXFLAGS
132 # and forcing custom ones generally fails building
133 export CXXFLAGS=""
134 export CFLAGS=""
135
136 autoconf || die
137
138 econf \
139 --with-sdl \
140 --enable-release \
141 --enable-mad \
142 --enable-a52 \
143 --enable-dvbpsi \
144 ${myconf} || die "configure failed"
145
146 emake || die "parallel make failed"
147 }
148
149 src_install() {
150
151 dodir /usr/{bin,lib}
152
153 einstall || die "make install failed"
154
155 dodoc AUTHORS COPYING ChangeLog FAQ INSTALL* README* MODULES TODO
156
157 }

  ViewVC Help
Powered by ViewVC 1.1.13