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 \
31 --with-tuning=strongarm1100 \
32 --x-includes=/skiff/local/arm-linux/include \
33 --x-libraries=/usr/local/arm/2.95.3/arm-linux/usr/X11R6/lib \
34 --with-mad-tree=/home/jpsaman/iPaq/src/mad-0.14.2b \
35 --with-gtk-config-path=/usr/local/arm/2.95.3/arm-linux/usr/bin \
36 --with-gtk-prefix=/usr/local/arm/2.95.3/arm-linux/usr \
37 --with-sdl-config-path=/usr/local/arm/2.95.3/arm-linux/usr/bin \
38 --with-sdl-prefix=/usr/local/arm/2.95.3/arm-linux/usr \
39 --with-ffmpeg-tree=/home/jpsaman/iPaq/src/ffmpeg"
41 # --with-gpe-prefix=/usr/local/arm/2.95.3/arm-linux/usr \
43 export VIDDIR="usr/share/vlc"
44 export PIXDIR="usr/share/pixmaps"
45 #export DESTDIR=/tmp/vlc
46 export DESTDIR=/usr/local/arm/2.95.3/arm-linux
47 export PKGDIR=/home/jpsaman/iPaq/packages/gpe-vlc-0.5.0
51 ./configure --mandir=$${prefix}/share/man \
52 --infodir=$${prefix}/share/info \
55 $(shell echo $(CONFIG_FLAGS))
57 # This is ugly -- I know
58 # patch -p 0 < ipkg/patch
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
72 cp ipkg/control.gpe $(PKGDIR)/CONTROL/control
73 cp ipkg/postinst.gpe ${PKGDIR}/CONTROL/postinst
74 cp ipkg/postrm.gpe ${PKGDIR}/CONTROL/postrm
75 cp share/familiar-* ${PKGDIR}/usr/share/vlc
76 cp share/vlc32x32.xpm ${PKGDIR}/usr/share/vlc
77 cp share/vlc16x16.xpm ${PKGDIR}/usr/share/vlc
78 cp share/vlc48x48.png ${PKGDIR}/usr/share/vlc
79 cp vlc $(PKGDIR)/usr/bin
80 cp ipkg/vlc.gpe ${PKGDIR}/usr/lib/menu/vlc
82 install-plugins: install
83 find ./ -name *.so | xargs cp ${PKGDIR}/usr/lib/vlc
84 $(STRIP) ${PKGDIR}/usr/lib/vlc
86 .PHONY: build clean install