]> git.sesse.net Git - vlc/blob - ipkg/rules.gpe
Build scripts for building cross-compiling vlc for Opie and GPE.
[vlc] / ipkg / rules.gpe
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-gnome \
17         --disable-qt \
18         --disable-kde \
19         --disable-qte \
20         --enable-fb \
21         --enable-sdl \
22         --disable-alsa \
23         --disable-xvideo \
24         --disable-dvd \
25         --disable-dvdread \
26         --disable-vcd \
27         --disable-maxosx \
28         --enable-mad \
29         --enable-ffmpeg \
30         --enable-familiar \
31         --with-tuning=strongarm1100 \
32         --x-includes=/skiff/local/arm-linux/include \
33         --x-libraries=/usr/local/arm/2.95.3/arm-linux/usr/X11R6/lib \
34         --with-mad-tree=/home/jpsaman/iPaq/src/mad-0.14.2b \
35         --with-gtk-config-path=/usr/local/arm/2.95.3/arm-linux/usr/bin \
36         --with-gtk-prefix=/usr/local/arm/2.95.3/arm-linux/usr \
37         --with-gpe-prefix=/usr/local/arm/2.95.3/arm-linux/usr \
38         --with-sdl-config-path=/usr/local/arm/2.95.3/arm-linux/usr/bin \
39         --with-sdl-prefix=/usr/local/arm/2.95.3/arm-linux/usr \
40         --with-ffmpeg-tree=/home/jpsaman/iPaq/src/ffmpeg"
41
42 export VIDDIR="usr/share/videolan"
43 export PIXDIR="usr/share/pixmaps"
44 #export DESTDIR=/tmp/vlc
45 export DESTDIR=/usr/local/arm/2.95.3/arm-linux
46 export PKGDIR=/home/jpsaman/iPaq/packages/vlc-0.4.6
47
48 build: build-stamp
49 config:
50         ./configure --mandir=$${prefix}/share/man \
51                 --infodir=$${prefix}/share/info \
52                 --host=arm-linux \
53                 --target=arm-linux \
54                 $(shell echo $(CONFIG_FLAGS))
55 build-stamp:
56 # This is ugly -- I know
57 #       patch -p 0 < ipkg/patch
58
59         $(MAKE)
60
61         touch build-stamp
62
63 clean:
64         rm -f build-stamp
65
66         -$(MAKE) distclean
67
68 install: build
69         rm -fr ${PKGDIR}/
70         mkdir -p ${PKGDIR}/CONTROL
71         mkdir -p $(PKGDIR)/usr/bin
72         mkdir -p ${PKGDIR}/usr/share/videolan
73         mkdir -p ${PKGDIR}/usr/lib/menu
74         mkdir -p ${PKGDIR}/usr/lib/videolan/vlc
75         $(STRIP) vlc
76         cp ipkg/control.gpe $(PKGDIR)/CONTROL/control
77         cp ipkg/postinst.gpe ${PKGDIR}/CONTROL/postinst
78         cp ipkg/postrm.gpe ${PKGDIR}/CONTROL/postrm
79         cp share/familiar-* ${PKGDIR}/usr/share/videolan
80         cp share/vlc32x32.xpm ${PKGDIR}/usr/share/videolan
81         cp share/vlc16x16.xpm  ${PKGDIR}/usr/share/videolan
82         cp share/vlc48x48.png  ${PKGDIR}/usr/share/videolan
83         cp vlc $(PKGDIR)/usr/bin
84         cp ipkg/vlc.gpe ${PKGDIR}/usr/lib/menu/vlc
85 #       cp plugins/*.so ${PKGDIR}/usr/lib/videolan/vlc
86
87 .PHONY: build clean install
88