]> git.sesse.net Git - vlc/blob - ipkg/rules.h3600
this should fix compilation (if someone could backport this fix ... and
[vlc] / ipkg / rules.h3600
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         --disable-a52 \
58         --disable-faad \
59         --enable-flac \
60         --enable-libmpeg2 \
61         --enable-dvbpsi \
62         --disable-mkv \
63         --enable-mad \
64         --enable-id3tag \
65         --disable-ffmpeg \
66         --disable-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-libmpeg2-tree=${HOME}/arm-linux/vlc-$(VERSION)/mpeg2dec-0.4.0 \
75         --with-included-gettext=${HOME}/arm-linux/vlc-$(VERSION)/gettext-0.12.1 \
76         --with-v4l=${HOME}/arm-linux/vlc-$(VERSION)/linux/kernel"
77
78 config:
79         ./configure --mandir=$${prefix}/share/man \
80                 --infodir=$${prefix}/share/info \
81                 --host=arm-linux \
82                 --target=arm-linux \
83                 $(shell echo $(CONFIG_FLAGS)) \
84         LDFLAGS="-L${HOME}/arm-linux/vlc-$(VERSION)/libid3tag-0.15.0b/.libs \
85                 -L${HOME}/arm-linux/vlc-$(VERSION)/flac-1.1.0/src/libFLAC/.libs \
86                 -L${HOME}/arm-linux/vlc-$(VERSION)/faac/libfaac/.libs \
87                 -L${HOME}/arm-linux/vlc-$(VERSION)/libdvbpsi-0.1.3/src/.libs/ \
88                 -L${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/lib \
89                 -L${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/lib \
90                 -L${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/X11R6/lib" \
91         CFLAGS="-I${HOME}/arm-linux/vlc-$(VERSION)/libid3tag-0.15.0b \
92                 -I${HOME}/arm-linux/vlc-$(VERSION)/libdvbpsi-0.1.3  \
93                 -I${HOME}/arm-linux/vlc-$(VERSION)/flac-1.1.0/include \
94                 -I${HOME}/arm-linux/linux/kernel/include \
95                 -I${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/include \
96                 -I${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/X11R6/include \
97                 -I${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/include"
98
99 #patch:
100 # This is ugly -- I know
101 #       patch -p 0 < ipkg/patch
102
103 build:
104         $(MAKE) LDFLAGS="-L${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/X11R6/lib -lX11 -lXext -lXft -lXrender -lXrandr -lfontconfig -lexpat \
105                 -L${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/lib \
106                 -L${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/lib -lfreetype\
107                 -L${HOME}/arm-linux/vlc-$(VERSION)/libid3tag-0.15.0b/.libs \
108                 -L${HOME}/arm-linux/vlc-$(VERSION)/libdvbpsi-0.1.3/src/.libs \
109                 -L${HOME}/arm-linux/vlc-$(VERSION)/flac-1.1.0/src/libFLAC/.libs" \
110         CFLAGS="-I${HOME}/arm-linux/linux/kernel/include \
111                 -I${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/X11R6/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/include \
114                 -I${HOME}/arm-linux/vlc-$(VERSION)/libid3tag-0.15.0b \
115                 -I${HOME}/arm-linux/vlc-$(VERSION)/libdvbpsi-0.1.3 \
116                 -I${HOME}/arm-linux/vlc-$(VERSION)/flac-1.1.0/include" 
117
118 clean:
119         -$(MAKE) distclean
120
121 install: 
122         rm -fr ${PKGDIR}/
123         mkdir -p ${PKGDIR}/CONTROL
124         mkdir -p $(PKGDIR)/usr/bin
125         mkdir -p ${PKGDIR}/usr/share/vlc
126         mkdir -p ${PKGDIR}/usr/share/applications
127         mkdir -p ${PKGDIR}/usr/share/http/admin
128 #       mkdir -p ${PKGDIR}/usr/share/skins/default
129         mkdir -p ${PKGDIR}/usr/lib/menu
130         mkdir -p ${PKGDIR}/usr/lib/vlc
131         $(STRIP) vlc
132         cp ipkg/control         $(PKGDIR)/CONTROL/control
133         cp ipkg/postinst        ${PKGDIR}/CONTROL/postinst
134         cp ipkg/postrm          ${PKGDIR}/CONTROL/postrm
135         cp share/pda-*          ${PKGDIR}/usr/share/vlc
136         cp share/vlc{16x16,48x48}*   ${PKGDIR}/usr/share/vlc
137         cp share/http/*.{html,css}         ${PKGDIR}/usr/share/http
138         cp share/http/admin/*.html         ${PKGDIR}/usr/share/http/admin
139 #       cp share/skins/default/*.{bmp,xml} ${PKGDIR}/usr/share/skins/default
140         cp vlc                             $(PKGDIR)/usr/bin
141         cp ipkg/vlc.gpe ${PKGDIR}/usr/share/applications/vlc.desktop
142         make -C po DESTDIR=${PKGDIR} install
143         mv ${PKGDIR}/home/jpsaman/arm-linux/task-bootgpe2-v0.7.2-3600/usr/share/locale ${PKGDIR}/usr/share
144         [ -d ${PKGDIR} ] && rm -rf ${PKGDIR}/home
145
146 install-plugins: install
147         find ./ -name *.so | xargs cp ${PKGDIR}/usr/lib/vlc
148         $(STRIP) ${PKGDIR}/usr/lib/vlc
149
150 .PHONY: build clean install install-plugins
151