tinc: moved to github
[openwrt.org/packages.git] / libs / Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#
# Copyright (C) 2006-2009 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
 
include $(TOPDIR)/rules.mk
 
PKG_NAME:=gsm
PKG_VERSION:=1.0.13
PKG_RELEASE:=1
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://user.cs.tu-berlin.de/~jutta/gsm/
PKG_MD5SUM:=c1ba392ce61dc4aff1c29ea4e92f6df4
 
PKG_LICENSE:=FREE
PKG_LICENSE_FILES:=COPYRIGHT
 
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-1.0-pl13
 
include $(INCLUDE_DIR)/package.mk
 
define Package/gsm/Default
  TITLE:=GSM transcoding
  URL:=http://user.cs.tu-berlin.de/~jutta/toast.html
endef
 
define Package/gsm/description/Default
 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.
endef
 
define Package/libgsm
$(call Package/gsm/Default)
  SECTION:=libs
  CATEGORY:=Libraries
  TITLE+= library
endef
 
define Package/libgsm/description
$(call Package/gsm/description/Default)
 This package contains a shared GSM transcoding library, used by other
 programs.
endef
 
define Package/gsm-utils
$(call Package/gsm/Default)
  SECTION:=utils
  CATEGORY:=Utilities
  DEPENDS:=+libgsm
  TITLE+= utilities
endef
 
define Package/gsm-utils/description
$(call Package/gsm/description/Default)
 This package contains GSM transcoding utilities.
endef
 
define Build/Configure
endef
 
TARGET_CFLAGS += $(FPIC)
 
define Build/Compile
        $(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
        $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsm.so.* $(1)/usr/lib/
endef
 
define Package/gsm-utils/install
        $(INSTALL_DIR) $(1)/usr/bin
        $(CP) $(PKG_INSTALL_DIR)/usr/bin/toast $(1)/usr/bin/
        (cd $(1)/usr/bin; ln -sf toast untoast; ln -sf toast tcat)
endef
 
define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include/gsm
        $(CP) $(PKG_INSTALL_DIR)/usr/include/gsm.h $(1)/usr/include/gsm/
        $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsm.{a,so*} $(1)/usr/lib/
endef
 
$(eval $(call BuildPackage,libgsm))
$(eval $(call BuildPackage,gsm-utils))
 
comments