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.

94 lines
1.9 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.100
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=@SF/lame
  14. PKG_HASH:=ddfe36cab873794038ae2c1210557ad34857a4b6bdc515785d1da9e175b1da1e
  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. PKG_CPE_ID:=cpe:/a:lame_project:lame
  20. PKG_CONFIG_DEPENDS:= CONFIG_LAME-LIB_OPTIMIZE_SPEED
  21. include $(INCLUDE_DIR)/package.mk
  22. PKG_INSTALL=1
  23. define Package/lame/Default
  24. SECTION:=sound
  25. CATEGORY:=Sound
  26. URL:=http://sourceforge.net/projects/lame
  27. endef
  28. define Package/lame
  29. $(call Package/lame/Default)
  30. TITLE:=lame
  31. MENU:=1
  32. DEPENDS += +libncurses +lame-lib
  33. endef
  34. define Package/lame/description
  35. lame mp3 encoder
  36. endef
  37. define Package/lame-lib/config
  38. source "$(SOURCE)/Config.in"
  39. endef
  40. define Package/lame-lib
  41. $(call Package/lame/Default)
  42. TITLE:=lame-lib
  43. endef
  44. define Package/lame-lib/description
  45. lame mp3 encoder libs
  46. endef
  47. ifeq ($(ARCH),i386)
  48. TARGET_CFLAGS+=-msse
  49. endif
  50. ifeq ($(CONFIG_LAME-LIB_OPTIMIZE_SPEED),y)
  51. TARGET_CFLAGS := $(filter-out -O%,$(TARGET_CFLAGS)) -O3 -ffast-math
  52. endif
  53. CONFIGURE_ARGS += --disable-gtktest --disable-static
  54. define Package/lame/install
  55. $(INSTALL_DIR) $(1)/usr/bin
  56. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lame $(1)/usr/bin/
  57. endef
  58. define Package/lame-lib/install
  59. $(INSTALL_DIR) $(1)/usr/lib
  60. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*so* $(1)/usr/lib/
  61. endef
  62. define Build/InstallDev
  63. $(INSTALL_DIR) $(1)/usr/include/lame
  64. $(INSTALL_DATA) \
  65. $(PKG_INSTALL_DIR)/usr/include/lame/*.h \
  66. $(1)/usr/include/lame/
  67. $(INSTALL_DIR) $(1)/usr/lib
  68. $(CP) \
  69. $(PKG_INSTALL_DIR)/usr/lib/*.{la,so*} \
  70. $(1)/usr/lib/
  71. endef
  72. $(eval $(call BuildPackage,lame-lib))
  73. $(eval $(call BuildPackage,lame))