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.

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