summaryrefslogtreecommitdiff
path: root/repo/gsm/gsm.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-06 21:25:48 +0000
committerdavidovski <david@davidovski.xyz>2022-06-06 21:25:48 +0000
commitccc722b7ed330198d82a3cf28ead76d6d107a70a (patch)
tree7611b3cc4f3ca681524fa28b174a0253eb802e0e /repo/gsm/gsm.xibuild
parent9ee32689f0b57b9e1de6d22c84ce8e3700b6122b (diff)
added java
Diffstat (limited to 'repo/gsm/gsm.xibuild')
-rw-r--r--repo/gsm/gsm.xibuild44
1 files changed, 44 insertions, 0 deletions
diff --git a/repo/gsm/gsm.xibuild b/repo/gsm/gsm.xibuild
new file mode 100644
index 0000000..e5e12cd
--- /dev/null
+++ b/repo/gsm/gsm.xibuild
@@ -0,0 +1,44 @@
+#!/bin/sh
+
+NAME="gsm"
+DESC="Shared libraries for GSM speech compressor"
+
+MAKEDEPS=""
+
+PKG_VER=1.0.19
+SOURCE="http://www.quut.com/gsm/gsm-$PKG_VER.tar.gz"
+
+ADDITIONAL="
+gsm-64bit.patch
+gsm-makefile.patch
+"
+_soname=1.0.12
+
+build() {
+ export RPM_OPT_FLAGS="$CFLAGS -fPIC"
+ make all
+}
+
+check() {
+ make addtst
+}
+
+package() {
+ mkdir -p "$PKG_DEST"/usr/bin \
+ "$PKG_DEST"/usr/include/gsm \
+ "$PKG_DEST"/usr/lib \
+ "$PKG_DEST"/usr/share/man/man1 \
+ "$PKG_DEST"/usr/share/man/man3
+
+ make -j1 install \
+ INSTALL_ROOT="$PKG_DEST"/usr \
+ GSM_INSTALL_INC="$PKG_DEST"/usr/include/gsm \
+ GSM_INSTALL_LIB="$PKG_DEST"/usr/lib
+ cp -p lib/libgsm.so.$_soname "$PKG_DEST"/usr/lib/
+ ln -s libgsm.so.$_soname "$PKG_DEST"/usr/lib/libgsm.so.1
+ ln -s libgsm.so.$_soname "$PKG_DEST"/usr/lib/libgsm.so
+
+ ln -s gsm/gsm.h "$PKG_DEST"/usr/include/
+ rm -f "$PKG_DEST"/usr/lib/lib*.a
+}
+