DESCRIPTION:= is obselete
[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 PKG_CAT:=zcat
20
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/libgsm
26   SECTION:=libs
27   CATEGORY:=Libraries
28   TITLE:=A GSM transcoding library
29   URL:=ftp://ftp.cs.tu-berlin.de/pub/local/kbs/tubmik/gsm/
30 endef
31
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 
37         at 13 kbit/s.
38 endef
39
40 define Package/gsm-utils
41   SECTION:=utils
42   CATEGORY:=Utilities
43   DEPENDS:=+libgsm
44   TITLE:=GSM transcoding utilities
45   URL:=ftp://ftp.cs.tu-berlin.de/pub/local/kbs/tubmik/gsm/
46 endef
47
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 
53         at 13 kbit/s.
54 endef
55
56 define Build/Configure
57 endef
58
59 define Build/Compile
60         rm -rf $(PKG_INSTALL_DIR)
61         mkdir -p $(PKG_INSTALL_DIR)
62         $(MAKE) -C $(PKG_BUILD_DIR) \
63                 $(TARGET_CONFIGURE_OPTS) \
64                 LD="$(TARGET_CC)" \
65                 COPTS="$(TARGET_CFLAGS)" \
66                 INSTALL_ROOT="$(PKG_INSTALL_DIR)" \
67                 all install
68 endef
69
70 define Package/libgsm/install
71         $(INSTALL_DIR) $(1)/usr/lib
72         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsm.so.* $(1)/usr/lib/
73 endef
74
75 define Package/gsm-utils/install
76         $(INSTALL_DIR) $(1)/usr/bin
77         $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
78 endef
79
80 define Build/InstallDev
81         mkdir -p $(1)/usr/include
82         $(CP) $(PKG_INSTALL_DIR)/usr/include/gsm.h $(1)/usr/include/
83         mkdir -p $(1)/usr/lib
84         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsm.{a,so*} $(1)/usr/lib/
85 endef
86
87 define Build/UninstallDev
88         rm -rf \
89                 $(STAGING_DIR)/usr/include/gsm.h \
90                 $(STAGING_DIR)/usr/lib/libgsm.{a,so*}
91 endef
92
93 $(eval $(call BuildPackage,libgsm))
94 $(eval $(call BuildPackage,gsm-utils))