12ffa72a324a5f34c8a610fa866fa0a3d0933552
[packages.git] / libs / gsm / Makefile
1
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=gsm
12 PKG_VERSION:=1.0.10
13 PKG_RELEASE:=1
14
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
19
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/libgsm
25   SECTION:=libs
26   CATEGORY:=Libraries
27   TITLE:=A GSM transcoding library
28   URL:=ftp://ftp.cs.tu-berlin.de/pub/local/kbs/tubmik/gsm/
29 endef
30
31 define Package/libgsm/description
32 A GSM 06.10 full-rate speech transcoding implementation (library).
33         An implementation of the European GSM 06.10 provisional standard 
34         for full-rate speech transcoding, prI-ETS 300 036, which uses 
35         RPE/LTP (residual pulse excitation/long term prediction) coding 
36         at 13 kbit/s.
37 endef
38
39 define Package/gsm-utils
40   SECTION:=utils
41   CATEGORY:=Utilities
42   DEPENDS:=+libgsm
43   TITLE:=GSM transcoding utilities
44   URL:=ftp://ftp.cs.tu-berlin.de/pub/local/kbs/tubmik/gsm/
45 endef
46
47 define Package/gsm-utils/description
48 A GSM 06.10 full-rate speech transcoding implementation (utilities).
49         An implementation of the European GSM 06.10 provisional standard 
50         for full-rate speech transcoding, prI-ETS 300 036, which uses 
51         RPE/LTP (residual pulse excitation/long term prediction) coding 
52         at 13 kbit/s.
53 endef
54
55 define Build/Configure
56 endef
57
58 define Build/Compile
59         rm -rf $(PKG_INSTALL_DIR)
60         mkdir -p $(PKG_INSTALL_DIR)
61         $(MAKE) -C $(PKG_BUILD_DIR) \
62                 $(TARGET_CONFIGURE_OPTS) \
63                 LD="$(TARGET_CC)" \
64                 COPTS="$(TARGET_CFLAGS)" \
65                 INSTALL_ROOT="$(PKG_INSTALL_DIR)" \
66                 all install
67 endef
68
69 define Package/libgsm/install
70         $(INSTALL_DIR) $(1)/usr/lib
71         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsm.so.* $(1)/usr/lib/
72 endef
73
74 define Package/gsm-utils/install
75         $(INSTALL_DIR) $(1)/usr/bin
76         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
77 endef
78
79 define Build/InstallDev
80         mkdir -p $(1)/usr/include
81         $(CP) $(PKG_INSTALL_DIR)/usr/include/gsm.h $(1)/usr/include/
82         mkdir -p $(1)/usr/lib
83         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsm.{a,so*} $(1)/usr/lib/
84 endef
85
86 $(eval $(call BuildPackage,libgsm))
87 $(eval $(call BuildPackage,gsm-utils))