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.

98 lines
2.3 KiB

  1. #
  2. # Copyright (C) 2006-2014 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:=gsm
  9. PKG_VERSION:=1.0.13
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://user.cs.tu-berlin.de/~jutta/gsm/
  13. PKG_MD5SUM:=c1ba392ce61dc4aff1c29ea4e92f6df4
  14. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  15. PKG_LICENSE:=FREE
  16. PKG_LICENSE_FILES:=COPYRIGHT
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-1.0-pl13
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/gsm/Default
  20. TITLE:=GSM transcoding
  21. URL:=http://user.cs.tu-berlin.de/~jutta/toast.html
  22. endef
  23. define Package/gsm/description/Default
  24. An implementation of the European GSM 06.10 provisional standard
  25. for full-rate speech transcoding, prI-ETS 300 036, which uses
  26. RPE/LTP (residual pulse excitation/long term prediction) coding
  27. at 13 kbit/s.
  28. endef
  29. define Package/libgsm
  30. $(call Package/gsm/Default)
  31. SECTION:=libs
  32. CATEGORY:=Libraries
  33. TITLE+= library
  34. endef
  35. define Package/libgsm/description
  36. $(call Package/gsm/description/Default)
  37. This package contains a shared GSM transcoding library, used by other
  38. programs.
  39. endef
  40. define Package/gsm-utils
  41. $(call Package/gsm/Default)
  42. SECTION:=utils
  43. CATEGORY:=Utilities
  44. DEPENDS:=+libgsm
  45. TITLE+= utilities
  46. endef
  47. define Package/gsm-utils/description
  48. $(call Package/gsm/description/Default)
  49. This package contains GSM transcoding utilities.
  50. endef
  51. define Build/Configure
  52. endef
  53. TARGET_CFLAGS += $(FPIC)
  54. define Build/Compile
  55. $(MAKE) -C $(PKG_BUILD_DIR) \
  56. $(TARGET_CONFIGURE_OPTS) \
  57. LD="$(TARGET_CC)" \
  58. COPTS="$(TARGET_CFLAGS)" \
  59. INSTALL_ROOT="$(PKG_INSTALL_DIR)" \
  60. all install
  61. endef
  62. define Package/libgsm/install
  63. $(INSTALL_DIR) $(1)/usr/lib
  64. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsm.so.* $(1)/usr/lib/
  65. endef
  66. define Package/gsm-utils/install
  67. $(INSTALL_DIR) $(1)/usr/bin
  68. $(CP) $(PKG_INSTALL_DIR)/usr/bin/toast $(1)/usr/bin/
  69. (cd $(1)/usr/bin; ln -sf toast untoast; ln -sf toast tcat)
  70. endef
  71. define Build/InstallDev
  72. $(INSTALL_DIR) $(1)/usr/include/gsm
  73. $(CP) $(PKG_INSTALL_DIR)/usr/include/gsm.h $(1)/usr/include/gsm/
  74. $(INSTALL_DIR) $(1)/usr/lib
  75. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsm.{a,so*} $(1)/usr/lib/
  76. endef
  77. $(eval $(call BuildPackage,libgsm))
  78. $(eval $(call BuildPackage,gsm-utils))