rules.gpe
上传用户:riyaled888
上传日期:2009-03-27
资源大小:7338k
文件大小:6k
源码类别:

多媒体

开发平台:

MultiPlatform

  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. VERSION=0.8.0
  6. # Compilation options
  7. export CC=arm-linux-gcc
  8. export LD=arm-linux-ld
  9. export AR=arm-linux-ar
  10. export RANLIB=arm-linux-ranlib
  11. export STRIP=arm-linux-strip
  12. export VIDDIR="usr/share/vlc"
  13. export PIXDIR="usr/share/pixmaps"
  14. export DESTDIR=${HOME}/arm-linux
  15. export PKGDIR=${HOME}/packages/vlc-$(VERSION)
  16. export CONFIG_FLAGS="--enable-release --prefix=${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr 
  17. --disable-plugins 
  18. --disable-gtk 
  19. --disable-gtk2 
  20. --disable-gnome 
  21. --disable-gnome2 
  22. --disable-qt 
  23. --disable-kde 
  24. --disable-qte 
  25. --disable-xosd 
  26. --disable-ogg 
  27. --disable-tarkin 
  28. --disable-tremor 
  29. --disable-theorea 
  30. --disable-skins 
  31. --disable-skins2 
  32. --disable-sdl 
  33. --enable-v4l 
  34. --enable-sout 
  35. --enable-dummy 
  36. --enable-fb 
  37. --enable-oss 
  38. --disable-alsa 
  39. --enable-x11 
  40. --disable-xvideo 
  41. --disable-dvd 
  42. --disable-dvdplay 
  43. --disable-dvdread 
  44. --disable-libcdio 
  45. --disable-libcddb 
  46. --disable-vcdx 
  47. --disable-vcd 
  48. --disable-maxosx 
  49. --disable-goom 
  50. --disable-speex 
  51. --disable-visual 
  52. --enable-freetype 
  53. --disable-fribidi 
  54. --enable-a52 
  55. --enable-faad 
  56. --enable-flac 
  57. --enable-libmpeg2 
  58. --enable-dvbpsi 
  59. --disable-mkv 
  60. --enable-mad 
  61. --enable-id3tag 
  62. --enable-ffmpeg 
  63. --enable-slp 
  64. --enable-pda 
  65. --x-includes=${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/X11R6/include 
  66. --x-libraries=${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/X11R6/lib 
  67. --with-tuning=strongarm1100 
  68. --with-dvbpsi-tree=${HOME}/arm-linux/vlc-$(VERSION)/libdvbpsi-0.1.3 
  69. --with-mad-tree=${HOME}/arm-linux/vlc-$(VERSION)/libmad-0.15.0b 
  70. --with-id3tag-tree=${HOME}/arm-linux/vlc-$(VERSION)/libid3tag-0.15.0b 
  71. --with-a52-tree=${HOME}/arm-linux/vlc-$(VERSION)/a52dec-0.7.4 
  72. --with-faad-tree=${HOME}/arm-linux/vlc-$(VERSION)/faad2-20040124 
  73. --with-libmpeg2-tree=${HOME}/arm-linux/vlc-$(VERSION)/mpeg2dec-0.4.0 
  74. --with-slp=${HOME}/arm-linux/vlc-$(VERSION)/openslp-1.0.11/libslp 
  75. --with-included-gettext=${HOME}/arm-linux/vlc-$(VERSION)/gettext-0.12.1 
  76. --with-v4l=${HOME}/arm-linux/vlc-$(VERSION)/linux/kernel 
  77. --with-ffmpeg-mp3lame 
  78. --with-ffmpeg-faac 
  79. --with-ffmpeg-tree=${HOME}/arm-linux/vlc-$(VERSION)/ffmpeg-20040103"
  80. # park here ;-0
  81. # --with-libiconv-prefix=${HOME}/arm-linux//vlc-$(VERSION)/libiconv-1.9.1
  82. config:
  83. ./configure --mandir=$${prefix}/share/man 
  84. --infodir=$${prefix}/share/info 
  85. --host=arm-linux 
  86. --target=arm-linux 
  87. $(shell echo $(CONFIG_FLAGS)) 
  88. LDFLAGS="-L${HOME}/arm-linux/vlc-$(VERSION)/openslp-1.0.11/libslp/.libs 
  89. -L${HOME}/arm-linux/vlc-$(VERSION)/lame-3.93.1/libmp3lame/.libs 
  90. -L${HOME}/arm-linux/vlc-$(VERSION)/libid3tag-0.15.0b/.libs 
  91. -L${HOME}/arm-linux/vlc-$(VERSION)/flac-1.1.0/src/libFLAC/.libs 
  92. -L${HOME}/arm-linux/vlc-$(VERSION)/faac/libfaac/.libs 
  93. -L${HOME}/arm-linux/vlc-$(VERSION)/faad2-20040124/libfaad/.libs 
  94. -L${HOME}/arm-linux/vlc-$(VERSION)/libdvbpsi-0.1.3/src/.libs/ 
  95. -L${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/lib 
  96. -L${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/lib 
  97. -L${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/X11R6/lib" 
  98. CFLAGS="-I${HOME}/arm-linux/vlc-$(VERSION)/openslp-1.0.11/libslp 
  99. -I${HOME}/arm-linux/vlc-$(VERSION)/libpng-1.2.5 
  100. -I${HOME}/arm-linux/vlc-$(VERSION)/lame-3.93.1/include 
  101. -I${HOME}/arm-linux/vlc-$(VERSION)/libid3tag-0.15.0b 
  102. -I${HOME}/arm-linux/vlc-$(VERSION)/libdvbpsi-0.1.3  
  103. -I${HOME}/arm-linux/vlc-$(VERSION)/flac-1.1.0/include 
  104. -I${HOME}/arm-linux/vlc-$(VERSION)/faac/libfaac 
  105. -I${HOME}/arm-linux/vlc-$(VERSION)/faad2-20040124/include 
  106. -I${HOME}/arm-linux/linux/kernel/include 
  107. -I${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/include 
  108. -I${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/X11R6/include 
  109. -I${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/include"
  110. #patch:
  111. # This is ugly -- I know
  112. # patch -p 0 < ipkg/patch
  113. build:
  114. $(MAKE) LDFLAGS="-L${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/X11R6/lib -lX11 -lXext -lXft -lXrender -lXrandr -lfontconfig -lexpat 
  115. -L${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/lib 
  116. -L${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/lib -lfreetype
  117. -L${HOME}/arm-linux/vlc-$(VERSION)/openslp-1.0.11/libslp/.libs 
  118. -L${HOME}/arm-linux/vlc-$(VERSION)/lame-3.93.1/libmp3lame/.libs 
  119. -L${HOME}/arm-linux/vlc-$(VERSION)/libid3tag-0.15.0b/.libs 
  120. -L${HOME}/arm-linux/vlc-$(VERSION)/libdvbpsi-0.1.3/src/.libs/ 
  121. -L${HOME}/arm-linux/vlc-$(VERSION)/flac-1.1.0/src/libFLAC/.libs 
  122. -L${HOME}/arm-linux/vlc-$(VERSION)/faad2-20040124/libfaad/.libs 
  123. -L${HOME}/arm-linux/vlc-$(VERSION)/faac/libfaac/.libs" 
  124. CFLAGS="-I${HOME}/arm-linux/linux/kernel/include 
  125. -I${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/X11R6/include 
  126. -I${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/include 
  127. -I${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/include 
  128. -I${HOME}/arm-linux/vlc-$(VERSION)/openslp-1.0.11/libslp 
  129. -I${HOME}/arm-linux/vlc-$(VERSION)/lame-3.93.1/include 
  130. -I${HOME}/arm-linux/vlc-$(VERSION)/libid3tag-0.15.0b 
  131. -I${HOME}/arm-linux/vlc-$(VERSION)/libdvbpsi-0.1.3 
  132. -I${HOME}/arm-linux/vlc-$(VERSION)/flac-1.1.0/include 
  133. -I${HOME}/arm-linux/vlc-$(VERSION)/faad2-20040124/include 
  134. -I${HOME}/arm-linux/vlc-$(VERSION)/faac/libfaac 
  135. -I${HOME}/arm-linux/vlc-$(VERSION)/openslp-1.0.11/libslp"
  136. clean:
  137. -$(MAKE) distclean
  138. install: 
  139. rm -fr ${PKGDIR}/
  140. mkdir -p ${PKGDIR}/CONTROL
  141. mkdir -p $(PKGDIR)/usr/bin
  142. mkdir -p ${PKGDIR}/usr/share/vlc
  143. mkdir -p ${PKGDIR}/usr/share/applications
  144. mkdir -p ${PKGDIR}/usr/share/http/admin
  145. # mkdir -p ${PKGDIR}/usr/share/skins/default
  146. mkdir -p ${PKGDIR}/usr/lib/menu
  147. mkdir -p ${PKGDIR}/usr/lib/vlc
  148. $(STRIP) vlc
  149. cp ipkg/control  $(PKGDIR)/CONTROL/control
  150. cp ipkg/postinst  ${PKGDIR}/CONTROL/postinst
  151. cp ipkg/postrm  ${PKGDIR}/CONTROL/postrm
  152. cp share/pda-*  ${PKGDIR}/usr/share/vlc
  153. cp share/vlc{16x16,48x48}*   ${PKGDIR}/usr/share/vlc
  154. cp share/http/*.{html,css}     ${PKGDIR}/usr/share/http
  155. cp share/http/admin/*.html     ${PKGDIR}/usr/share/http/admin
  156. # cp share/skins/default/*.{bmp,xml} ${PKGDIR}/usr/share/skins/default
  157. cp vlc                             $(PKGDIR)/usr/bin
  158. cp ipkg/vlc.gpe ${PKGDIR}/usr/share/applications/vlc.desktop
  159. make -C po DESTDIR=${PKGDIR} install
  160. mv ${PKGDIR}/home/jpsaman/arm-linux/task-bootgpe2-v0.7.2-3600/usr/share/locale ${PKGDIR}/usr/share
  161. [ -d ${PKGDIR} ] && rm -rf ${PKGDIR}/home
  162. install-plugins: install
  163. find ./ -name *.so | xargs cp ${PKGDIR}/usr/lib/vlc
  164. $(STRIP) ${PKGDIR}/usr/lib/vlc
  165. .PHONY: build clean install install-plugins