]> git.sesse.net Git - vlc/blob - ipkg/rules.gpe
New "qte_main" module. It should be used by all plugins/modules that need QT embedded...
[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 AS=arm-linux-gcc
12 export RANLIB=arm-linux-ranlib
13 export STRIP=arm-linux-strip
14 export CONFIG_FLAGS="--enable-release --prefix=/usr \
15         --disable-plugins \
16         --disable-gtk \
17         --disable-gnome \
18         --disable-qt \
19         --disable-kde \
20         --disable-qte \
21         --enable-fb \
22         --enable-sdl \
23         --enable-oss \
24         --disable-alsa \
25         --enable-x11 \
26         --enable-xvideo \
27         --disable-dvd \
28         --disable-dvdread \
29         --disable-vcd \
30         --disable-maxosx \
31         --enable-mad \
32         --enable-ffmpeg \
33         --enable-familiar \
34         --with-tuning=strongarm1100 \
35         --x-includes=/skiff/local/arm-linux/include \
36         --x-libraries=/usr/local/arm/2.95.3/arm-linux/usr/X11R6/lib \
37         --with-mad-tree=/home/jpsaman/iPaq/src/mad-0.14.2b \
38         --with-gtk-config-path=/usr/local/arm/2.95.3/arm-linux/usr/bin \
39         --with-gtk-prefix=/usr/local/arm/2.95.3/arm-linux/usr \
40         --with-gpe-prefix=/usr/local/arm/2.95.3/arm-linux/usr \
41         --with-sdl-config-path=/usr/local/arm/2.95.3/arm-linux/usr/bin \
42         --with-sdl-prefix=/usr/local/arm/2.95.3/arm-linux/usr \
43         --with-ffmpeg-tree=/home/jpsaman/iPaq/src/ffmpeg"
44
45 export VIDDIR="usr/share/vlc"
46 export PIXDIR="usr/share/pixmaps"
47 #export DESTDIR=/tmp/vlc
48 export DESTDIR=/usr/local/arm/2.95.3/arm-linux
49 export PKGDIR=/home/jpsaman/iPaq/packages/gpe-vlc-0.5.0
50
51 config:
52         ./configure --mandir=$${prefix}/share/man \
53                 --infodir=$${prefix}/share/info \
54                 --host=arm-linux \
55                 --target=arm-linux \
56                 $(shell echo $(CONFIG_FLAGS)) \
57                 LDFLAGS="-L/usr/local/arm/2.95.3/arm-linux/lib"
58
59 build:
60 # This is ugly -- I know
61 #       patch -p 0 < ipkg/patch
62         $(MAKE)
63
64 clean:
65         -$(MAKE) distclean
66
67 install: build
68         rm -fr ${PKGDIR}/
69         mkdir -p ${PKGDIR}/CONTROL
70         mkdir -p $(PKGDIR)/usr/bin
71         mkdir -p ${PKGDIR}/usr/share/vlc
72         mkdir -p ${PKGDIR}/usr/lib/menu
73         mkdir -p ${PKGDIR}/usr/lib/vlc
74         $(STRIP) vlc
75         cp ipkg/control.gpe $(PKGDIR)/CONTROL/control
76         cp ipkg/postinst.gpe ${PKGDIR}/CONTROL/postinst
77         cp ipkg/postrm.gpe ${PKGDIR}/CONTROL/postrm
78         cp share/familiar-* ${PKGDIR}/usr/share/vlc
79         cp share/vlc32x32.xpm ${PKGDIR}/usr/share/vlc
80         cp share/vlc16x16.xpm  ${PKGDIR}/usr/share/vlc
81         cp share/vlc48x48.png  ${PKGDIR}/usr/share/vlc
82         cp vlc $(PKGDIR)/usr/bin
83         cp ipkg/vlc.gpe ${PKGDIR}/usr/lib/menu/vlc
84
85 install-plugins: install
86         find ./ -name *.so | xargs cp $1 ${PKGDIR}/usr/lib/vlc/ 
87         $(STRIP) ${PKGDIR}/usr/lib/vlc/*.so
88
89 .PHONY: build clean install install-plugins
90