2 # debian/rules for the VideoLAN Client - uses debhelper.
3 # based on Joey Hess's one.
6 # export PATH="$PATH:/usr/local/arm/2.95.3/bin"
8 export CC=arm-linux-gcc
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 \
34 --with-libmpeg2-prefix=/usr/local/arm/2.95.3/arm-linux/usr \
38 --with-tuning=strongarm1100 \
39 --with-mad-tree=/home/jpsaman/iPaq/src/mad-0.14.2b \
40 --with-sdl-config-path=/usr/local/arm/2.95.3/arm-linux/opt/QtPalmtop/bin \
41 --with-sdl-prefix=/usr/local/arm/2.95.3/arm-linux/opt/QtPalmtop \
42 --with-qte=/usr/local/arm/2.95.3/arm-linux/opt/QtPalmtop \
43 --with-ffmpeg-tree=/home/jpsaman/iPaq/src/ffmpeg"
45 export VIDDIR="usr/share/vlc"
46 export PIXDIR="usr/share/pixmaps"
47 #export DESTDIR=/tmp/vlc
48 export DESTDIR=/usr/local/arm/2.95.3/arm-linux
49 export PKGDIR=/home/jpsaman/iPaq/packages/zaurus-vlc-0.6.0
50 export QTDIR=/usr/local/arm/2.95.3/arm-linux/opt/QtPalmtop
54 ./configure --mandir=$${prefix}/share/man \
55 --infodir=$${prefix}/share/info \
58 $(shell echo $(CONFIG_FLAGS))
61 # This is ugly -- I know
62 # patch -p0 < ipkg/patch
71 mkdir -p ${PKGDIR}/CONTROL
72 mkdir -p $(PKGDIR)/usr/bin
73 mkdir -p ${PKGDIR}/usr/share/vlc
74 mkdir -p ${PKGDIR}/usr/lib/menu
75 mkdir -p ${PKGDIR}/usr/lib/vlc
76 mkdir -p ${PKGDIR}/opt/QtPalmtop/sharp/bin
77 mkdir -p ${PKGDIR}/opt/QtPalmtop/sharp/apps/Applications
79 cp ipkg/control.zaurus $(PKGDIR)/CONTROL/control
80 cp ipkg/postinst.zaurus ${PKGDIR}/CONTROL/postinst
81 cp ipkg/postrm.zaurus ${PKGDIR}/CONTROL/postrm
82 cp share/vlc48x48.png ${PKGDIR}/usr/share/vlc
83 cp vlc $(PKGDIR)/usr/bin
84 cp ipkg/vlc.zaurus ${PKGDIR}/opt/QtPalmtop/sharp/bin/opie-vlc
85 cp ipkg/vlc.zaurus ${PKGDIR}/opt/QtPalmtop/sharp/bin/zaurus-vlc
86 cp ipkg/vlc.desktop ${PKGDIR}/opt/QtPalmtop/sharp/apps/Applications
88 install-plugins: install
89 find ./modules/ -name *.so -print -depth | xargs cp $1 ${PKGDIR}/usr/lib/vlc
90 $(STRIP) ${PKGDIR}/usr/lib/vlc
92 .PHONY: build clean install install-plugins