]> git.sesse.net Git - vlc/blob - ipkg/rules.opie
Fix warning
[vlc] / ipkg / rules.opie
1 #!/usr/bin/make -f
2 # debian/rules for the VLC media player - uses debhelper.
3 # based on Joey Hess's one.
4 # Kludged for ipkg
5
6 VERSION=0.8.0
7
8 export VIDDIR="usr/share/vlc"
9 export PIXDIR="usr/share/pixmaps"
10 export DESTDIR=${HOME}/arm-linux
11 export PKGDIR=${HOME}/packages/opie-vlc-$(VERSION)
12 export QTDIR=${HOME}/arm-linux/opt/QtPalmtop
13
14 # Compilation options
15 export CONFIG_FLAGS="--enable-release --prefix=/usr \
16         --disable-plugins \
17         --disable-gtk \
18         --disable-gtk2 \
19         --disable-gnome \
20         --disable-gnome2 \
21         --disable-qt \
22         --disable-kde \
23         --disable-xosd \
24         --disable-ogg \
25         --disable-tarkin \
26         --disable-tremor \
27         --disable-theorea \
28         --enable-qte \
29         --disable-x11 \
30         --disable-xvideo \
31         --enable-dummy \
32         --enable-v4l \
33         --enable-sout \
34         --enable-fb \
35         --disable-sdl \
36         --enable-oss \
37         --disable-alsa \
38         --disable-dvd \
39         --disable-dvdread \
40         --disable-vcd \
41         --disable-maxosx \
42         --disable-freetype \
43         --enable-a52 \
44         --enable-faad2 \
45         --enable-flac \
46         --enable-libmpeg2 \
47         --enable-libdvbpsi \
48         --disable-mkv \
49         --enable-mad \
50         --enable-ffmpeg \
51         --disable-pda \
52         --with-tuning=strongarm1100 \
53         --with-libiconv-prefix=${HOME}/arm-linux/usr \
54         --with-mad-tree=${HOME}/arm-linux/vlc-${VERSION}/libmad-0.15.0b \
55         --with-a52-tree=${HOME}/arm-linux/vlc-${VERSION}/a52dec-0.7.4 \
56         --with-faad2-tree=${HOME}/arm-linux/vlc-${VERSION}/faad2-20030612 \
57         --with-flac-tree=${HOME}/arm-linux/vlc-${VERSION}/flac-1.1.0 \
58         --with-libmpeg2-tree=${HOME}/arm-linux/vlc-${VERSION}/mpeg2dec-20030612 \
59         --with-libdvbpsi-tree=${HOME}/arm-linux/vlc-${VERSION}/libdvbpsi-0.1.2 \
60         --with-qte=${QTDIR} \
61         --with-ffmpeg-tree=${HOME}/arm-linux/vlc-${VERSION}/ffmpeg-20030622"
62
63 build: build-stamp
64 config:
65         ./configure --mandir=$${prefix}/share/man \
66                 --infodir=$${prefix}/share/info \
67                 --host=arm-linux \
68                 --target=arm-linux \
69                 $(shell echo $(CONFIG_FLAGS)) \
70         LDFLAGS="-L${HOME}/arm-linux/lib \
71                  -L${QTDIR}/lib \
72                  -L${HOME}/arm-linux/vlc-${VERSION}/libid3tag-0.15.0b" \
73         CPPFLAGS="-I${QTDIR}/include \
74                 -I${HOME}/arm-linux/vlc-${VERSION}/libid3tag-0.15.0b"
75
76 build-stamp:
77 # This is ugly -- I know
78 #       patch -p0 < ipkg/patch
79
80         $(MAKE)
81
82 clean:
83         -$(MAKE) distclean
84
85 install: build
86         rm -fr ${PKGDIR}/
87         mkdir -p ${PKGDIR}/CONTROL
88         mkdir -p $(PKGDIR)/usr/bin
89         mkdir -p ${PKGDIR}/usr/share/vlc
90         mkdir -p ${PKGDIR}/usr/lib/menu
91         mkdir -p ${PKGDIR}/usr/lib/vlc
92         mkdir -p ${PKGDIR}/opt/QtPalmtop/bin
93         mkdir -p ${PKGDIR}/opt/QtPalmtop/apps/Applications
94         $(STRIP) vlc
95         cp ipkg/control.opie $(PKGDIR)/CONTROL/control
96         cp ipkg/postinst.opie ${PKGDIR}/CONTROL/postinst
97         cp ipkg/postrm.opie ${PKGDIR}/CONTROL/postrm
98         cp share/vlc48x48.png  ${PKGDIR}/usr/share/vlc
99         cp vlc $(PKGDIR)/usr/bin
100         cp ipkg/vlc.opie ${PKGDIR}/opt/QtPalmtop/bin/opie-vlc
101         cp ipkg/vlc.desktop ${PKGDIR}/opt/QtPalmtop/apps/Applications
102
103 install-plugins: install
104         find ./modules/ -name *.so -print -depth | xargs cp $1 ${PKGDIR}/usr/lib/vlc
105         $(STRIP) ${PKGDIR}/usr/lib/vlc
106
107 .PHONY: build clean install install-plugins
108