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 \
35 --with-libmpeg2-prefix=/usr/local/arm/2.95.3/arm-linux/usr \
39 --with-tuning=strongarm1100 \
40 --x-includes=/skiff/local/arm-linux/include \
41 --x-libraries=/usr/local/arm/2.95.3/arm-linux/usr/X11R6/lib \
42 --with-mad-tree=/home/jpsaman/iPaq/src/mad-0.14.2b \
43 --with-gtk-config-path=/usr/local/arm/2.95.3/arm-linux/usr/bin \
44 --with-gtk-prefix=/usr/local/arm/2.95.3/arm-linux/usr \
45 --with-sdl-config-path=/usr/local/arm/2.95.3/arm-linux/usr/bin \
46 --with-sdl-prefix=/usr/local/arm/2.95.3/arm-linux/usr \
47 --with-ffmpeg-tree=/home/jpsaman/svn/ipaq/Work/ffmpeg"
48 # --with-ffmpeg-tree=/home/jpsaman/iPaq/src/ffmpeg"
50 export VIDDIR="usr/share/vlc"
51 export PIXDIR="usr/share/pixmaps"
52 #export DESTDIR=/tmp/vlc
53 export DESTDIR=/usr/local/arm/2.95.3/arm-linux
54 export PKGDIR=/home/jpsaman/iPaq/packages/vlc-0.6.0
57 ./configure --mandir=$${prefix}/share/man \
58 --infodir=$${prefix}/share/info \
61 $(shell echo $(CONFIG_FLAGS))
63 # This is ugly -- I know
64 # patch -p 0 < ipkg/patch
74 mkdir -p ${PKGDIR}/CONTROL
75 mkdir -p $(PKGDIR)/usr/bin
76 mkdir -p ${PKGDIR}/usr/share/vlc
77 # mkdir -p ${PKGDIR}/usr/lib/menu
78 mkdir -p ${PKGDIR}/usr/lib/vlc
80 cp ipkg/control $(PKGDIR)/CONTROL/control
81 cp ipkg/postinst ${PKGDIR}/CONTROL/postinst
82 cp ipkg/postrm ${PKGDIR}/CONTROL/postrm
83 cp share/familiar-* ${PKGDIR}/usr/share/vlc
84 cp share/vlc32x32.xpm ${PKGDIR}/usr/share/vlc
85 cp share/vlc16x16.xpm ${PKGDIR}/usr/share/vlc
86 cp share/vlc48x48.png ${PKGDIR}/usr/share/vlc
87 cp vlc $(PKGDIR)/usr/bin
88 # cp ipkg/vlc.gpe ${PKGDIR}/usr/lib/menu/vlc
90 install-plugins: install
91 find ./ -name *.so | xargs cp ${PKGDIR}/usr/lib/vlc
92 $(STRIP) ${PKGDIR}/usr/lib/vlc
94 .PHONY: build clean install