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 \
51 --with-tuning=strongarm1100 \
52 --with-libiconv-prefix=/usr/local/arm/2.95.3/arm-linux/usr \
53 --with-mad-tree=/home/jpsaman/iPaq/src/libmad-0.15.0b \
54 --with-a52-tree=/home/jpsaman/iPaq/src/a52dec-0.7.4 \
55 --with-faad2-tree=/home/jpsaman/iPaq/src/faad2-20030612 \
56 --with-flac-tree=/home/jpsaman/iPaq/src/flac-1.1.0 \
57 --with-libmpeg2-tree=/home/jpsaman/iPaq/src/mpeg2dec-20030612 \
58 --with-libdvbpsi-tree=/home/jpsaman/iPaq/src/libdvbpsi-0.1.2 \
59 --with-sdl-config-path=/usr/local/arm/2.95.3/arm-linux/opt/QtPalmtop/bin \
60 --with-sdl-prefix=/usr/local/arm/2.95.3/arm-linux/opt/QtPalmtop \
61 --with-qte=/usr/local/arm/2.95.3/arm-linux/opt/QtPalmtop \
62 --with-ffmpeg-tree=/home/jpsaman/iPaq/src/ffmpeg-20030622"
64 export VIDDIR="usr/share/vlc"
65 export PIXDIR="usr/share/pixmaps"
66 #export DESTDIR=/tmp/vlc
67 export DESTDIR=/usr/local/arm/2.95.3/arm-linux
68 export PKGDIR=/home/jpsaman/iPaq/packages/opie-vlc-0.6.1
69 export QTDIR=/usr/local/arm/2.95.3/arm-linux/opt/QtPalmtop
73 ./configure --mandir=$${prefix}/share/man \
74 --infodir=$${prefix}/share/info \
77 $(shell echo $(CONFIG_FLAGS)) \
78 LDFLAGS="-L/usr/local/arm/2.95.3/arm-linux/lib -L/usr/local/arm/2.95.3/arm-linux/opt/QtPalmtop/lib -L/home/jpsaman/iPaq/src/libid3tag-0.15.0b" \
79 CPPFLAGS="-I/usr/local/arm/2.95.3/arm-linux/opt/QtPalmtop/include -I/home/jpsaman/iPaq/src/libid3tag-0.15.0b"
82 # This is ugly -- I know
83 # patch -p0 < ipkg/patch
92 mkdir -p ${PKGDIR}/CONTROL
93 mkdir -p $(PKGDIR)/usr/bin
94 mkdir -p ${PKGDIR}/usr/share/vlc
95 mkdir -p ${PKGDIR}/usr/lib/menu
96 mkdir -p ${PKGDIR}/usr/lib/vlc
97 mkdir -p ${PKGDIR}/opt/QtPalmtop/bin
98 mkdir -p ${PKGDIR}/opt/QtPalmtop/apps/Applications
100 cp ipkg/control.opie $(PKGDIR)/CONTROL/control
101 cp ipkg/postinst.opie ${PKGDIR}/CONTROL/postinst
102 cp ipkg/postrm.opie ${PKGDIR}/CONTROL/postrm
103 cp share/vlc48x48.png ${PKGDIR}/usr/share/vlc
104 cp vlc $(PKGDIR)/usr/bin
105 cp ipkg/vlc.opie ${PKGDIR}/opt/QtPalmtop/bin/opie-vlc
106 cp ipkg/vlc.desktop ${PKGDIR}/opt/QtPalmtop/apps/Applications
108 install-plugins: install
109 find ./modules/ -name *.so -print -depth | xargs cp $1 ${PKGDIR}/usr/lib/vlc
110 $(STRIP) ${PKGDIR}/usr/lib/vlc
112 .PHONY: build clean install install-plugins