diff options
author | Tim Dickson <dickson.tim@googlemail.com> | 2022-07-15 17:53:19 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-07-17 06:40:07 +0700 |
commit | 2c1bdc5aea3bcbb22aa9b5ad07ce72890ddd7ba9 (patch) | |
tree | 19e4d8993f6f85854b68877bf2bf91a6dc777c31 /libraries/gsm/patches | |
parent | 7a8d59f5126de33dba917998c8830dedb4331632 (diff) | |
download | slackbuilds-2c1bdc5aea3bcbb22aa9b5ad07ce72890ddd7ba9.tar.gz |
libraries/gsm: Updated for version 1.0.20.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/gsm/patches')
-rw-r--r-- | libraries/gsm/patches/gsm-1.0.12-64bit.patch | 16 | ||||
-rw-r--r-- | libraries/gsm/patches/gsm-1.0.12-memcpy.patch | 11 | ||||
-rw-r--r-- | libraries/gsm/patches/gsm-1.0.19-shared.patch | 151 |
3 files changed, 0 insertions, 178 deletions
diff --git a/libraries/gsm/patches/gsm-1.0.12-64bit.patch b/libraries/gsm/patches/gsm-1.0.12-64bit.patch deleted file mode 100644 index bc28c5099c..0000000000 --- a/libraries/gsm/patches/gsm-1.0.12-64bit.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff -ur gsm-1.0-pl12.orig/inc/private.h gsm-1.0-pl12/inc/private.h ---- gsm-1.0-pl12.orig/inc/private.h 2006-04-26 22:17:01.000000000 +0300 -+++ gsm-1.0-pl12/inc/private.h 2007-08-19 12:23:02.000000000 +0300 -@@ -10,10 +10,10 @@ - #define PRIVATE_H - - typedef short word; /* 16 bit signed int */ --typedef long longword; /* 32 bit signed int */ -+typedef int longword; /* 32 bit signed int */ - - typedef unsigned short uword; /* unsigned word */ --typedef unsigned long ulongword; /* unsigned longword */ -+typedef unsigned int ulongword; /* unsigned longword */ - - struct gsm_state { - diff --git a/libraries/gsm/patches/gsm-1.0.12-memcpy.patch b/libraries/gsm/patches/gsm-1.0.12-memcpy.patch deleted file mode 100644 index fc3c1ce232..0000000000 --- a/libraries/gsm/patches/gsm-1.0.12-memcpy.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -ur gsm-1.0-pl12.orig/src/code.c gsm-1.0-pl12/src/code.c ---- gsm-1.0-pl12.orig/src/code.c 2006-04-26 22:16:50.000000000 +0300 -+++ gsm-1.0-pl12/src/code.c 2007-08-19 12:18:01.000000000 +0300 -@@ -8,6 +8,7 @@ - - #include "config.h" - -+#include <string.h> - - #ifdef HAS_STDLIB_H - #include <stdlib.h> diff --git a/libraries/gsm/patches/gsm-1.0.19-shared.patch b/libraries/gsm/patches/gsm-1.0.19-shared.patch deleted file mode 100644 index 3a9141c698..0000000000 --- a/libraries/gsm/patches/gsm-1.0.19-shared.patch +++ /dev/null @@ -1,151 +0,0 @@ -diff -ur gsm-1.0-pl13.orig/Makefile gsm-1.0-pl13/Makefile ---- gsm-1.0-pl19.orig/Makefile 2006-04-26 22:14:26.000000000 +0300 -+++ gsm-1.0-pl19/Makefile 2009-09-08 14:50:02.000000000 +0300 -@@ -96,7 +96,7 @@ - # Other tools - - SHELL = /bin/sh --LN = ln -+LN = ln -s - BASENAME = basename - AR = ar - ARFLAGS = cr -@@ -140,6 +140,7 @@ - # Targets - - LIBGSM = $(LIB)/libgsm.a -+LIBGSMSO= $(LIB)/libgsm.so - - TOAST = $(BIN)/toast - UNTOAST = $(BIN)/untoast -@@ -203,24 +204,43 @@ - - # Object files - --GSM_OBJECTS = $(SRC)/add.o \ -- $(SRC)/code.o \ -- $(SRC)/debug.o \ -- $(SRC)/decode.o \ -- $(SRC)/long_term.o \ -- $(SRC)/lpc.o \ -- $(SRC)/preprocess.o \ -- $(SRC)/rpe.o \ -- $(SRC)/gsm_destroy.o \ -- $(SRC)/gsm_decode.o \ -- $(SRC)/gsm_encode.o \ -- $(SRC)/gsm_explode.o \ -- $(SRC)/gsm_implode.o \ -- $(SRC)/gsm_create.o \ -- $(SRC)/gsm_print.o \ -- $(SRC)/gsm_option.o \ -- $(SRC)/short_term.o \ -- $(SRC)/table.o -+STATIC_GSM_OBJECTS = $(SRC)/add.o \ -+ $(SRC)/code.o \ -+ $(SRC)/debug.o \ -+ $(SRC)/decode.o \ -+ $(SRC)/long_term.o \ -+ $(SRC)/lpc.o \ -+ $(SRC)/preprocess.o \ -+ $(SRC)/rpe.o \ -+ $(SRC)/gsm_destroy.o \ -+ $(SRC)/gsm_decode.o \ -+ $(SRC)/gsm_encode.o \ -+ $(SRC)/gsm_explode.o \ -+ $(SRC)/gsm_implode.o \ -+ $(SRC)/gsm_create.o \ -+ $(SRC)/gsm_print.o \ -+ $(SRC)/gsm_option.o \ -+ $(SRC)/short_term.o \ -+ $(SRC)/table.o -+ -+SHARED_GSM_OBJECTS = $(SRC)/add.lo \ -+ $(SRC)/code.lo \ -+ $(SRC)/debug.lo \ -+ $(SRC)/decode.lo \ -+ $(SRC)/long_term.lo \ -+ $(SRC)/lpc.lo \ -+ $(SRC)/preprocess.lo \ -+ $(SRC)/rpe.lo \ -+ $(SRC)/gsm_destroy.lo \ -+ $(SRC)/gsm_decode.lo \ -+ $(SRC)/gsm_encode.lo \ -+ $(SRC)/gsm_explode.lo \ -+ $(SRC)/gsm_implode.lo \ -+ $(SRC)/gsm_create.lo \ -+ $(SRC)/gsm_print.lo \ -+ $(SRC)/gsm_option.lo \ -+ $(SRC)/short_term.lo \ -+ $(SRC)/table.lo - - TOAST_OBJECTS = $(SRC)/toast.o \ - $(SRC)/toast_lin.o \ -@@ -228,7 +248,7 @@ - $(SRC)/toast_alaw.o \ - $(SRC)/toast_audio.o - --OBJECTS = $(GSM_OBJECTS) $(TOAST_OBJECTS) -+OBJECTS = $(STATIC_GSM_OBJECTS) $(SHARED_GSM_OBJECTS) $(TOAST_OBJECTS) - - # Manuals - -@@ -277,9 +297,12 @@ - $(CC) $(CFLAGS) $? - @-mv `$(BASENAME) $@` $@ > /dev/null 2>&1 - -+%.lo: %.c -+ $(CC) $(CFLAGS) -fPIC -c $< -o $@ -+ - # Target rules - --all: $(LIBGSM) $(TOAST) $(TCAT) $(UNTOAST) -+all: $(LIBGSM) $(LIBGSMSO) $(TOAST) $(TCAT) $(UNTOAST) - @-echo $(ROOT): Done. - - tst: $(TST)/lin2cod $(TST)/cod2lin $(TOAST) $(TST)/test-result -@@ -299,24 +322,29 @@ - - # The basic API: libgsm - --$(LIBGSM): $(LIB) $(GSM_OBJECTS) -+$(LIBGSMSO): $(LIB) $(SHARED_GSM_OBJECTS) -+ $(LD) $(LFLAGS) -o $@.1.0.19 -shared -Xlinker -soname -Xlinker libgsm.so.1 $(SHARED_GSM_OBJECTS) -lc -+ ln -fs libgsm.so.1.0.19 lib/libgsm.so.1 -+ ln -fs libgsm.so.1.0.19 lib/libgsm.so -+ -+$(LIBGSM): $(LIB) $(STATIC_GSM_OBJECTS) - -rm $(RMFLAGS) $(LIBGSM) -- $(AR) $(ARFLAGS) $(LIBGSM) $(GSM_OBJECTS) -+ $(AR) $(ARFLAGS) $(LIBGSM) $(STATIC_GSM_OBJECTS) - $(RANLIB) $(LIBGSM) - - - # Toast, Untoast and Tcat -- the compress-like frontends to gsm. - - $(TOAST): $(BIN) $(TOAST_OBJECTS) $(LIBGSM) -- $(LD) $(LFLAGS) -o $(TOAST) $(TOAST_OBJECTS) $(LIBGSM) $(LDLIB) -+ $(LD) $(LFLAGS) -o $(TOAST) $(TOAST_OBJECTS) $(LIBGSMSO) $(LDLIB) - - $(UNTOAST): $(BIN) $(TOAST) - -rm $(RMFLAGS) $(UNTOAST) -- $(LN) $(TOAST) $(UNTOAST) -+ $(LN) toast $(UNTOAST) - - $(TCAT): $(BIN) $(TOAST) - -rm $(RMFLAGS) $(TCAT) -- $(LN) $(TOAST) $(TCAT) -+ $(LN) toast $(TCAT) - - - # The local bin and lib directories -@@ -426,7 +454,9 @@ - - clean: semi-clean - -rm $(RMFLAGS) $(LIBGSM) $(ADDTST)/add \ -- $(TOAST) $(TCAT) $(UNTOAST) \ -+ $(LIBGSMSO) $(LIB)/libgsm.so.1.0.19 \ -+ $(LIB)libgsm.so.1 \ -+ $(TOAST) $(TCAT) $(UNTOAST) \ - $(ROOT)/gsm-1.0.tar.Z - - |