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-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"
79 ./configure --mandir=$${prefix}/share/man \
80 --infodir=$${prefix}/share/info \
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"
100 # This is ugly -- I know
101 # patch -p 0 < ipkg/patch
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"
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
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
146 install-plugins: install
147 find ./ -name *.so | xargs cp ${PKGDIR}/usr/lib/vlc
148 $(STRIP) ${PKGDIR}/usr/lib/vlc
150 .PHONY: build clean install install-plugins