]> git.sesse.net Git - vlc/blob - ipkg/rules.opie
Updated release numbering for all ipk's
[vlc] / ipkg / rules.opie
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 # export PATH="$PATH:/usr/local/arm/2.95.3/bin"
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 export CONFIG_FLAGS="--enable-release --prefix=/usr \
14         --disable-plugins \
15         --disable-gtk \
16         --disable-gnome \
17         --disable-qt \
18         --disable-kde \
19         --enable-qte \
20         --disable-x11 \
21         --enable-fb \
22         --enable-sdl \
23         --disable-alsa \
24         --disable-xvideo \
25         --disable-dvd \
26         --disable-dvdread \
27         --disable-vcd \
28         --disable-maxosx \
29         --enable-mad \
30         --enable-ffmpeg \
31         --disable-familiar \
32         --with-tuning=strongarm1100 \
33         --with-mad-tree=/home/jpsaman/iPaq/src/mad-0.14.2b \
34         --with-sdl-config-path=/usr/local/arm/2.95.3/arm-linux/opt/QtPalmtop/bin \
35         --with-sdl-prefix=/usr/local/arm/2.95.3/arm-linux/opt/QtPalmtop \
36         --with-qte=/usr/local/arm/2.95.3/arm-linux/opt/QtPalmtop \
37         --with-ffmpeg-tree=/home/jpsaman/svn/ipaq/Work/ffmpeg"
38 #       --with-ffmpeg-tree=/home/jpsaman/iPaq/src/ffmpeg
39
40 export VIDDIR="usr/share/vlc"
41 export PIXDIR="usr/share/pixmaps"
42 #export DESTDIR=/tmp/vlc
43 export DESTDIR=/usr/local/arm/2.95.3/arm-linux
44 export PKGDIR=/home/jpsaman/iPaq/packages/opie-vlc-0.5.1
45 export QTDIR=/usr/local/arm/2.95.3/arm-linux/opt/QtPalmtop
46
47 build: build-stamp
48 config:
49         ./configure --mandir=$${prefix}/share/man \
50                 --infodir=$${prefix}/share/info \
51                 --host=arm-linux \
52                 --target=arm-linux \
53                 $(shell echo $(CONFIG_FLAGS))
54
55 build-stamp:
56 # This is ugly -- I know
57 #       patch -p0 < ipkg/patch
58
59         $(MAKE)
60
61 clean:
62         -$(MAKE) distclean
63
64 install: build
65         rm -fr ${PKGDIR}/
66         mkdir -p ${PKGDIR}/CONTROL
67         mkdir -p $(PKGDIR)/usr/bin
68         mkdir -p ${PKGDIR}/usr/share/vlc
69         mkdir -p ${PKGDIR}/usr/lib/menu
70         mkdir -p ${PKGDIR}/usr/lib/vlc
71         mkdir -p ${PKGDIR}/opt/QtPalmtop/bin
72         mkdir -p ${PKGDIR}/opt/QtPalmtop/apps/Applications
73         $(STRIP) vlc
74         cp ipkg/control.opie $(PKGDIR)/CONTROL/control
75         cp ipkg/postinst.opie ${PKGDIR}/CONTROL/postinst
76         cp ipkg/postrm.opie ${PKGDIR}/CONTROL/postrm
77         cp share/vlc48x48.png  ${PKGDIR}/usr/share/vlc
78         cp vlc $(PKGDIR)/usr/bin
79         cp ipkg/vlc.opie ${PKGDIR}/opt/QtPalmtop/bin/opie-vlc
80         cp ipkg/vlc.desktop ${PKGDIR}/opt/QtPalmtop/apps/Applications
81
82 install-plugins: install
83         find ./modules/ -name *.so -print -depth | xargs cp $1 ${PKGDIR}/usr/lib/vlc
84         $(STRIP) ${PKGDIR}/usr/lib/vlc
85
86 .PHONY: build clean install install-plugins
87