]> git.sesse.net Git - vlc/commitdiff
Scripts for building and packaging vlc on Zaurus PDA.
authorJean-Paul Saman <jpsaman@videolan.org>
Wed, 12 Feb 2003 23:26:54 +0000 (23:26 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Wed, 12 Feb 2003 23:26:54 +0000 (23:26 +0000)
ipkg/control.zaurus [new file with mode: 0644]
ipkg/postinst.zaurus [new file with mode: 0755]
ipkg/postrm.zaurus [new file with mode: 0755]
ipkg/rules.zaurus [new file with mode: 0755]
ipkg/vlc.zaurus [new file with mode: 0755]

diff --git a/ipkg/control.zaurus b/ipkg/control.zaurus
new file mode 100644 (file)
index 0000000..acba2b1
--- /dev/null
@@ -0,0 +1,17 @@
+Package: zaurus-vlc
+Section: graphics
+Priority: optional
+Version: 0.5.1
+Release: test1
+Conflicts: gpe-apps, gpe-vlc, vlc, libsdl
+Architecture: arm
+Maintainer: Jean-Paul Saman <jpsaman@wxs.nl>
+Depends: libc6, opie-oipkg, opie-base, opie-multikey, opie-handwriting, opie-volumeapplet, opie-embeddedkonsole, opie-handwriting, opie-irdaapplet, opie-launcher-settings, opie-networksetup, opie-libsdl, ffmpeg
+Copyright: GPL
+Description: VideoLAN Client is a free network-aware MPEG and DVD player.
+ VideoLAN is a free MPEG1/2 software solution licensed under GPL. The original 
+ source can be found on: 
+ http://www.videolan.org/pub/videolan/vlc/
+ The VideoLAN Client allows to play MPEG1, MPEG2 Transport Streams and 
+ Program Streams, MP3, DivX and lots of other codecs  from the network or 
+ from a file, as well as direct DVD playback. 
diff --git a/ipkg/postinst.zaurus b/ipkg/postinst.zaurus
new file mode 100755 (executable)
index 0000000..5f01ed4
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+ldconfig
+if [ -x /usr/share/vlc ] ; then
+   ln -s /usr/share/vlc /opt/QtPalmtop/sharp/pics/vlc
+fi
+exit 0
diff --git a/ipkg/postrm.zaurus b/ipkg/postrm.zaurus
new file mode 100755 (executable)
index 0000000..8ce67c0
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+ldconfig
+[ -x /opt/QtPalmtop/sharp/pics/vlc ] || rm /opt/QtPalmtop/sharp/pics/vlc
+exit 0
+
diff --git a/ipkg/rules.zaurus b/ipkg/rules.zaurus
new file mode 100755 (executable)
index 0000000..75e07c8
--- /dev/null
@@ -0,0 +1,86 @@
+#!/usr/bin/make -f
+# debian/rules for the VideoLAN Client - uses debhelper.
+# based on Joey Hess's one.
+# Kludged for ipkg
+
+# export PATH="$PATH:/usr/local/arm/2.95.3/bin"
+# Compilation options
+export CC=arm-linux-gcc
+export LD=arm-linux-ld
+export AR=arm-linux-ar
+export RANLIB=arm-linux-ranlib
+export STRIP=arm-linux-strip
+export CONFIG_FLAGS="--enable-release --prefix=/usr \
+       --disable-plugins \
+       --disable-gtk \
+       --disable-gnome \
+       --disable-qt \
+       --disable-kde \
+       --enable-qte \
+       --disable-x11 \
+       --enable-fb \
+       --enable-sdl \
+       --disable-alsa \
+       --disable-xvideo \
+       --disable-dvd \
+       --disable-dvdread \
+       --disable-vcd \
+       --disable-maxosx \
+       --enable-mad \
+       --enable-ffmpeg \
+       --disable-familiar \
+       --with-tuning=strongarm1100 \
+       --with-mad-tree=/home/jpsaman/iPaq/src/mad-0.14.2b \
+       --with-sdl-config-path=/usr/local/arm/2.95.3/arm-linux/opt/QtPalmtop/bin \
+       --with-sdl-prefix=/usr/local/arm/2.95.3/arm-linux/opt/QtPalmtop \
+       --with-qte=/usr/local/arm/2.95.3/arm-linux/opt/QtPalmtop \
+       --with-ffmpeg-tree=/home/jpsaman/iPaq/src/ffmpeg"
+
+export VIDDIR="usr/share/vlc"
+export PIXDIR="usr/share/pixmaps"
+#export DESTDIR=/tmp/vlc
+export DESTDIR=/usr/local/arm/2.95.3/arm-linux
+export PKGDIR=/home/jpsaman/iPaq/packages/zaurus-vlc-0.5.1
+export QTDIR=/usr/local/arm/2.95.3/arm-linux/opt/QtPalmtop
+
+build: build-stamp
+config:
+       ./configure --mandir=$${prefix}/share/man \
+               --infodir=$${prefix}/share/info \
+               --host=arm-linux \
+               --target=arm-linux \
+               $(shell echo $(CONFIG_FLAGS))
+
+build-stamp:
+# This is ugly -- I know
+#      patch -p0 < ipkg/patch
+
+       $(MAKE)
+
+clean:
+       -$(MAKE) distclean
+
+install: build
+       rm -fr ${PKGDIR}/
+       mkdir -p ${PKGDIR}/CONTROL
+       mkdir -p $(PKGDIR)/usr/bin
+       mkdir -p ${PKGDIR}/usr/share/vlc
+       mkdir -p ${PKGDIR}/usr/lib/menu
+       mkdir -p ${PKGDIR}/usr/lib/vlc
+       mkdir -p ${PKGDIR}/opt/QtPalmtop/sharp/bin
+       mkdir -p ${PKGDIR}/opt/QtPalmtop/sharp/apps/Applications
+       $(STRIP) vlc
+       cp ipkg/control.zaurus $(PKGDIR)/CONTROL/control
+       cp ipkg/postinst.zaurus ${PKGDIR}/CONTROL/postinst
+       cp ipkg/postrm.zaurus ${PKGDIR}/CONTROL/postrm
+       cp share/vlc48x48.png  ${PKGDIR}/usr/share/vlc
+       cp vlc $(PKGDIR)/usr/bin
+       cp ipkg/vlc.zaurus ${PKGDIR}/opt/QtPalmtop/sharp/bin/opie-vlc
+       cp ipkg/vlc.desktop ${PKGDIR}/opt/QtPalmtop/sharp/apps/Applications
+
+install-plugins: install
+       find ./modules/ -name *.so -print -depth | xargs cp $1 ${PKGDIR}/usr/lib/vlc
+       $(STRIP) ${PKGDIR}/usr/lib/vlc
+
+.PHONY: build clean install install-plugins
+
diff --git a/ipkg/vlc.zaurus b/ipkg/vlc.zaurus
new file mode 100755 (executable)
index 0000000..c530969
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+export QTDIR=/opt/QtPalmtop/sharp
+export LD_LIBRARY_PATH=.:/usr/X11R6/lib:/opt/QtPalmtop/sharp/lib:/usr/lib/vlc
+if [ "$*" = "" ] ; then
+   /usr/bin/vlc udp://@:1234
+else
+   /usr/bin/vlc $*
+fi
+