Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:= vlc
  5. PKG_VERSION:= 2.1.4
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 7ed67d22f7425011078772bfc62ac222
  8. PKG_DESCR:= popular media player
  9. PKG_SECTION:= multimedia
  10. PKG_BUILDDEP:= ffmpeg xcb-util libtheora libgcrypt libmad
  11. PKG_DEPENDS:= libffmpeg xcb-util libtheora libgcrypt
  12. PKG_URL:= http://www.videolan.org/vlc/
  13. PKG_SITES:= http://download.videolan.org/pub/videolan/vlc/$(PKG_VERSION)/
  14. PKG_ARCH_DEPENDS:= !m68k
  15. PKG_LIBC_DEPENDS:= glibc musl
  16. include $(TOPDIR)/mk/package.mk
  17. $(eval $(call PKG_template,VLC,vlc,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. TARGET_CPPFLAGS+= -D_GNU_SOURCE -D_POSIX_SOURCE
  19. TARGET_CFLAGS+= -fPIC
  20. CONFIGURE_ENV+= ac_cv_func_sched_getaffinity=no
  21. CONFIGURE_ARGS+= --disable-lua \
  22. --disable-dbus \
  23. --disable-a52 \
  24. --disable-fribidi \
  25. --disable-qt4 \
  26. --disable-skins2 \
  27. --disable-dvdnav \
  28. --disable-glx \
  29. --disable-libxml2 \
  30. --disable-smb \
  31. --disable-xcb \
  32. --without-kde-solid \
  33. --enable-libgcrypt \
  34. --enable-mad \
  35. --enable-theora \
  36. --disable-static \
  37. --disable-avcodec
  38. vlc-install:
  39. $(INSTALL_DIR) $(IDIR_VLC)/usr/bin
  40. $(INSTALL_DIR) $(IDIR_VLC)/usr/lib/vlc/plugins
  41. $(CP) $(WRKINST)/usr/lib/libvlc*.so* \
  42. $(IDIR_VLC)/usr/lib
  43. $(INSTALL_BIN) $(WRKINST)/usr/bin/{c,}vlc \
  44. $(IDIR_VLC)/usr/bin
  45. $(CP) $(WRKINST)/usr/lib/vlc/plugins/* \
  46. $(IDIR_VLC)/usr/lib/vlc/plugins
  47. -rm $(IDIR_VLC)/usr/lib/vlc/plugins/*/*.la
  48. -rm $(IDIR_VLC)/usr/lib/vlc/plugins/*/*.a
  49. include ${TOPDIR}/mk/pkg-bottom.mk