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

多媒体

开发平台:

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. --disable-a52 
  55. --disable-faad 
  56. --enable-flac 
  57. --enable-libmpeg2 
  58. --enable-dvbpsi 
  59. --disable-mkv 
  60. --enable-mad 
  61. --enable-id3tag 
  62. --disable-ffmpeg 
  63. --disable-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-libmpeg2-tree=${HOME}/arm-linux/vlc-$(VERSION)/mpeg2dec-0.4.0 
  72. --with-included-gettext=${HOME}/arm-linux/vlc-$(VERSION)/gettext-0.12.1 
  73. --with-v4l=${HOME}/arm-linux/vlc-$(VERSION)/linux/kernel"
  74. config:
  75. ./configure --mandir=$${prefix}/share/man 
  76. --infodir=$${prefix}/share/info 
  77. --host=arm-linux 
  78. --target=arm-linux 
  79. $(shell echo $(CONFIG_FLAGS)) 
  80. LDFLAGS="-L${HOME}/arm-linux/vlc-$(VERSION)/libid3tag-0.15.0b/.libs 
  81. -L${HOME}/arm-linux/vlc-$(VERSION)/flac-1.1.0/src/libFLAC/.libs 
  82. -L${HOME}/arm-linux/vlc-$(VERSION)/faac/libfaac/.libs 
  83. -L${HOME}/arm-linux/vlc-$(VERSION)/libdvbpsi-0.1.3/src/.libs/ 
  84. -L${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/lib 
  85. -L${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/lib 
  86. -L${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/X11R6/lib" 
  87. CFLAGS="-I${HOME}/arm-linux/vlc-$(VERSION)/libid3tag-0.15.0b 
  88. -I${HOME}/arm-linux/vlc-$(VERSION)/libdvbpsi-0.1.3  
  89. -I${HOME}/arm-linux/vlc-$(VERSION)/flac-1.1.0/include 
  90. -I${HOME}/arm-linux/linux/kernel/include 
  91. -I${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/include 
  92. -I${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/X11R6/include 
  93. -I${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/include"
  94. #patch:
  95. # This is ugly -- I know
  96. # patch -p 0 < ipkg/patch
  97. build:
  98. $(MAKE) LDFLAGS="-L${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/X11R6/lib -lX11 -lXext -lXft -lXrender -lXrandr -lfontconfig -lexpat 
  99. -L${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/lib 
  100. -L${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/lib -lfreetype
  101. -L${HOME}/arm-linux/vlc-$(VERSION)/libid3tag-0.15.0b/.libs 
  102. -L${HOME}/arm-linux/vlc-$(VERSION)/libdvbpsi-0.1.3/src/.libs 
  103. -L${HOME}/arm-linux/vlc-$(VERSION)/flac-1.1.0/src/libFLAC/.libs" 
  104. CFLAGS="-I${HOME}/arm-linux/linux/kernel/include 
  105. -I${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/X11R6/include 
  106. -I${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/include 
  107. -I${HOME}/arm-linux/task-bootgpe2-v0.7.2-3600/usr/include 
  108. -I${HOME}/arm-linux/vlc-$(VERSION)/libid3tag-0.15.0b 
  109. -I${HOME}/arm-linux/vlc-$(VERSION)/libdvbpsi-0.1.3 
  110. -I${HOME}/arm-linux/vlc-$(VERSION)/flac-1.1.0/include" 
  111. clean:
  112. -$(MAKE) distclean
  113. install: 
  114. rm -fr ${PKGDIR}/
  115. mkdir -p ${PKGDIR}/CONTROL
  116. mkdir -p $(PKGDIR)/usr/bin
  117. mkdir -p ${PKGDIR}/usr/share/vlc
  118. mkdir -p ${PKGDIR}/usr/share/applications
  119. mkdir -p ${PKGDIR}/usr/share/http/admin
  120. # mkdir -p ${PKGDIR}/usr/share/skins/default
  121. mkdir -p ${PKGDIR}/usr/lib/menu
  122. mkdir -p ${PKGDIR}/usr/lib/vlc
  123. $(STRIP) vlc
  124. cp ipkg/control  $(PKGDIR)/CONTROL/control
  125. cp ipkg/postinst  ${PKGDIR}/CONTROL/postinst
  126. cp ipkg/postrm  ${PKGDIR}/CONTROL/postrm
  127. cp share/pda-*  ${PKGDIR}/usr/share/vlc
  128. cp share/vlc{16x16,48x48}*   ${PKGDIR}/usr/share/vlc
  129. cp share/http/*.{html,css}     ${PKGDIR}/usr/share/http
  130. cp share/http/admin/*.html     ${PKGDIR}/usr/share/http/admin
  131. # cp share/skins/default/*.{bmp,xml} ${PKGDIR}/usr/share/skins/default
  132. cp vlc                             $(PKGDIR)/usr/bin
  133. cp ipkg/vlc.gpe ${PKGDIR}/usr/share/applications/vlc.desktop
  134. make -C po DESTDIR=${PKGDIR} install
  135. mv ${PKGDIR}/home/jpsaman/arm-linux/task-bootgpe2-v0.7.2-3600/usr/share/locale ${PKGDIR}/usr/share
  136. [ -d ${PKGDIR} ] && rm -rf ${PKGDIR}/home
  137. install-plugins: install
  138. find ./ -name *.so | xargs cp ${PKGDIR}/usr/lib/vlc
  139. $(STRIP) ${PKGDIR}/usr/lib/vlc
  140. .PHONY: build clean install install-plugins