2 # debian/rules for the VideoLAN Client - uses debhelper.
3 # based on Joey Hess's one.
7 export CC=arm-linux-gcc
10 export RANLIB=arm-linux-ranlib
11 export STRIP=arm-linux-strip
13 #export CONFIG_FLAGS="--enable-release --prefix=/usr --disable-gtk --enable-fb --enable-sdl --disable-xvideo --disable-plugins --with-tuning=strongarm1100 --x-includes=/skiff/local/arm-linux/include --x-libraries=/skiff/local/arm-linux/lib/X11 --with-sdl-config-path=/skiff/local/bin --with-mad=/skiff/local/arm-linux"
15 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-sdl-config-path=/usr/local/arm/2.95.3/arm-linux/usr/bin \
41 --with-sdl-prefix=/usr/local/arm/2.95.3/arm-linux/usr \
42 --with-ffmpeg-tree=/home/jpsaman/iPaq/src/ffmpeg"
44 export VIDDIR="usr/share/vlc"
45 export PIXDIR="usr/share/pixmaps"
46 #export DESTDIR=/tmp/vlc
47 export DESTDIR=/usr/local/arm/2.95.3/arm-linux
48 export PKGDIR=/home/jpsaman/iPaq/packages/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
68 mkdir -p ${PKGDIR}/CONTROL
69 mkdir -p $(PKGDIR)/usr/bin
70 mkdir -p ${PKGDIR}/usr/share/vlc
71 # mkdir -p ${PKGDIR}/usr/lib/menu
72 mkdir -p ${PKGDIR}/usr/lib/vlc
74 cp ipkg/control $(PKGDIR)/CONTROL/control
75 cp ipkg/postinst ${PKGDIR}/CONTROL/postinst
76 cp ipkg/postrm ${PKGDIR}/CONTROL/postrm
77 cp share/familiar-* ${PKGDIR}/usr/share/vlc
78 cp share/vlc32x32.xpm ${PKGDIR}/usr/share/vlc
79 cp share/vlc16x16.xpm ${PKGDIR}/usr/share/vlc
80 cp share/vlc48x48.png ${PKGDIR}/usr/share/vlc
81 cp vlc $(PKGDIR)/usr/bin
82 # cp ipkg/vlc.gpe ${PKGDIR}/usr/lib/menu/vlc
84 install-plugins: install
85 find ./ -name *.so | xargs cp ${PKGDIR}/usr/lib/vlc
86 $(STRIP) ${PKGDIR}/usr/lib/vlc
88 .PHONY: build clean install