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 \
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/iPaq/src/ffmpeg"
39 export VIDDIR
="usr/share/vlc"
40 export PIXDIR
="usr/share/pixmaps"
41 #export DESTDIR=/tmp/vlc
42 export DESTDIR
=/usr
/local
/arm
/2.95.3/arm-linux
43 export PKGDIR
=/home
/jpsaman
/iPaq
/packages
/opie-vlc-0.5
.0
44 export QTDIR
=/usr
/local
/arm
/2.95.3/arm-linux
/opt
/QtPalmtop
48 .
/configure
--mandir=$${prefix}/share
/man \
49 --infodir=$${prefix}/share
/info \
52 $(shell echo
$(CONFIG_FLAGS
))
55 # This is ugly -- I know
56 # patch -p0 < ipkg/patch
65 mkdir
-p
${PKGDIR}/CONTROL
66 mkdir
-p
$(PKGDIR
)/usr
/bin
67 mkdir
-p
${PKGDIR}/usr
/share
/vlc
68 mkdir
-p
${PKGDIR}/usr
/lib
/menu
69 mkdir
-p
${PKGDIR}/usr
/lib
/vlc
70 mkdir
-p
${PKGDIR}/opt
/QtPalmtop
/bin
71 mkdir
-p
${PKGDIR}/opt
/QtPalmtop
/apps
/Applications
73 cp ipkg
/control.opie
$(PKGDIR
)/CONTROL
/control
74 cp ipkg
/postinst.opie
${PKGDIR}/CONTROL
/postinst
75 cp ipkg
/postrm.opie
${PKGDIR}/CONTROL
/postrm
76 cp share
/vlc48x48.png
${PKGDIR}/usr
/share
/vlc
77 cp vlc
$(PKGDIR
)/usr
/bin
78 cp ipkg
/vlc.opie
${PKGDIR}/opt
/QtPalmtop
/bin
/opie-vlc
79 cp ipkg
/vlc.desktop
${PKGDIR}/opt
/QtPalmtop
/apps
/Applications
81 install-plugins
: install
82 find .
/modules
/ -name
*.so
-print -depth | xargs cp
$1 ${PKGDIR}/usr
/lib
/vlc
83 $(STRIP
) ${PKGDIR}/usr
/lib
/vlc
85 .PHONY
: build
clean install install-plugins