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.

84 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2007-2016 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:=2
  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. CONFIG_VARS+=NASM=no
  44. ifeq ($(ARCH),i386)
  45. TARGET_CFLAGS+=-msse
  46. endif
  47. define Package/lame/install
  48. $(INSTALL_DIR) $(1)/usr/bin
  49. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lame $(1)/usr/bin/
  50. endef
  51. define Package/lame-lib/install
  52. $(INSTALL_DIR) $(1)/usr/lib
  53. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*so* $(1)/usr/lib/
  54. endef
  55. define Build/InstallDev
  56. $(INSTALL_DIR) $(1)/usr/include/lame
  57. $(INSTALL_DATA) \
  58. $(PKG_INSTALL_DIR)/usr/include/lame/*.h \
  59. $(1)/usr/include/lame/
  60. $(INSTALL_DIR) $(1)/usr/lib
  61. $(CP) \
  62. $(PKG_INSTALL_DIR)/usr/lib/*.{la,so*} \
  63. $(1)/usr/lib/
  64. endef
  65. $(eval $(call BuildPackage,lame-lib))
  66. $(eval $(call BuildPackage,lame))