2 # debian/rules for the VLC media player - uses debhelper.
3 # based on Joey Hess's one.
8 export VIDDIR="usr/share/vlc"
9 export PIXDIR="usr/share/pixmaps"
10 export DESTDIR=${HOME}/arm-linux
11 export PKGDIR=${HOME}/packages/opie-vlc-$(VERSION)
12 export QTDIR=${HOME}/arm-linux/opt/QtPalmtop
15 export CONFIG_FLAGS="--enable-release --prefix=/usr \
52 --with-tuning=strongarm1100 \
53 --with-libiconv-prefix=${HOME}/arm-linux/usr \
54 --with-mad-tree=${HOME}/arm-linux/vlc-${VERSION}/libmad-0.15.0b \
55 --with-a52-tree=${HOME}/arm-linux/vlc-${VERSION}/a52dec-0.7.4 \
56 --with-faad2-tree=${HOME}/arm-linux/vlc-${VERSION}/faad2-20030612 \
57 --with-flac-tree=${HOME}/arm-linux/vlc-${VERSION}/flac-1.1.0 \
58 --with-libmpeg2-tree=${HOME}/arm-linux/vlc-${VERSION}/mpeg2dec-20030612 \
59 --with-libdvbpsi-tree=${HOME}/arm-linux/vlc-${VERSION}/libdvbpsi-0.1.2 \
61 --with-ffmpeg-tree=${HOME}/arm-linux/vlc-${VERSION}/ffmpeg-20030622"
65 ./configure --mandir=$${prefix}/share/man \
66 --infodir=$${prefix}/share/info \
69 $(shell echo $(CONFIG_FLAGS)) \
70 LDFLAGS="-L${HOME}/arm-linux/lib \
72 -L${HOME}/arm-linux/vlc-${VERSION}/libid3tag-0.15.0b" \
73 CPPFLAGS="-I${QTDIR}/include \
74 -I${HOME}/arm-linux/vlc-${VERSION}/libid3tag-0.15.0b"
77 # This is ugly -- I know
78 # patch -p0 < ipkg/patch
87 mkdir -p ${PKGDIR}/CONTROL
88 mkdir -p $(PKGDIR)/usr/bin
89 mkdir -p ${PKGDIR}/usr/share/vlc
90 mkdir -p ${PKGDIR}/usr/lib/menu
91 mkdir -p ${PKGDIR}/usr/lib/vlc
92 mkdir -p ${PKGDIR}/opt/QtPalmtop/bin
93 mkdir -p ${PKGDIR}/opt/QtPalmtop/apps/Applications
95 cp ipkg/control.opie $(PKGDIR)/CONTROL/control
96 cp ipkg/postinst.opie ${PKGDIR}/CONTROL/postinst
97 cp ipkg/postrm.opie ${PKGDIR}/CONTROL/postrm
98 cp share/vlc48x48.png ${PKGDIR}/usr/share/vlc
99 cp vlc $(PKGDIR)/usr/bin
100 cp ipkg/vlc.opie ${PKGDIR}/opt/QtPalmtop/bin/opie-vlc
101 cp ipkg/vlc.desktop ${PKGDIR}/opt/QtPalmtop/apps/Applications
103 install-plugins: install
104 find ./modules/ -name *.so -print -depth | xargs cp $1 ${PKGDIR}/usr/lib/vlc
105 $(STRIP) ${PKGDIR}/usr/lib/vlc
107 .PHONY: build clean install install-plugins