]> git.sesse.net Git - vlc/blob - ipkg/rules.opie
4f976878bae992faeea0da73e603b1847f403f6a
[vlc] / ipkg / rules.opie
1 #!/usr/bin/make -f
2 # debian/rules for the VideoLAN Client - uses debhelper.
3 # based on Joey Hess's one.
4 # Kludged for ipkg
5
6 # export PATH="$PATH:/usr/local/arm/2.95.3/bin"
7 # Compilation options
8 export CC=arm-linux-gcc
9 export LD=arm-linux-ld
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 \
14         --disable-plugins \
15         --disable-gtk \
16         --disable-gtk2 \
17         --disable-gnome \
18         --disable-gnome2 \
19         --disable-qt \
20         --disable-kde \
21         --disable-xosd \
22         --disable-ogg \
23         --disable-tarkin \
24         --disable-tremor \
25         --disable-theorea \
26         --enable-qte \
27         --disable-x11 \
28         --disable-xvideo \
29         --enable-dummy \
30         --enable-v4l \
31         --enable-fb \
32         --enable-sdl \
33         --enable-oss \
34         --disable-alsa \
35         --disable-xvideo \
36         --disable-dvd \
37         --disable-dvdread \
38         --disable-vcd \
39         --disable-maxosx \
40         --disable-freetype \
41         --enable-a52 \
42         --enable-faad2 \
43         --enable-flac \
44         --enable-libmpeg2 \
45         --enable-libdvbpsi \
46         --disable-mkv \
47         --enable-mad \
48         --enable-ffmpeg \
49         --disable-familiar \
50         --with-tuning=strongarm1100 \
51         --with-libiconv-prefix=/usr/local/arm/2.95.3/arm-linux/usr \
52         --with-mad-tree=/home/jpsaman/iPaq/src/libmad-0.15.0b \
53         --with-a52-tree=/home/jpsaman/iPaq/src/a52dec-0.7.4 \
54         --with-faad2-tree=/home/jpsaman/iPaq/src/faad2-20030612 \
55         --with-flac-tree=/home/jpsaman/iPaq/src/flac-1.1.0 \
56         --with-libmpeg2-tree=/home/jpsaman/iPaq/src/mpeg2dec-20030612 \
57         --with-libdvbpsi-tree=/home/jpsaman/iPaq/src/libdvbpsi-0.1.2 \
58         --with-sdl-config-path=/usr/local/arm/2.95.3/arm-linux/opt/QtPalmtop/bin \
59         --with-sdl-prefix=/usr/local/arm/2.95.3/arm-linux/opt/QtPalmtop \
60         --with-qte=/usr/local/arm/2.95.3/arm-linux/opt/QtPalmtop \
61         --with-ffmpeg-tree=/home/jpsaman/iPaq/src/ffmpeg-20030622"
62
63 export VIDDIR="usr/share/vlc"
64 export PIXDIR="usr/share/pixmaps"
65 #export DESTDIR=/tmp/vlc
66 export DESTDIR=/usr/local/arm/2.95.3/arm-linux
67 export PKGDIR=/home/jpsaman/iPaq/packages/opie-vlc-0.6.0
68 export QTDIR=/usr/local/arm/2.95.3/arm-linux/opt/QtPalmtop
69
70 build: build-stamp
71 config:
72         ./configure --mandir=$${prefix}/share/man \
73                 --infodir=$${prefix}/share/info \
74                 --host=arm-linux \
75                 --target=arm-linux \
76                 $(shell echo $(CONFIG_FLAGS)) \
77         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" \
78         CPPFLAGS="-I/usr/local/arm/2.95.3/arm-linux/opt/QtPalmtop/include -I/home/jpsaman/iPaq/src/libid3tag-0.15.0b"
79
80 build-stamp:
81 # This is ugly -- I know
82 #       patch -p0 < ipkg/patch
83
84         $(MAKE)
85
86 clean:
87         -$(MAKE) distclean
88
89 install: build
90         rm -fr ${PKGDIR}/
91         mkdir -p ${PKGDIR}/CONTROL
92         mkdir -p $(PKGDIR)/usr/bin
93         mkdir -p ${PKGDIR}/usr/share/vlc
94         mkdir -p ${PKGDIR}/usr/lib/menu
95         mkdir -p ${PKGDIR}/usr/lib/vlc
96         mkdir -p ${PKGDIR}/opt/QtPalmtop/bin
97         mkdir -p ${PKGDIR}/opt/QtPalmtop/apps/Applications
98         $(STRIP) vlc
99         cp ipkg/control.opie $(PKGDIR)/CONTROL/control
100         cp ipkg/postinst.opie ${PKGDIR}/CONTROL/postinst
101         cp ipkg/postrm.opie ${PKGDIR}/CONTROL/postrm
102         cp share/vlc48x48.png  ${PKGDIR}/usr/share/vlc
103         cp vlc $(PKGDIR)/usr/bin
104         cp ipkg/vlc.opie ${PKGDIR}/opt/QtPalmtop/bin/opie-vlc
105         cp ipkg/vlc.desktop ${PKGDIR}/opt/QtPalmtop/apps/Applications
106
107 install-plugins: install
108         find ./modules/ -name *.so -print -depth | xargs cp $1 ${PKGDIR}/usr/lib/vlc
109         $(STRIP) ${PKGDIR}/usr/lib/vlc
110
111 .PHONY: build clean install install-plugins
112