Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #
  2. # Copyright (C) 2011 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libmpeg2
  9. PKG_VERSION:=0.5.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=libmpeg2-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://libmpeg2.sourceforge.net/files/
  13. PKG_HASH:=dee22e893cb5fc2b2b6ebd60b88478ab8556cb3b93f9a0d7ce8f3b61851871d4
  14. PKG_INSTALL:=1
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/libmpeg2
  17. SECTION:=libs
  18. CATEGORY:=Libraries
  19. TITLE:=MPEG-1 & -2 decoding library
  20. URL:=http://libmpeg2.sourceforge.net/
  21. MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  22. endef
  23. define Package/libmpeg2/decription
  24. Libmpeg2 is a library for decoding MPEG-1 and MPEG-2 video streams
  25. endef
  26. CONFIGURE_ARGS += \
  27. --disable-sdl \
  28. --without-x \
  29. define Build/InstallDev
  30. $(INSTALL_DIR) $(1)/usr/include
  31. $(CP) \
  32. $(PKG_INSTALL_DIR)/usr/include/mpeg2dec \
  33. $(1)/usr/include/
  34. $(INSTALL_DIR) $(1)/usr/lib
  35. $(CP) \
  36. $(PKG_INSTALL_DIR)/usr/lib/libmpeg2{,convert}.{a,so*} \
  37. $(1)/usr/lib/
  38. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  39. $(INSTALL_DATA) \
  40. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libmpeg2{,convert}.pc \
  41. $(1)/usr/lib/pkgconfig/
  42. endef
  43. define Package/libmpeg2/install
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(CP) \
  46. $(PKG_INSTALL_DIR)/usr/lib/libmpeg2{,convert}.so.* \
  47. $(1)/usr/lib/
  48. endef
  49. $(eval $(call BuildPackage,libmpeg2))