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 DESCRIPTION:=A GSM 06.10 full-rate speech transcoding implementation (library).\\\
30 An implementation of the European GSM 06.10 provisional standard \\\
31 for full-rate speech transcoding, prI-ETS 300 036, which uses \\\
32 RPE/LTP (residual pulse excitation/long term prediction) coding \\\
34 URL:=ftp://ftp.cs.tu-berlin.de/pub/local/kbs/tubmik/gsm/
37 define Package/gsm-utils
41 TITLE:=GSM transcoding utilities
42 DESCRIPTION:=A GSM 06.10 full-rate speech transcoding implementation (utilities).\\\
43 An implementation of the European GSM 06.10 provisional standard \\\
44 for full-rate speech transcoding, prI-ETS 300 036, which uses \\\
45 RPE/LTP (residual pulse excitation/long term prediction) coding \\\
47 URL:=ftp://ftp.cs.tu-berlin.de/pub/local/kbs/tubmik/gsm/
50 define Build/Configure
54 rm -rf $(PKG_INSTALL_DIR)
55 mkdir -p $(PKG_INSTALL_DIR)
56 $(MAKE) -C $(PKG_BUILD_DIR) \
57 $(TARGET_CONFIGURE_OPTS) \
59 COPTS="$(TARGET_CFLAGS)" \
60 INSTALL_ROOT="$(PKG_INSTALL_DIR)" \
64 define Package/libgsm/install
65 $(INSTALL_DIR) $(1)/usr/lib
66 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsm.so.* $(1)/usr/lib/
69 define Package/gsm-utils/install
70 $(INSTALL_DIR) $(1)/usr/bin
71 $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
74 define Build/InstallDev
75 mkdir -p $(STAGING_DIR)/usr/include
76 $(CP) $(PKG_INSTALL_DIR)/usr/include/gsm.h $(STAGING_DIR)/usr/include/
77 mkdir -p $(STAGING_DIR)/usr/lib
78 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsm.{a,so*} $(STAGING_DIR)/usr/lib/
81 define Build/UninstallDev
83 $(STAGING_DIR)/usr/include/gsm.h \
84 $(STAGING_DIR)/usr/lib/libgsm.{a,so*}
87 $(eval $(call BuildPackage,libgsm))
88 $(eval $(call BuildPackage,gsm-utils))