Makefile cleanups, round 5
[openwrt/svn-archive/archive.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 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libgsm
23 SECTION:=libs
24 CATEGORY:=Libraries
25 TITLE:=A GSM transcoding library
26 URL:=ftp://ftp.cs.tu-berlin.de/pub/local/kbs/tubmik/gsm/
27 endef
28
29 define Package/libgsm/description
30 A GSM 06.10 full-rate speech transcoding implementation (library).
31 An implementation of the European GSM 06.10 provisional standard
32 for full-rate speech transcoding, prI-ETS 300 036, which uses
33 RPE/LTP (residual pulse excitation/long term prediction) coding
34 at 13 kbit/s.
35 endef
36
37 define Package/gsm-utils
38 SECTION:=utils
39 CATEGORY:=Utilities
40 DEPENDS:=+libgsm
41 TITLE:=GSM transcoding utilities
42 URL:=ftp://ftp.cs.tu-berlin.de/pub/local/kbs/tubmik/gsm/
43 endef
44
45 define Package/gsm-utils/description
46 A GSM 06.10 full-rate speech transcoding implementation (utilities).
47 An implementation of the European GSM 06.10 provisional standard
48 for full-rate speech transcoding, prI-ETS 300 036, which uses
49 RPE/LTP (residual pulse excitation/long term prediction) coding
50 at 13 kbit/s.
51 endef
52
53 define Build/Configure
54 endef
55
56 define Build/Compile
57 rm -rf $(PKG_INSTALL_DIR)
58 mkdir -p $(PKG_INSTALL_DIR)
59 $(MAKE) -C $(PKG_BUILD_DIR) \
60 $(TARGET_CONFIGURE_OPTS) \
61 LD="$(TARGET_CC)" \
62 COPTS="$(TARGET_CFLAGS)" \
63 INSTALL_ROOT="$(PKG_INSTALL_DIR)" \
64 all install
65 endef
66
67 define Package/libgsm/install
68 $(INSTALL_DIR) $(1)/usr/lib
69 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsm.so.* $(1)/usr/lib/
70 endef
71
72 define Package/gsm-utils/install
73 $(INSTALL_DIR) $(1)/usr/bin
74 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
75 endef
76
77 define Build/InstallDev
78 mkdir -p $(1)/usr/include/gsm
79 $(CP) $(PKG_INSTALL_DIR)/usr/include/gsm.h $(1)/usr/include/gsm/
80 mkdir -p $(1)/usr/lib
81 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsm.{a,so*} $(1)/usr/lib/
82 endef
83
84 $(eval $(call BuildPackage,libgsm))
85 $(eval $(call BuildPackage,gsm-utils))