2 # debian/rules for the VLC media player - uses debhelper.
3 # based on Joey Hess's one.
8 export CC=arm-linux-gcc
10 export AR=arm-linux-ar
11 export RANLIB=arm-linux-ranlib
12 export STRIP=arm-linux-strip
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)
19 export CONFIG_FLAGS="--enable-release --prefix=${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr \
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 \
82 --with-ffmpeg-tree=${HOME}/arm-linux/vlc-$(VERSION)/ffmpeg-20040103"
85 # --with-libiconv-prefix=${HOME}/arm-linux//vlc-$(VERSION)/libiconv-1.9.1
88 ./configure --mandir=$${prefix}/share/man \
89 --infodir=$${prefix}/share/info \
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"
117 # This is ugly -- I know
118 # patch -p 0 < ipkg/patch
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"
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
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
172 install-plugins: install
173 find ./ -name *.so | xargs cp ${PKGDIR}/usr/lib/vlc
174 $(STRIP) ${PKGDIR}/usr/lib/vlc
176 .PHONY: build clean install install-plugins