~ubuntu-branches/ubuntu/maverick/vlc/maverick

« back to all changes in this revision

Viewing changes to extras/package/ipkg/rules.zaurus

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-09-17 21:56:14 UTC
  • mfrom: (1.1.17 upstream)
  • Revision ID: james.westby@ubuntu.com-20080917215614-tj0vx8xzd57e52t8
Tags: 0.9.2-1ubuntu1
* New Upstream Release, exception granted by
    - dktrkranz, norsetto, Hobbsee (via irc). LP: #270404

Changes done in ubuntu:

* add libxul-dev to build-depends
* make sure that vlc is build against libxul in configure. This doesn't
  change anything in the package, but makes it more robust if building
  in an 'unclean' chroot or when modifying the package.
* debian/control: make Vcs-* fields point to the motumedia branch
* add libx264-dev and libass-dev to build-depends
  LP: #210354, #199870
* actually enable libass support by passing --enable-libass to configure
* enable libdca: add libdca-dev to build depends and --enable-libdca
* install the x264 plugin.

Changes already in the pkg-multimedia branch in debian:

* don't install usr/share/vlc/mozilla in debian/mozilla-plugin-vlc.install  
* new upstream .desktop file now registers flash video mimetype LP: #261567
* add Xb-Npp-Applications to mozilla-plugin-vlc
* remove duplicate entries in debian/vlc-nox.install

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# debian/rules for the VLC media player - uses debhelper.
 
3
# based on Joey Hess's one.
 
4
# Kludged for ipkg
 
5
 
 
6
VERSION=0.8.0
 
7
 
 
8
export VIDDIR="usr/share/vlc"
 
9
export PIXDIR="usr/share/pixmaps"
 
10
export DESTDIR=${HOME}/arm-linux
 
11
export PKGDIR=${HOME}/packages/zaurus-vlc-$(VERSION)
 
12
export QTDIR=${HOME}/arm-linux/opt/QtPalmtop
 
13
 
 
14
# Compilation options
 
15
export CONFIG_FLAGS="--enable-release --prefix=/usr \
 
16
        --disable-plugins \
 
17
        --disable-gtk \
 
18
        --disable-gtk2 \
 
19
        --disable-gnome \
 
20
        --disable-gnome2 \
 
21
        --disable-qt \
 
22
        --disable-kde \
 
23
        --disable-xosd \
 
24
        --disable-ogg \
 
25
        --disable-tarkin \
 
26
        --disable-tremor \
 
27
        --disable-theorea \
 
28
        --enable-qte \
 
29
        --disable-x11 \
 
30
        --disable-xvideo \
 
31
        --enable-dummy \
 
32
        --enable-v4l \
 
33
        --enable-sout \
 
34
        --enable-fb \
 
35
        --disable-sdl \
 
36
        --enable-oss \
 
37
        --disable-alsa \
 
38
        --disable-dvd \
 
39
        --disable-dvdread \
 
40
        --disable-vcd \
 
41
        --disable-maxosx \
 
42
        --disable-freetype \
 
43
        --enable-a52 \
 
44
        --enable-faad2 \
 
45
        --enable-flac \
 
46
        --enable-libmpeg2 \
 
47
        --enable-libdvbpsi \
 
48
        --disable-mkv \
 
49
        --enable-mad \
 
50
        --enable-ffmpeg \
 
51
        --disable-pda \
 
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 \
 
60
        --with-qte=${QTDIR} \
 
61
        --with-ffmpeg-tree=${HOME}/arm-linux/vlc-${VERSION}/ffmpeg-20030622"
 
62
 
 
63
build: build-stamp
 
64
config:
 
65
        ./configure --mandir=$${prefix}/share/man \
 
66
                --infodir=$${prefix}/share/info \
 
67
                --host=arm-linux \
 
68
                --target=arm-linux \
 
69
                $(shell echo $(CONFIG_FLAGS)) \
 
70
        LDFLAGS="-L${HOME}/arm-linux/lib \
 
71
                 -L${HOME}/arm-linux/opt/QtPalmtop/lib \
 
72
                 -L${HOME}/arm-linux/vlc-${VERSION}/libid3tag-0.15.0b" \
 
73
        CPPFLAGS="-I${HOME}/arm-linux/opt/QtPalmtop/include \
 
74
                  -I${HOME}/arm-linux/vlc-${VERSION}/libid3tag-0.15.0b"
 
75
 
 
76
build-stamp:
 
77
# This is ugly -- I know
 
78
#       patch -p0 < ipkg/patch
 
79
 
 
80
        $(MAKE)
 
81
 
 
82
clean:
 
83
        -$(MAKE) distclean
 
84
 
 
85
install: build
 
86
        rm -fr ${PKGDIR}/
 
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/sharp/bin
 
93
        mkdir -p ${PKGDIR}/opt/QtPalmtop/apps/Applications
 
94
        $(STRIP) vlc
 
95
        cp ipkg/control.zaurus $(PKGDIR)/CONTROL/control
 
96
        cp ipkg/postinst.zaurus ${PKGDIR}/CONTROL/postinst
 
97
        cp ipkg/postrm.zaurus ${PKGDIR}/CONTROL/postrm
 
98
        cp share/vlc48x48.png  ${PKGDIR}/usr/share/vlc
 
99
        cp vlc $(PKGDIR)/usr/bin
 
100
        cp ipkg/vlc.zaurus ${PKGDIR}/opt/QtPalmtop/sharp/bin/zaurus-vlc
 
101
        cp ipkg/vlc.zaurus ${PKGDIR}/opt/QtPalmtop/sharp/bin/opie-vlc
 
102
        cp ipkg/vlc.desktop ${PKGDIR}/opt/QtPalmtop/sharp/apps/Applications
 
103
 
 
104
install-plugins: install
 
105
        find ./modules/ -name *.so -print -depth | xargs cp $1 ${PKGDIR}/usr/lib/vlc
 
106
        $(STRIP) ${PKGDIR}/usr/lib/vlc
 
107
 
 
108
.PHONY: build clean install install-plugins
 
109