2 # Copyright (C) 2006-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://user.cs.tu-berlin.de/~jutta/gsm/
16 PKG_MD5SUM:=c1ba392ce61dc4aff1c29ea4e92f6df4
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-1.0-pl13
20 include $(INCLUDE_DIR)/package.mk
22 define Package/gsm/Default
23 TITLE:=GSM transcoding
24 URL:=http://user.cs.tu-berlin.de/~jutta/toast.html
27 define Package/gsm/description/Default
28 An implementation of the European GSM 06.10 provisional standard
29 for full-rate speech transcoding, prI-ETS 300 036, which uses
30 RPE/LTP (residual pulse excitation/long term prediction) coding
35 $(call Package/gsm/Default)
41 define Package/libgsm/description
42 $(call Package/gsm/description/Default)
43 This package contains a shared GSM transcoding library, used by other
47 define Package/gsm-utils
48 $(call Package/gsm/Default)
55 define Package/gsm-utils/description
56 $(call Package/gsm/description/Default)
57 This package contains GSM transcoding utilities.
60 define Build/Configure
63 TARGET_CFLAGS += $(FPIC)
66 rm -rf $(PKG_INSTALL_DIR)
67 mkdir -p $(PKG_INSTALL_DIR)
68 $(MAKE) -C $(PKG_BUILD_DIR) \
69 $(TARGET_CONFIGURE_OPTS) \
71 COPTS="$(TARGET_CFLAGS)" \
72 INSTALL_ROOT="$(PKG_INSTALL_DIR)" \
76 define Package/libgsm/install
77 $(INSTALL_DIR) $(1)/usr/lib
78 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsm.so.* $(1)/usr/lib/
81 define Package/gsm-utils/install
82 $(INSTALL_DIR) $(1)/usr/bin
83 $(CP) $(PKG_INSTALL_DIR)/usr/bin/toast $(1)/usr/bin/
84 (cd $(1)/usr/bin; ln -sf toast untoast; ln -sf toast tcat)
87 define Build/InstallDev
88 $(INSTALL_DIR) $(1)/usr/include/gsm
89 $(CP) $(PKG_INSTALL_DIR)/usr/include/gsm.h $(1)/usr/include/gsm/
90 $(INSTALL_DIR) $(1)/usr/lib
91 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsm.{a,so*} $(1)/usr/lib/
94 $(eval $(call BuildPackage,libgsm))
95 $(eval $(call BuildPackage,gsm-utils))