2011-10-26 22:26:34 +00:00
|
|
|
# Template file for 'libgsm'
|
|
|
|
pkgname=libgsm
|
|
|
|
version=1.0.13
|
2015-01-15 09:23:40 +00:00
|
|
|
wrksrc="gsm-1.0-pl13"
|
2015-02-18 14:25:51 +00:00
|
|
|
revision=14
|
2011-10-26 22:26:34 +00:00
|
|
|
homepage="http://www.quut.com/gsm/"
|
2012-05-23 09:36:53 +00:00
|
|
|
distfiles="http://www.mangler.org/downloads/${pkgname}-${version}.tar.gz"
|
2011-10-26 22:26:34 +00:00
|
|
|
short_desc="GSM 06.10 lossy speech compression"
|
2014-06-08 09:52:36 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2014-02-20 16:55:46 +00:00
|
|
|
license="BSD"
|
2011-10-26 22:26:34 +00:00
|
|
|
checksum=52c518244d428c2e56c543b98c9135f4a76ff780c32455580b793f60a0a092ad
|
|
|
|
|
2011-11-03 11:04:27 +00:00
|
|
|
do_build() {
|
2015-02-16 09:44:34 +00:00
|
|
|
make CC=$CC LD=$CC AR=$AR CCFLAGS="$CFLAGS -c -DNeedFunctionPrototypes=1"
|
2011-10-26 22:26:34 +00:00
|
|
|
}
|
2011-11-03 11:04:27 +00:00
|
|
|
do_install() {
|
|
|
|
vmkdir usr/bin
|
2015-02-16 09:36:30 +00:00
|
|
|
vmkdir usr/lib
|
|
|
|
vmkdir usr/include/gsm
|
|
|
|
vmkdir usr/share/man/man3
|
|
|
|
vmkdir usr/share/man/man1
|
2013-04-13 08:15:49 +00:00
|
|
|
|
|
|
|
install -m755 bin/* ${DESTDIR}/usr/bin
|
|
|
|
install -m644 lib/*.a ${DESTDIR}/usr/lib
|
|
|
|
install -m644 inc/* ${DESTDIR}/usr/include/gsm
|
|
|
|
|
2015-02-16 09:36:30 +00:00
|
|
|
vinstall lib/libgsm.so.${version} 755 usr/lib
|
|
|
|
vcopy lib/libgsm.so usr/lib
|
|
|
|
vcopy lib/libgsm.so.1 usr/lib
|
|
|
|
|
2013-04-13 08:15:49 +00:00
|
|
|
rm -f ${DESTDIR}/usr/include/gsm/*.orig
|
2013-04-16 08:30:46 +00:00
|
|
|
ln -sfr ${DESTDIR}/usr/include/gsm/gsm.h ${DESTDIR}/usr/include/gsm.h
|
2013-04-13 08:15:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
libgsm-devel_package() {
|
2014-02-20 16:55:46 +00:00
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
|
|
short_desc+=" - development files"
|
2013-04-13 08:15:49 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
2015-02-16 09:36:30 +00:00
|
|
|
vmove usr/lib/*.a
|
|
|
|
vmove usr/lib/*.so
|
2013-04-13 08:15:49 +00:00
|
|
|
}
|
|
|
|
}
|