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.

83 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_HASH:=24346b4158e4af3bd9f2e194bb23eb473c75fb7377011523353196b19b9a23ff
  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. endef
  26. define Package/lame
  27. $(call Package/lame/Default)
  28. TITLE:=lame
  29. MENU:=1
  30. DEPENDS += +libncurses
  31. endef
  32. define Package/lame/description
  33. lame mp3 encoder
  34. endef
  35. define Package/lame-lib
  36. $(call Package/lame/Default)
  37. TITLE:=lame-lib
  38. endef
  39. define Package/lame-lib/description
  40. lame mp3 encoder libs
  41. endef
  42. CONFIG_VARS+=NASM=no
  43. ifeq ($(ARCH),i386)
  44. TARGET_CFLAGS+=-msse
  45. endif
  46. define Package/lame/install
  47. $(INSTALL_DIR) $(1)/usr/bin
  48. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lame $(1)/usr/bin/
  49. endef
  50. define Package/lame-lib/install
  51. $(INSTALL_DIR) $(1)/usr/lib
  52. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*so* $(1)/usr/lib/
  53. endef
  54. define Build/InstallDev
  55. $(INSTALL_DIR) $(1)/usr/include/lame
  56. $(INSTALL_DATA) \
  57. $(PKG_INSTALL_DIR)/usr/include/lame/*.h \
  58. $(1)/usr/include/lame/
  59. $(INSTALL_DIR) $(1)/usr/lib
  60. $(CP) \
  61. $(PKG_INSTALL_DIR)/usr/lib/*.{la,so*} \
  62. $(1)/usr/lib/
  63. endef
  64. $(eval $(call BuildPackage,lame-lib))
  65. $(eval $(call BuildPackage,lame))