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 \
38 --with-tuning=strongarm1100 \
39 --with-mad-tree=/home/jpsaman/iPaq/src/mad-0.14.2b \
40 --with-sdl-config-path=/usr/local/arm/2.95.3/arm-linux/opt/QtPalmtop/bin \
41 --with-sdl-prefix=/usr/local/arm/2.95.3/arm-linux/opt/QtPalmtop \
42 --with-qte=/usr/local/arm/2.95.3/arm-linux/opt/QtPalmtop \
43 --with-ffmpeg-tree=/home/jpsaman/svn/tmp/ffmpeg-20030517"
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/opie-vlc-0.6.0
50 export QTDIR=/usr/local/arm/2.95.3/arm-linux/opt/QtPalmtop
54 ./configure --mandir=$${prefix}/share/man \
55 --infodir=$${prefix}/share/info \
58 $(shell echo $(CONFIG_FLAGS)) \
59 LDFLAGS="-L/usr/local/arm/2.95.3/arm-linux/lib -L/usr/local/arm/2.95.3/arm-linux/lib -L/usr/local/arm/2.95.3/arm-linux/opt/QtPalmtop/lib" \
60 CPPFLAGS="-I/usr/local/arm/2.95.3/arm-linux/usr/include -I/usr/local/arm/2.95.3/arm-linux/opt/QtPalmtop/include"
63 # This is ugly -- I know
64 # patch -p0 < ipkg/patch
73 mkdir -p ${PKGDIR}/CONTROL
74 mkdir -p $(PKGDIR)/usr/bin
75 mkdir -p ${PKGDIR}/usr/share/vlc
76 mkdir -p ${PKGDIR}/usr/lib/menu
77 mkdir -p ${PKGDIR}/usr/lib/vlc
78 mkdir -p ${PKGDIR}/opt/QtPalmtop/bin
79 mkdir -p ${PKGDIR}/opt/QtPalmtop/apps/Applications
81 cp ipkg/control.opie $(PKGDIR)/CONTROL/control
82 cp ipkg/postinst.opie ${PKGDIR}/CONTROL/postinst
83 cp ipkg/postrm.opie ${PKGDIR}/CONTROL/postrm
84 cp share/vlc48x48.png ${PKGDIR}/usr/share/vlc
85 cp vlc $(PKGDIR)/usr/bin
86 cp ipkg/vlc.opie ${PKGDIR}/opt/QtPalmtop/bin/opie-vlc
87 cp ipkg/vlc.desktop ${PKGDIR}/opt/QtPalmtop/apps/Applications
89 install-plugins: install
90 find ./modules/ -name *.so -print -depth | xargs cp $1 ${PKGDIR}/usr/lib/vlc
91 $(STRIP) ${PKGDIR}/usr/lib/vlc
93 .PHONY: build clean install install-plugins