2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-1.0-pl10
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=ftp://ftp.cs.tu-berlin.de/pub/local/kbs/tubmik/gsm/
18 PKG_MD5SUM:=4b148480f82e96d274248e13880ec873
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23 include $(INCLUDE_DIR)/package.mk
28 TITLE:=A GSM transcoding library
29 URL:=ftp://ftp.cs.tu-berlin.de/pub/local/kbs/tubmik/gsm/
32 define Package/libgsm/description
33 A GSM 06.10 full-rate speech transcoding implementation (library).
34 An implementation of the European GSM 06.10 provisional standard
35 for full-rate speech transcoding, prI-ETS 300 036, which uses
36 RPE/LTP (residual pulse excitation/long term prediction) coding
40 define Package/gsm-utils
44 TITLE:=GSM transcoding utilities
45 URL:=ftp://ftp.cs.tu-berlin.de/pub/local/kbs/tubmik/gsm/
48 define Package/gsm-utils/description
49 A GSM 06.10 full-rate speech transcoding implementation (utilities).
50 An implementation of the European GSM 06.10 provisional standard
51 for full-rate speech transcoding, prI-ETS 300 036, which uses
52 RPE/LTP (residual pulse excitation/long term prediction) coding
56 define Build/Configure
60 rm -rf $(PKG_INSTALL_DIR)
61 mkdir -p $(PKG_INSTALL_DIR)
62 $(MAKE) -C $(PKG_BUILD_DIR) \
63 $(TARGET_CONFIGURE_OPTS) \
65 COPTS="$(TARGET_CFLAGS)" \
66 INSTALL_ROOT="$(PKG_INSTALL_DIR)" \
70 define Package/libgsm/install
71 $(INSTALL_DIR) $(1)/usr/lib
72 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsm.so.* $(1)/usr/lib/
75 define Package/gsm-utils/install
76 $(INSTALL_DIR) $(1)/usr/bin
77 $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
80 define Build/InstallDev
81 mkdir -p $(1)/usr/include
82 $(CP) $(PKG_INSTALL_DIR)/usr/include/gsm.h $(1)/usr/include/
84 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsm.{a,so*} $(1)/usr/lib/
87 define Build/UninstallDev
89 $(STAGING_DIR)/usr/include/gsm.h \
90 $(STAGING_DIR)/usr/lib/libgsm.{a,so*}
93 $(eval $(call BuildPackage,libgsm))
94 $(eval $(call BuildPackage,gsm-utils))