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

多媒体

开发平台:

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. export VIDDIR="usr/share/vlc"
  7. export PIXDIR="usr/share/pixmaps"
  8. export DESTDIR=${HOME}/arm-linux
  9. export PKGDIR=${HOME}/packages/opie-vlc-$(VERSION)
  10. export QTDIR=${HOME}/arm-linux/opt/QtPalmtop
  11. # Compilation options
  12. export CONFIG_FLAGS="--enable-release --prefix=/usr 
  13. --disable-plugins 
  14. --disable-gtk 
  15. --disable-gtk2 
  16. --disable-gnome 
  17. --disable-gnome2 
  18. --disable-qt 
  19. --disable-kde 
  20. --disable-xosd 
  21. --disable-ogg 
  22. --disable-tarkin 
  23. --disable-tremor 
  24. --disable-theorea 
  25. --enable-qte 
  26. --disable-x11 
  27. --disable-xvideo 
  28. --enable-dummy 
  29. --enable-v4l 
  30. --enable-sout 
  31. --enable-fb 
  32. --disable-sdl 
  33. --enable-oss 
  34. --disable-alsa 
  35. --disable-dvd 
  36. --disable-dvdread 
  37. --disable-vcd 
  38. --disable-maxosx 
  39. --disable-freetype 
  40. --enable-a52 
  41. --enable-faad2 
  42. --enable-flac 
  43. --enable-libmpeg2 
  44. --enable-libdvbpsi 
  45. --disable-mkv 
  46. --enable-mad 
  47. --enable-ffmpeg 
  48. --disable-pda 
  49. --with-tuning=strongarm1100 
  50. --with-libiconv-prefix=${HOME}/arm-linux/usr 
  51. --with-mad-tree=${HOME}/arm-linux/vlc-${VERSION}/libmad-0.15.0b 
  52. --with-a52-tree=${HOME}/arm-linux/vlc-${VERSION}/a52dec-0.7.4 
  53. --with-faad2-tree=${HOME}/arm-linux/vlc-${VERSION}/faad2-20030612 
  54. --with-flac-tree=${HOME}/arm-linux/vlc-${VERSION}/flac-1.1.0 
  55. --with-libmpeg2-tree=${HOME}/arm-linux/vlc-${VERSION}/mpeg2dec-20030612 
  56. --with-libdvbpsi-tree=${HOME}/arm-linux/vlc-${VERSION}/libdvbpsi-0.1.2 
  57. --with-qte=${QTDIR} 
  58. --with-ffmpeg-tree=${HOME}/arm-linux/vlc-${VERSION}/ffmpeg-20030622"
  59. build: build-stamp
  60. config:
  61. ./configure --mandir=$${prefix}/share/man 
  62. --infodir=$${prefix}/share/info 
  63. --host=arm-linux 
  64. --target=arm-linux 
  65. $(shell echo $(CONFIG_FLAGS)) 
  66. LDFLAGS="-L${HOME}/arm-linux/lib 
  67.  -L${QTDIR}/lib 
  68.  -L${HOME}/arm-linux/vlc-${VERSION}/libid3tag-0.15.0b" 
  69. CPPFLAGS="-I${QTDIR}/include 
  70. -I${HOME}/arm-linux/vlc-${VERSION}/libid3tag-0.15.0b"
  71. build-stamp:
  72. # This is ugly -- I know
  73. # patch -p0 < ipkg/patch
  74. $(MAKE)
  75. clean:
  76. -$(MAKE) distclean
  77. install: build
  78. rm -fr ${PKGDIR}/
  79. mkdir -p ${PKGDIR}/CONTROL
  80. mkdir -p $(PKGDIR)/usr/bin
  81. mkdir -p ${PKGDIR}/usr/share/vlc
  82. mkdir -p ${PKGDIR}/usr/lib/menu
  83. mkdir -p ${PKGDIR}/usr/lib/vlc
  84. mkdir -p ${PKGDIR}/opt/QtPalmtop/bin
  85. mkdir -p ${PKGDIR}/opt/QtPalmtop/apps/Applications
  86. $(STRIP) vlc
  87. cp ipkg/control.opie $(PKGDIR)/CONTROL/control
  88. cp ipkg/postinst.opie ${PKGDIR}/CONTROL/postinst
  89. cp ipkg/postrm.opie ${PKGDIR}/CONTROL/postrm
  90. cp share/vlc48x48.png  ${PKGDIR}/usr/share/vlc
  91. cp vlc $(PKGDIR)/usr/bin
  92. cp ipkg/vlc.opie ${PKGDIR}/opt/QtPalmtop/bin/opie-vlc
  93. cp ipkg/vlc.desktop ${PKGDIR}/opt/QtPalmtop/apps/Applications
  94. install-plugins: install
  95. find ./modules/ -name *.so -print -depth | xargs cp $1 ${PKGDIR}/usr/lib/vlc
  96. $(STRIP) ${PKGDIR}/usr/lib/vlc
  97. .PHONY: build clean install install-plugins