Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #
  2. # Copyright (C) 2015 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:=shine
  9. PKG_VERSION:=3.1.0
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://github.com/toots/shine/releases/download/$(PKG_VERSION)/
  13. PKG_MD5SUM:=fcad8108335f4b051b303fbdf3fca3fe
  14. PKG_LICENSE:=GPL-2.0
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. PKG_USE_MIPS16:=0
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/shine
  22. SECTION:=sound
  23. CATEGORY:=Sound
  24. TITLE:=Super fast fixed-point MP3 encoder
  25. URL:=https://github.com/toots/shine
  26. endef
  27. define Package/shine/description
  28. savonet/shine is a blazing fast mp3 encoding library implemented in fixed-point
  29. arithmetic. The library can thus be used to perform super fast mp3 encoding on
  30. architectures without a FPU, such as armel, etc.. It is also, however, also
  31. super fast on architectures with a FPU!
  32. endef
  33. define Build/InstallDev
  34. $(INSTALL_DIR) $(1)/usr/include
  35. $(CP) \
  36. $(PKG_INSTALL_DIR)/usr/include/shine \
  37. $(1)/usr/include/
  38. $(INSTALL_DIR) $(1)/usr/lib
  39. $(CP) \
  40. $(PKG_INSTALL_DIR)/usr/lib/libshine.{a,so*} \
  41. $(1)/usr/lib/
  42. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  43. $(CP) \
  44. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/shine.pc \
  45. $(1)/usr/lib/pkgconfig/
  46. endef
  47. define Package/shine/install
  48. $(INSTALL_DIR) $(1)/usr/bin
  49. $(CP) $(PKG_INSTALL_DIR)/usr/bin/shineenc $(1)/usr/bin/
  50. $(INSTALL_DIR) $(1)/usr/lib
  51. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libshine.so.* $(1)/usr/lib/
  52. endef
  53. $(eval $(call BuildPackage,shine))