You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2007-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. # blogic@openwrt.org
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=lame
  10. PKG_VERSION:=3.99.5
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=@SF/lame
  14. PKG_MD5SUM:=84835b313d4a8b68f5349816d33e07ce
  15. PKG_FIXUP:=autoreconf
  16. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  17. PKG_LICENSE:=LGPL-2.0
  18. PKG_LICENSE_FILES:=COPYING LICENSE
  19. include $(INCLUDE_DIR)/package.mk
  20. PKG_INSTALL=1
  21. define Package/lame/Default
  22. SECTION:=sound
  23. CATEGORY:=Sound
  24. URL:=http://sourceforge.net/projects/lame
  25. DEPENDS:=@BUILD_PATENTED
  26. endef
  27. define Package/lame
  28. $(call Package/lame/Default)
  29. TITLE:=lame
  30. MENU:=1
  31. DEPENDS += +libncurses
  32. endef
  33. define Package/lame/description
  34. lame mp3 encoder
  35. endef
  36. define Package/lame-lib
  37. $(call Package/lame/Default)
  38. TITLE:=lame-lib
  39. endef
  40. define Package/lame-lib/description
  41. lame mp3 encoder libs
  42. endef
  43. define Build/Configure
  44. $(call Build/Configure/Default, \
  45. --disable-nasm \
  46. )
  47. endef
  48. define Package/lame/install
  49. $(INSTALL_DIR) $(1)/usr/bin
  50. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lame $(1)/usr/bin/
  51. endef
  52. define Package/lame-lib/install
  53. $(INSTALL_DIR) $(1)/usr/lib
  54. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*so* $(1)/usr/lib/
  55. endef
  56. define Build/InstallDev
  57. $(INSTALL_DIR) $(1)/usr/include/lame
  58. $(INSTALL_DATA) \
  59. $(PKG_INSTALL_DIR)/usr/include/lame/*.h \
  60. $(1)/usr/include/lame/
  61. $(INSTALL_DIR) $(1)/usr/lib
  62. $(CP) \
  63. $(PKG_INSTALL_DIR)/usr/lib/*.{la,so*} \
  64. $(1)/usr/lib/
  65. endef
  66. $(eval $(call BuildPackage,lame-lib))
  67. $(eval $(call BuildPackage,lame))