2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
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
20 include $(INCLUDE_DIR
)/package.mk
25 TITLE
:=A GSM transcoding library
26 URL
:=ftp
://ftp.cs.tu-berlin.de
/pub
/local
/kbs
/tubmik
/gsm
/
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
37 define Package
/gsm-utils
41 TITLE
:=GSM transcoding utilities
42 URL
:=ftp
://ftp.cs.tu-berlin.de
/pub
/local
/kbs
/tubmik
/gsm
/
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
53 define Build
/Configure
56 TARGET_CFLAGS
+= $(FPIC
)
59 rm -rf
$(PKG_INSTALL_DIR
)
60 mkdir
-p
$(PKG_INSTALL_DIR
)
61 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
62 $(TARGET_CONFIGURE_OPTS
) \
64 COPTS
="$(TARGET_CFLAGS)" \
65 INSTALL_ROOT
="$(PKG_INSTALL_DIR)" \
69 define Package
/libgsm
/install
70 $(INSTALL_DIR
) $(1)/usr
/lib
71 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libgsm.so.
* $(1)/usr
/lib
/
74 define Package
/gsm-utils
/install
75 $(INSTALL_DIR
) $(1)/usr
/bin
76 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/toast
$(1)/usr
/bin
/
77 (cd
$(1)/usr
/bin
; ln
-s toast untoast
; ln
-s toast tcat
)
80 define Build
/InstallDev
81 mkdir
-p
$(1)/usr
/include/gsm
82 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/gsm.h
$(1)/usr
/include/gsm
/
84 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libgsm.
{a
,so
*} $(1)/usr
/lib
/
87 $(eval
$(call BuildPackage
,libgsm
))
88 $(eval
$(call BuildPackage
,gsm-utils
))