2001-11-12 12:30:44 +01:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
# debian/rules for the VideoLAN Client - uses debhelper.
|
|
|
|
# based on Joey Hess's one.
|
|
|
|
# Kludged for ipkg
|
|
|
|
|
|
|
|
# Compilation options
|
|
|
|
export CC=arm-linux-gcc
|
|
|
|
export LD=arm-linux-ld
|
2002-12-24 21:11:45 +01:00
|
|
|
export AR=arm-linux-ar
|
|
|
|
export RANLIB=arm-linux-ranlib
|
2001-11-12 12:30:44 +01:00
|
|
|
export STRIP=arm-linux-strip
|
2002-12-24 21:11:45 +01:00
|
|
|
|
2002-12-24 20:08:21 +01:00
|
|
|
export CONFIG_FLAGS="--enable-release --prefix=/usr \
|
|
|
|
--disable-plugins \
|
|
|
|
--disable-gtk \
|
|
|
|
--disable-gnome \
|
|
|
|
--disable-qt \
|
|
|
|
--disable-kde \
|
|
|
|
--disable-qte \
|
2003-04-09 22:07:47 +02:00
|
|
|
--disable-xosd \
|
|
|
|
--enable-dummy \
|
2002-12-24 20:08:21 +01:00
|
|
|
--enable-fb \
|
|
|
|
--enable-sdl \
|
|
|
|
--enable-oss \
|
|
|
|
--disable-alsa \
|
2003-01-19 23:16:13 +01:00
|
|
|
--enable-x11 \
|
2002-12-24 20:08:21 +01:00
|
|
|
--disable-xvideo \
|
|
|
|
--disable-dvd \
|
|
|
|
--disable-dvdread \
|
|
|
|
--disable-vcd \
|
|
|
|
--disable-maxosx \
|
2003-05-15 22:28:00 +02:00
|
|
|
--disable-xosd \
|
|
|
|
--disable-freetype \
|
2003-05-20 22:09:19 +02:00
|
|
|
--enable-flac \
|
2003-05-15 22:28:00 +02:00
|
|
|
--enable-libmpeg2 \
|
2002-12-24 20:08:21 +01:00
|
|
|
--enable-mad \
|
|
|
|
--enable-ffmpeg \
|
|
|
|
--enable-familiar \
|
|
|
|
--with-tuning=strongarm1100 \
|
|
|
|
--x-includes=/skiff/local/arm-linux/include \
|
|
|
|
--x-libraries=/usr/local/arm/2.95.3/arm-linux/usr/X11R6/lib \
|
|
|
|
--with-mad-tree=/home/jpsaman/iPaq/src/mad-0.14.2b \
|
|
|
|
--with-gtk-config-path=/usr/local/arm/2.95.3/arm-linux/usr/bin \
|
|
|
|
--with-gtk-prefix=/usr/local/arm/2.95.3/arm-linux/usr \
|
|
|
|
--with-sdl-config-path=/usr/local/arm/2.95.3/arm-linux/usr/bin \
|
|
|
|
--with-sdl-prefix=/usr/local/arm/2.95.3/arm-linux/usr \
|
2003-05-20 22:09:19 +02:00
|
|
|
--with-ffmpeg-tree=/home/jpsaman/svn/tmp/ffmpeg-20030517"
|
2002-12-24 20:08:21 +01:00
|
|
|
|
2002-12-15 23:54:58 +01:00
|
|
|
export VIDDIR="usr/share/vlc"
|
2001-11-12 12:30:44 +01:00
|
|
|
export PIXDIR="usr/share/pixmaps"
|
2002-12-24 21:11:45 +01:00
|
|
|
#export DESTDIR=/tmp/vlc
|
2002-12-08 17:16:19 +01:00
|
|
|
export DESTDIR=/usr/local/arm/2.95.3/arm-linux
|
2003-05-18 22:54:43 +02:00
|
|
|
export PKGDIR=/home/jpsaman/iPaq/packages/vlc-0.6.0
|
2001-11-12 12:30:44 +01:00
|
|
|
|
2002-12-24 20:08:21 +01:00
|
|
|
config:
|
2001-11-12 12:30:44 +01:00
|
|
|
./configure --mandir=$${prefix}/share/man \
|
|
|
|
--infodir=$${prefix}/share/info \
|
2002-12-24 20:08:21 +01:00
|
|
|
--host=arm-linux \
|
|
|
|
--target=arm-linux \
|
2003-05-20 22:09:19 +02:00
|
|
|
$(shell echo $(CONFIG_FLAGS)) \
|
|
|
|
LDFLAGS="-L/usr/local/arm/2.95.3/arm-linux/lib -L/usr/local/arm/2.95.3/arm-linux/usr/lib" \
|
|
|
|
CPPFLAGS="-I/usr/local/arm/2.95.3/arm-linux/usr/include"
|
|
|
|
|
2002-12-24 21:11:45 +01:00
|
|
|
#patch:
|
2001-12-04 14:47:46 +01:00
|
|
|
# This is ugly -- I know
|
2002-12-24 21:11:45 +01:00
|
|
|
# patch -p 0 < ipkg/patch
|
2001-12-04 14:47:46 +01:00
|
|
|
|
2002-12-24 20:08:21 +01:00
|
|
|
build:
|
2001-11-12 12:30:44 +01:00
|
|
|
$(MAKE)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-$(MAKE) distclean
|
|
|
|
|
|
|
|
install: build
|
2002-12-24 21:11:45 +01:00
|
|
|
rm -fr ${PKGDIR}/
|
2002-12-24 20:08:21 +01:00
|
|
|
mkdir -p ${PKGDIR}/CONTROL
|
2002-12-08 17:16:19 +01:00
|
|
|
mkdir -p $(PKGDIR)/usr/bin
|
2002-12-24 20:08:21 +01:00
|
|
|
mkdir -p ${PKGDIR}/usr/share/vlc
|
|
|
|
# mkdir -p ${PKGDIR}/usr/lib/menu
|
|
|
|
mkdir -p ${PKGDIR}/usr/lib/vlc
|
2001-11-12 12:30:44 +01:00
|
|
|
$(STRIP) vlc
|
2002-12-24 20:08:21 +01:00
|
|
|
cp ipkg/control $(PKGDIR)/CONTROL/control
|
|
|
|
cp ipkg/postinst ${PKGDIR}/CONTROL/postinst
|
|
|
|
cp ipkg/postrm ${PKGDIR}/CONTROL/postrm
|
|
|
|
cp share/familiar-* ${PKGDIR}/usr/share/vlc
|
|
|
|
cp share/vlc32x32.xpm ${PKGDIR}/usr/share/vlc
|
|
|
|
cp share/vlc16x16.xpm ${PKGDIR}/usr/share/vlc
|
|
|
|
cp share/vlc48x48.png ${PKGDIR}/usr/share/vlc
|
2002-12-08 17:16:19 +01:00
|
|
|
cp vlc $(PKGDIR)/usr/bin
|
2002-12-24 20:08:21 +01:00
|
|
|
# cp ipkg/vlc.gpe ${PKGDIR}/usr/lib/menu/vlc
|
2002-12-08 17:16:19 +01:00
|
|
|
|
|
|
|
install-plugins: install
|
2002-12-24 20:08:21 +01:00
|
|
|
find ./ -name *.so | xargs cp ${PKGDIR}/usr/lib/vlc
|
2002-12-15 23:54:58 +01:00
|
|
|
$(STRIP) ${PKGDIR}/usr/lib/vlc
|
2001-11-12 12:30:44 +01:00
|
|
|
|
|
|
|
.PHONY: build clean install
|
|
|
|
|