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.

102 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:=3
  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-audio=alsa \
  44. --with-default-audio=alsa \
  45. )
  46. endef
  47. define Build/InstallDev
  48. $(INSTALL_DIR) $(1)/usr/include
  49. $(INSTALL_DATA) \
  50. $(PKG_INSTALL_DIR)/usr/include/mpg123.h \
  51. $(1)/usr/include/
  52. $(INSTALL_DIR) $(1)/usr/lib
  53. $(CP) \
  54. $(PKG_INSTALL_DIR)/usr/lib/libmpg123.{la,a,so*} \
  55. $(1)/usr/lib/
  56. $(INSTALL_DIR) $(1)/usr/lib/mpg123
  57. $(CP) \
  58. $(PKG_INSTALL_DIR)/usr/lib/mpg123/* \
  59. $(1)/usr/lib/mpg123
  60. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  61. $(CP) \
  62. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libmpg123.pc \
  63. $(1)/usr/lib/pkgconfig
  64. endef
  65. define Package/libmpg123/install
  66. $(INSTALL_DIR) $(1)/usr/lib
  67. $(CP) \
  68. $(PKG_INSTALL_DIR)/usr/lib/libmpg123.so* \
  69. $(1)/usr/lib/
  70. endef
  71. define Package/mpg123/install
  72. $(INSTALL_DIR) $(1)/usr/bin
  73. $(INSTALL_BIN) \
  74. $(PKG_INSTALL_DIR)/usr/bin/mpg123{,-id3dump,-strip} \
  75. $(PKG_INSTALL_DIR)/usr/bin/out123 \
  76. $(1)/usr/bin
  77. $(INSTALL_DIR) $(1)/usr/lib/mpg123
  78. $(CP) \
  79. $(PKG_INSTALL_DIR)/usr/lib/mpg123/* \
  80. $(1)/usr/lib/mpg123
  81. endef
  82. $(eval $(call BuildPackage,libmpg123))
  83. $(eval $(call BuildPackage,mpg123))