]> git.sesse.net Git - vlc/blob - ipkg/rules
Bumped up revision number to 0.2.92-dev and 1.0.1-dev.
[vlc] / ipkg / rules
1 #!/usr/bin/make -f
2 # debian/rules for the VideoLAN Client - uses debhelper.
3 # based on Joey Hess's one.
4 # Kludged for ipkg
5
6 # Compilation options
7 export CC=arm-linux-gcc
8 export LD=arm-linux-ld
9 export STRIP=arm-linux-strip
10 export CONFIG_FLAGS="--enable-release --prefix=/usr --disable-gtk --enable-fb --enable-sdl --disable-xvideo --disable-plugins --with-tuning=strongarm1100 --x-includes=/skiff/local/arm-linux/include --x-libraries=/skiff/local/arm-linux/lib/X11 --with-sdl-config-path=/skiff/local/bin --with-libmad=/skiff/local/arm-linux"
11 export LIBDVDCSS_FLAGS="--with-dvdcss=local-static"
12 export VIDDIR="usr/share/videolan"
13 export PIXDIR="usr/share/pixmaps"
14 export DESTDIR=/tmp/vlc
15
16 build: build-stamp
17 build-stamp:
18         ./configure --mandir=$${prefix}/share/man \
19                 --infodir=$${prefix}/share/info \
20                 $(shell echo $(CONFIG_FLAGS)) $(shell echo $(LIBDVDCSS_FLAGS))
21
22 # This is ugly -- I know
23         patch -p 0 < ipkg/patch
24
25         $(MAKE)
26
27         touch build-stamp
28
29 clean:
30         rm -f build-stamp
31
32         -$(MAKE) distclean
33
34 install: build
35         mkdir -p $(DESTDIR)/usr/bin
36         $(STRIP) vlc
37         cp vlc $(DESTDIR)/usr/bin
38
39 .PHONY: build clean install
40