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_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 += $(TARGET_CFLAGS) -O3 -ffast-math
  51. TARGET_CFLAGS := $(filter-out -Os,$(TARGET_CFLAGS))
  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))