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.

99 lines
2.0 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:=1
  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 +libsdl +libpthread
  37. endef
  38. define Build/Configure
  39. $(call Build/Configure/Default, \
  40. --enable-shared \
  41. --enable-static \
  42. --with-cpu=generic_nofpu \
  43. )
  44. endef
  45. define Build/InstallDev
  46. $(INSTALL_DIR) $(1)/usr/include
  47. $(INSTALL_DATA) \
  48. $(PKG_INSTALL_DIR)/usr/include/mpg123.h \
  49. $(1)/usr/include/
  50. $(INSTALL_DIR) $(1)/usr/lib
  51. $(CP) \
  52. $(PKG_INSTALL_DIR)/usr/lib/libmpg123.{la,a,so*} \
  53. $(1)/usr/lib/
  54. $(INSTALL_DIR) $(1)/usr/lib/mpg123
  55. $(CP) \
  56. $(PKG_INSTALL_DIR)/usr/lib/mpg123/* \
  57. $(1)/usr/lib/mpg123
  58. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  59. $(CP) \
  60. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libmpg123.pc \
  61. $(1)/usr/lib/pkgconfig
  62. endef
  63. define Package/libmpg123/install
  64. $(INSTALL_DIR) $(1)/usr/lib
  65. $(CP) \
  66. $(PKG_INSTALL_DIR)/usr/lib/libmpg123.so* \
  67. $(1)/usr/lib/
  68. endef
  69. define Package/mpg123/install
  70. $(INSTALL_DIR) $(1)/usr/bin
  71. $(INSTALL_BIN) \
  72. $(PKG_INSTALL_DIR)/usr/bin/mpg123 \
  73. $(1)/usr/bin
  74. $(INSTALL_DIR) $(1)/usr/lib/mpg123
  75. $(CP) \
  76. $(PKG_INSTALL_DIR)/usr/lib/mpg123/* \
  77. $(1)/usr/lib/mpg123
  78. endef
  79. $(eval $(call BuildPackage,libmpg123))
  80. $(eval $(call BuildPackage,mpg123))