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 AS=arm-linux-gcc
12 export RANLIB=arm-linux-ranlib
13 export STRIP=arm-linux-strip
14 export CONFIG_FLAGS="--enable-release --prefix=/usr \
34 --with-tuning=strongarm1100 \
35 --x-includes=/skiff/local/arm-linux/include \
36 --x-libraries=/usr/local/arm/2.95.3/arm-linux/usr/X11R6/lib \
37 --with-mad-tree=/home/jpsaman/iPaq/src/mad-0.14.2b \
38 --with-gtk-config-path=/usr/local/arm/2.95.3/arm-linux/usr/bin \
39 --with-gtk-prefix=/usr/local/arm/2.95.3/arm-linux/usr \
40 --with-gpe-prefix=/usr/local/arm/2.95.3/arm-linux/usr \
41 --with-sdl-config-path=/usr/local/arm/2.95.3/arm-linux/usr/bin \
42 --with-sdl-prefix=/usr/local/arm/2.95.3/arm-linux/usr \
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/gpe-vlc-0.5.0
52 ./configure --mandir=$${prefix}/share/man \
53 --infodir=$${prefix}/share/info \
56 $(shell echo $(CONFIG_FLAGS)) \
57 LDFLAGS="-L/usr/local/arm/2.95.3/arm-linux/lib"
60 # This is ugly -- I know
61 # patch -p 0 < ipkg/patch
69 mkdir -p ${PKGDIR}/CONTROL
70 mkdir -p $(PKGDIR)/usr/bin
71 mkdir -p ${PKGDIR}/usr/share/vlc
72 mkdir -p ${PKGDIR}/usr/lib/menu
73 mkdir -p ${PKGDIR}/usr/lib/vlc
75 cp ipkg/control.gpe $(PKGDIR)/CONTROL/control
76 cp ipkg/postinst.gpe ${PKGDIR}/CONTROL/postinst
77 cp ipkg/postrm.gpe ${PKGDIR}/CONTROL/postrm
78 cp share/familiar-* ${PKGDIR}/usr/share/vlc
79 cp share/vlc32x32.xpm ${PKGDIR}/usr/share/vlc
80 cp share/vlc16x16.xpm ${PKGDIR}/usr/share/vlc
81 cp share/vlc48x48.png ${PKGDIR}/usr/share/vlc
82 cp vlc $(PKGDIR)/usr/bin
83 cp ipkg/vlc.gpe ${PKGDIR}/usr/lib/menu/vlc
85 install-plugins: install
86 find ./ -name *.so | xargs cp $1 ${PKGDIR}/usr/lib/vlc/
87 $(STRIP) ${PKGDIR}/usr/lib/vlc/*.so
89 .PHONY: build clean install install-plugins