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