]> git.sesse.net Git - vlc/blob - ipkg/rules.gpe
Don't insult the user - Patch by Torsten Spindler
[vlc] / ipkg / rules.gpe
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 # 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
14 export VIDDIR="usr/share/vlc"
15 export PIXDIR="usr/share/pixmaps"
16 export DESTDIR=${HOME}/arm-linux
17 export PKGDIR=${HOME}/packages/vlc-$(VERSION)
18
19 export CONFIG_FLAGS="--enable-release --prefix=${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr \
20         --disable-plugins \
21         --disable-gtk \
22         --disable-gtk2 \
23         --disable-gnome \
24         --disable-gnome2 \
25         --disable-qt \
26         --disable-kde \
27         --disable-qte \
28         --disable-xosd \
29         --disable-ogg \
30         --disable-tarkin \
31         --disable-tremor \
32         --disable-theorea \
33         --disable-skins \
34         --disable-skins2 \
35         --disable-sdl \
36         --enable-v4l \
37         --enable-sout \
38         --enable-dummy \
39         --enable-fb \
40         --enable-oss \
41         --disable-alsa \
42         --enable-x11 \
43         --disable-xvideo \
44         --disable-dvd \
45         --disable-dvdplay \
46         --disable-dvdread \
47         --disable-libcdio \
48         --disable-libcddb \
49         --disable-vcdx \
50         --disable-vcd \
51         --disable-maxosx \
52         --disable-goom \
53         --disable-speex \
54         --disable-visual \
55         --enable-freetype \
56         --disable-fribidi \
57         --enable-a52 \
58         --enable-faad \
59         --enable-flac \
60         --enable-libmpeg2 \
61         --enable-dvbpsi \
62         --disable-mkv \
63         --enable-mad \
64         --enable-id3tag \
65         --enable-ffmpeg \
66         --enable-slp \
67         --enable-pda \
68         --x-includes=${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/X11R6/include \
69         --x-libraries=${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/X11R6/lib \
70         --with-tuning=strongarm1100 \
71         --with-dvbpsi-tree=${HOME}/arm-linux/vlc-$(VERSION)/libdvbpsi-0.1.3 \
72         --with-mad-tree=${HOME}/arm-linux/vlc-$(VERSION)/libmad-0.15.0b \
73         --with-id3tag-tree=${HOME}/arm-linux/vlc-$(VERSION)/libid3tag-0.15.0b \
74         --with-a52-tree=${HOME}/arm-linux/vlc-$(VERSION)/a52dec-0.7.4 \
75         --with-faad-tree=${HOME}/arm-linux/vlc-$(VERSION)/faad2-20040124 \
76         --with-libmpeg2-tree=${HOME}/arm-linux/vlc-$(VERSION)/mpeg2dec-0.4.0 \
77         --with-slp=${HOME}/arm-linux/vlc-$(VERSION)/openslp-1.0.11/libslp \
78         --with-included-gettext=${HOME}/arm-linux/vlc-$(VERSION)/gettext-0.12.1 \
79         --with-v4l=${HOME}/arm-linux/vlc-$(VERSION)/linux/kernel \
80         --with-ffmpeg-mp3lame \
81         --with-ffmpeg-faac \
82         --with-ffmpeg-tree=${HOME}/arm-linux/vlc-$(VERSION)/ffmpeg-20040103"
83
84 # park here ;-0
85 # --with-libiconv-prefix=${HOME}/arm-linux//vlc-$(VERSION)/libiconv-1.9.1
86
87 config:
88         ./configure --mandir=$${prefix}/share/man \
89                 --infodir=$${prefix}/share/info \
90                 --host=arm-linux \
91                 --target=arm-linux \
92                 $(shell echo $(CONFIG_FLAGS)) \
93         LDFLAGS="-L${HOME}/arm-linux/vlc-$(VERSION)/openslp-1.0.11/libslp/.libs \
94                 -L${HOME}/arm-linux/vlc-$(VERSION)/lame-3.93.1/libmp3lame/.libs \
95                 -L${HOME}/arm-linux/vlc-$(VERSION)/libid3tag-0.15.0b/.libs \
96                 -L${HOME}/arm-linux/vlc-$(VERSION)/flac-1.1.0/src/libFLAC/.libs \
97                 -L${HOME}/arm-linux/vlc-$(VERSION)/faac/libfaac/.libs \
98                 -L${HOME}/arm-linux/vlc-$(VERSION)/faad2-20040124/libfaad/.libs \
99                 -L${HOME}/arm-linux/vlc-$(VERSION)/libdvbpsi-0.1.3/src/.libs/ \
100                 -L${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/lib \
101                 -L${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/lib \
102                 -L${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/X11R6/lib" \
103         CFLAGS="-I${HOME}/arm-linux/vlc-$(VERSION)/openslp-1.0.11/libslp \
104                 -I${HOME}/arm-linux/vlc-$(VERSION)/libpng-1.2.5 \
105                 -I${HOME}/arm-linux/vlc-$(VERSION)/lame-3.93.1/include \
106                 -I${HOME}/arm-linux/vlc-$(VERSION)/libid3tag-0.15.0b \
107                 -I${HOME}/arm-linux/vlc-$(VERSION)/libdvbpsi-0.1.3  \
108                 -I${HOME}/arm-linux/vlc-$(VERSION)/flac-1.1.0/include \
109                 -I${HOME}/arm-linux/vlc-$(VERSION)/faac/libfaac \
110                 -I${HOME}/arm-linux/vlc-$(VERSION)/faad2-20040124/include \
111                 -I${HOME}/arm-linux/linux/kernel/include \
112                 -I${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/include \
113                 -I${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/X11R6/include \
114                 -I${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/include"
115
116 #patch:
117 # This is ugly -- I know
118 #       patch -p 0 < ipkg/patch
119
120 build:
121         $(MAKE) LDFLAGS="-L${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/X11R6/lib -lX11 -lXext -lXft -lXrender -lXrandr -lfontconfig -lexpat \
122                 -L${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/lib \
123                 -L${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/lib -lfreetype\
124                 -L${HOME}/arm-linux/vlc-$(VERSION)/openslp-1.0.11/libslp/.libs \
125                 -L${HOME}/arm-linux/vlc-$(VERSION)/lame-3.93.1/libmp3lame/.libs \
126                 -L${HOME}/arm-linux/vlc-$(VERSION)/libid3tag-0.15.0b/.libs \
127                 -L${HOME}/arm-linux/vlc-$(VERSION)/libdvbpsi-0.1.3/src/.libs/ \
128                 -L${HOME}/arm-linux/vlc-$(VERSION)/flac-1.1.0/src/libFLAC/.libs \
129                 -L${HOME}/arm-linux/vlc-$(VERSION)/faad2-20040124/libfaad/.libs \
130                 -L${HOME}/arm-linux/vlc-$(VERSION)/faac/libfaac/.libs" \
131         CFLAGS="-I${HOME}/arm-linux/linux/kernel/include \
132                 -I${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/X11R6/include \
133                 -I${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/include \
134                 -I${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/include \
135                 -I${HOME}/arm-linux/vlc-$(VERSION)/openslp-1.0.11/libslp \
136                 -I${HOME}/arm-linux/vlc-$(VERSION)/lame-3.93.1/include \
137                 -I${HOME}/arm-linux/vlc-$(VERSION)/libid3tag-0.15.0b \
138                 -I${HOME}/arm-linux/vlc-$(VERSION)/libdvbpsi-0.1.3 \
139                 -I${HOME}/arm-linux/vlc-$(VERSION)/flac-1.1.0/include \
140                 -I${HOME}/arm-linux/vlc-$(VERSION)/faad2-20040124/include \
141                 -I${HOME}/arm-linux/vlc-$(VERSION)/faac/libfaac \
142                 -I${HOME}/arm-linux/vlc-$(VERSION)/openslp-1.0.11/libslp"
143
144 clean:
145         -$(MAKE) distclean
146
147 install: 
148         rm -fr ${PKGDIR}/
149         mkdir -p ${PKGDIR}/CONTROL
150         mkdir -p $(PKGDIR)/usr/bin
151         mkdir -p ${PKGDIR}/usr/share/vlc
152         mkdir -p ${PKGDIR}/usr/share/applications
153         mkdir -p ${PKGDIR}/usr/share/http/admin
154 #       mkdir -p ${PKGDIR}/usr/share/skins/default
155         mkdir -p ${PKGDIR}/usr/lib/menu
156         mkdir -p ${PKGDIR}/usr/lib/vlc
157         $(STRIP) vlc
158         cp ipkg/control         $(PKGDIR)/CONTROL/control
159         cp ipkg/postinst        ${PKGDIR}/CONTROL/postinst
160         cp ipkg/postrm          ${PKGDIR}/CONTROL/postrm
161         cp share/pda-*          ${PKGDIR}/usr/share/vlc
162         cp share/vlc{16x16,48x48}*   ${PKGDIR}/usr/share/vlc
163         cp share/http/*.{html,css}         ${PKGDIR}/usr/share/http
164         cp share/http/admin/*.html         ${PKGDIR}/usr/share/http/admin
165 #       cp share/skins/default/*.{bmp,xml} ${PKGDIR}/usr/share/skins/default
166         cp vlc                             $(PKGDIR)/usr/bin
167         cp ipkg/vlc.gpe ${PKGDIR}/usr/share/applications/vlc.desktop
168         make -C po DESTDIR=${PKGDIR} install
169         mv ${PKGDIR}/home/jpsaman/arm-linux/task-bootgpe2-v0.7.2-3600/usr/share/locale ${PKGDIR}/usr/share
170         [ -d ${PKGDIR} ] && rm -rf ${PKGDIR}/home
171
172 install-plugins: install
173         find ./ -name *.so | xargs cp ${PKGDIR}/usr/lib/vlc
174         $(STRIP) ${PKGDIR}/usr/lib/vlc
175
176 .PHONY: build clean install install-plugins
177