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.

101 lines
2.1 KiB

  1. #
  2. # Copyright (C) 2007-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=mpg123
  9. PKG_VERSION:=1.22.3
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=http://www.mpg123.de/download/
  13. PKG_MD5SUM:=fca857bc5ad0d2070cd38bd5f0f85f1c
  14. PKG_MAINTAINER:=Zoltan HERPAI <wigyori@uid0.hu>
  15. PKG_FIXUP:=libtool
  16. PKG_LICENSE:=LGPL-2.1 GPL-2.0
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/mpg123/Default
  21. URL:=http://www.mpg123.de
  22. DEPENDS:=@BUILD_PATENTED
  23. endef
  24. define Package/libmpg123
  25. $(call Package/mpg123/Default)
  26. SECTION:=libs
  27. CATEGORY:=Libraries
  28. TITLE:=fast console mpeg audio decoder library
  29. DEPENDS:=+libltdl
  30. endef
  31. define Package/mpg123
  32. $(call Package/mpg123/Default)
  33. SECTION:=sound
  34. CATEGORY:=Sound
  35. TITLE:=fast console mpeg audio player
  36. DEPENDS+=+libmpg123 +alsa-lib
  37. endef
  38. define Build/Configure
  39. $(call Build/Configure/Default, \
  40. --enable-shared \
  41. --enable-static \
  42. --with-cpu=generic_nofpu \
  43. --with-default-audio=alsa \
  44. )
  45. endef
  46. define Build/InstallDev
  47. $(INSTALL_DIR) $(1)/usr/include
  48. $(INSTALL_DATA) \
  49. $(PKG_INSTALL_DIR)/usr/include/mpg123.h \
  50. $(1)/usr/include/
  51. $(INSTALL_DIR) $(1)/usr/lib
  52. $(CP) \
  53. $(PKG_INSTALL_DIR)/usr/lib/libmpg123.{la,a,so*} \
  54. $(1)/usr/lib/
  55. $(INSTALL_DIR) $(1)/usr/lib/mpg123
  56. $(CP) \
  57. $(PKG_INSTALL_DIR)/usr/lib/mpg123/* \
  58. $(1)/usr/lib/mpg123
  59. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  60. $(CP) \
  61. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libmpg123.pc \
  62. $(1)/usr/lib/pkgconfig
  63. endef
  64. define Package/libmpg123/install
  65. $(INSTALL_DIR) $(1)/usr/lib
  66. $(CP) \
  67. $(PKG_INSTALL_DIR)/usr/lib/libmpg123.so* \
  68. $(1)/usr/lib/
  69. endef
  70. define Package/mpg123/install
  71. $(INSTALL_DIR) $(1)/usr/bin
  72. $(INSTALL_BIN) \
  73. $(PKG_INSTALL_DIR)/usr/bin/mpg123{,-id3dump,-strip} \
  74. $(PKG_INSTALL_DIR)/usr/bin/out123
  75. $(1)/usr/bin
  76. $(INSTALL_DIR) $(1)/usr/lib/mpg123
  77. $(CP) \
  78. $(PKG_INSTALL_DIR)/usr/lib/mpg123/* \
  79. $(1)/usr/lib/mpg123
  80. endef
  81. $(eval $(call BuildPackage,libmpg123))
  82. $(eval $(call BuildPackage,mpg123))