]> git.sesse.net Git - vlc/blob - ipkg/rules
Bumped up version number to 0.7.0
[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 VERSION=0.7.0
7 # Compilation options
8 export CC=arm-linux-gcc
9 export LD=arm-linux-ld
10 export AR=arm-linux-ar
11 export RANLIB=arm-linux-ranlib
12 export STRIP=arm-linux-strip
13
14 export CONFIG_FLAGS="--enable-release --prefix=/usr \
15         --disable-plugins \
16         --disable-gtk \
17         --disable-gtk2 \
18         --disable-gnome \
19         --disable-gnome2 \
20         --disable-qt \
21         --disable-kde \
22         --disable-qte \
23         --disable-xosd \
24         --disable-ogg \
25         --disable-tarkin \
26         --disable-tremor \
27         --disable-theorea \
28         --enable-v4l \
29         --enable-sout \
30         --enable-dummy \
31         --enable-fb \
32         --enable-sdl \
33         --enable-oss \
34         --disable-alsa \
35         --enable-x11 \
36         --disable-xvideo \
37         --disable-dvd \
38         --disable-dvdread \
39         --disable-vcd \
40         --disable-maxosx \
41         --disable-freetype \
42         --enable-a52 \
43         --enable-faad2 \
44         --enable-flac \
45         --enable-libmpeg2 \
46         --enable-libdvbpsi \
47         --disable-mkv \
48         --enable-mad \
49         --enable-ffmpeg \
50         --enable-pda \
51         --with-tuning=strongarm1100 \
52         --x-includes=/skiff/local/arm-linux/include \
53         --x-libraries=/usr/local/arm/2.95.3/arm-linux/usr/X11R6/lib \
54         --with-libiconv-prefix=/usr/local/arm/2.95.3/arm-linux/usr \
55         --with-mad-tree=/home/jpsaman/iPaq/src/libmad-0.15.0b \
56         --with-a52-tree=/home/jpsaman/iPaq/src/a52dec-0.7.4 \
57         --with-faad2-tree=/home/jpsaman/iPaq/src/faad2-20030612 \
58         --with-flac-tree=/home/jpsaman/iPaq/src/flac-1.1.0 \
59         --with-libmpeg2-tree=/home/jpsaman/iPaq/src/mpeg2dec-20030612 \
60         --with-libdvbpsi-tree=/home/jpsaman/iPaq/src/libdvbpsi-0.1.2 \
61         --with-sdl-config-path=/usr/local/arm/2.95.3/arm-linux/usr/bin \
62         --with-sdl-prefix=/usr/local/arm/2.95.3/arm-linux/usr \
63         --with-ffmpeg-tree=/home/jpsaman/iPaq/src/ffmpeg-20030622"
64
65 export VIDDIR="usr/share/vlc"
66 export PIXDIR="usr/share/pixmaps"
67 export DESTDIR=/usr/local/arm/2.95.3/arm-linux
68 export PKGDIR=/home/jpsaman/iPaq/packages/vlc-$(VERSION)
69
70 config:
71         ./configure --mandir=$${prefix}/share/man \
72                 --infodir=$${prefix}/share/info \
73                 --host=arm-linux \
74                 --target=arm-linux \
75                 $(shell echo $(CONFIG_FLAGS)) \
76         LDFLAGS="-L/usr/local/arm/2.95.3/arm-linux/lib -L/usr/local/arm/2.95.3/arm-linux/usr/lib" \
77         CPPFLAGS="-I/usr/local/arm/2.95.3/arm-linux/include -I/usr/local/arm/2.95.3/arm-linux/usr/include"
78
79 #patch:
80 # This is ugly -- I know
81 #       patch -p 0 < ipkg/patch
82
83 build:
84         $(MAKE)
85
86 clean:
87         -$(MAKE) distclean
88
89 install: build
90         rm -fr ${PKGDIR}/
91         mkdir -p ${PKGDIR}/CONTROL
92         mkdir -p $(PKGDIR)/usr/bin
93         mkdir -p ${PKGDIR}/usr/share/vlc
94 #       mkdir -p ${PKGDIR}/usr/lib/menu
95         mkdir -p ${PKGDIR}/usr/lib/vlc
96         $(STRIP) vlc
97         cp ipkg/control $(PKGDIR)/CONTROL/control
98         cp ipkg/postinst ${PKGDIR}/CONTROL/postinst
99         cp ipkg/postrm ${PKGDIR}/CONTROL/postrm
100         cp share/familiar-* ${PKGDIR}/usr/share/vlc
101         cp share/vlc32x32.xpm ${PKGDIR}/usr/share/vlc
102         cp share/vlc16x16.xpm  ${PKGDIR}/usr/share/vlc
103         cp share/vlc48x48.png  ${PKGDIR}/usr/share/vlc
104         cp vlc $(PKGDIR)/usr/bin
105 #       cp ipkg/vlc.gpe ${PKGDIR}/usr/lib/menu/vlc
106
107 install-plugins: install
108         find ./ -name *.so | xargs cp ${PKGDIR}/usr/lib/vlc
109         $(STRIP) ${PKGDIR}/usr/lib/vlc
110
111 .PHONY: build clean install
112