2006-07-23 12:16:14 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=gsm
|
|
|
|
PKG_VERSION:=1.0.10
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-1.0-pl10
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=ftp://ftp.cs.tu-berlin.de/pub/local/kbs/tubmik/gsm/
|
|
|
|
PKG_MD5SUM:=4b148480f82e96d274248e13880ec873
|
|
|
|
PKG_CAT:=zcat
|
|
|
|
|
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libgsm
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=A GSM transcoding library
|
|
|
|
DESCRIPTION:=A GSM 06.10 full-rate speech transcoding implementation (library).\\\
|
|
|
|
An implementation of the European GSM 06.10 provisional standard \\\
|
|
|
|
for full-rate speech transcoding, prI-ETS 300 036, which uses \\\
|
|
|
|
RPE/LTP (residual pulse excitation/long term prediction) coding \\\
|
|
|
|
at 13 kbit/s.
|
|
|
|
URL:=ftp://ftp.cs.tu-berlin.de/pub/local/kbs/tubmik/gsm/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/gsm-utils
|
2006-07-26 01:26:21 +00:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
DEPENDS:=+libgsm
|
2006-07-23 12:16:14 +00:00
|
|
|
TITLE:=GSM transcoding utilities
|
|
|
|
DESCRIPTION:=A GSM 06.10 full-rate speech transcoding implementation (utilities).\\\
|
|
|
|
An implementation of the European GSM 06.10 provisional standard \\\
|
|
|
|
for full-rate speech transcoding, prI-ETS 300 036, which uses \\\
|
|
|
|
RPE/LTP (residual pulse excitation/long term prediction) coding \\\
|
|
|
|
at 13 kbit/s.
|
|
|
|
URL:=ftp://ftp.cs.tu-berlin.de/pub/local/kbs/tubmik/gsm/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
rm -rf $(PKG_INSTALL_DIR)
|
|
|
|
mkdir -p $(PKG_INSTALL_DIR)
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
LD="$(TARGET_CC)" \
|
|
|
|
COPTS="$(TARGET_CFLAGS)" \
|
|
|
|
INSTALL_ROOT="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libgsm/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2006-07-23 12:16:14 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsm.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/gsm-utils/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2006-07-23 12:16:14 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
mkdir -p $(STAGING_DIR)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/gsm.h $(STAGING_DIR)/usr/include/
|
|
|
|
mkdir -p $(STAGING_DIR)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsm.{a,so*} $(STAGING_DIR)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/UninstallDev
|
|
|
|
rm -rf \
|
|
|
|
$(STAGING_DIR)/usr/include/gsm.h \
|
|
|
|
$(STAGING_DIR)/usr/lib/libgsm.{a,so*}
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libgsm))
|
|
|
|
$(eval $(call BuildPackage,gsm-utils))
|