summaryrefslogtreecommitdiff
path: root/audio/gsm/patches
diff options
context:
space:
mode:
Diffstat (limited to 'audio/gsm/patches')
-rw-r--r--audio/gsm/patches/patch-Makefile (renamed from audio/gsm/patches/patch-ab)36
-rw-r--r--audio/gsm/patches/patch-ac12
-rw-r--r--audio/gsm/patches/patch-inc_config.h (renamed from audio/gsm/patches/patch-aa)4
3 files changed, 21 insertions, 31 deletions
diff --git a/audio/gsm/patches/patch-ab b/audio/gsm/patches/patch-Makefile
index 1bb2890cc52..456228b5d1b 100644
--- a/audio/gsm/patches/patch-ab
+++ b/audio/gsm/patches/patch-Makefile
@@ -1,26 +1,27 @@
-$NetBSD: patch-ab,v 1.11 2018/01/17 12:03:01 wiz Exp $
+$NetBSD: patch-Makefile,v 1.1 2019/06/15 08:41:30 adam Exp $
---- Makefile.orig 2006-04-26 19:14:26.000000000 +0000
+Do not overwrite compiler flags.
+Use proper installation tools and paths.
+
+--- Makefile.orig 2018-05-06 02:07:28.000000000 +0000
+++ Makefile
-@@ -43,7 +43,7 @@ WAV49 = -DWAV49
+@@ -43,7 +43,6 @@ WAV49 = -DWAV49
# CC = /usr/lang/acc
# CCFLAGS = -c -O
-CC = gcc -ansi -pedantic
-+# CC = gcc -ansi -pedantic
- CCFLAGS = -c -O2 -DNeedFunctionPrototypes=1
+ CCFLAGS = -c -O2 -DNeedFunctionPrototypes=1 -Wall -Wno-comment
LD = $(CC)
-@@ -71,7 +71,7 @@ LD = $(CC)
+@@ -71,7 +70,6 @@ LD = $(CC)
# Leave INSTALL_ROOT empty (or just don't execute "make install") to
# not install gsm and toast outside of this directory.
-INSTALL_ROOT =
-+# INSTALL_ROOT =
# Where do you want to install the gsm library, header file, and manpages?
#
-@@ -80,8 +80,8 @@ INSTALL_ROOT =
+@@ -80,8 +78,8 @@ INSTALL_ROOT =
GSM_INSTALL_ROOT = $(INSTALL_ROOT)
GSM_INSTALL_LIB = $(GSM_INSTALL_ROOT)/lib
@@ -31,7 +32,7 @@ $NetBSD: patch-ab,v 1.11 2018/01/17 12:03:01 wiz Exp $
# Where do you want to install the toast binaries and their manpage?
-@@ -91,13 +91,14 @@ GSM_INSTALL_MAN = $(GSM_INSTALL_ROOT)/ma
+@@ -91,13 +89,14 @@ GSM_INSTALL_MAN = $(GSM_INSTALL_ROOT)/ma
TOAST_INSTALL_ROOT = $(INSTALL_ROOT)
TOAST_INSTALL_BIN = $(TOAST_INSTALL_ROOT)/bin
@@ -48,16 +49,15 @@ $NetBSD: patch-ab,v 1.11 2018/01/17 12:03:01 wiz Exp $
AR = ar
ARFLAGS = cr
RMFLAGS =
-@@ -114,7 +115,7 @@ RANLIB = ranlib
+@@ -114,7 +113,6 @@ RANLIB = ranlib
# Local Directories
-ROOT = .
-+#ROOT = .
ADDTST = $(ROOT)/add-test
TST = $(ROOT)/tst
MAN = $(ROOT)/man
-@@ -129,7 +130,7 @@ INC = $(ROOT)/inc
+@@ -129,7 +127,7 @@ INC = $(ROOT)/inc
# DEBUG = -DNDEBUG
######### Remove -DNDEBUG to enable assertions.
@@ -66,7 +66,7 @@ $NetBSD: patch-ab,v 1.11 2018/01/17 12:03:01 wiz Exp $
$(WAV49) $(CCINC) -I$(INC)
######### It's $(CC) $(CFLAGS)
-@@ -139,7 +140,7 @@ LFLAGS = $(LDFLAGS) $(LDINC)
+@@ -139,7 +137,7 @@ LFLAGS = $(LDFLAGS) $(LDINC)
# Targets
@@ -75,7 +75,7 @@ $NetBSD: patch-ab,v 1.11 2018/01/17 12:03:01 wiz Exp $
TOAST = $(BIN)/toast
UNTOAST = $(BIN)/untoast
-@@ -257,7 +258,7 @@ STUFF = ChangeLog \
+@@ -257,7 +255,7 @@ STUFF = ChangeLog \
# Install targets
GSM_INSTALL_TARGETS = \
@@ -84,7 +84,7 @@ $NetBSD: patch-ab,v 1.11 2018/01/17 12:03:01 wiz Exp $
$(GSM_INSTALL_INC)/gsm.h \
$(GSM_INSTALL_MAN)/gsm.3 \
$(GSM_INSTALL_MAN)/gsm_explode.3 \
-@@ -273,10 +274,15 @@ TOAST_INSTALL_TARGETS = \
+@@ -273,10 +271,15 @@ TOAST_INSTALL_TARGETS = \
# Default rules
@@ -100,7 +100,7 @@ $NetBSD: patch-ab,v 1.11 2018/01/17 12:03:01 wiz Exp $
# Target rules
all: $(LIBGSM) $(TOAST) $(TCAT) $(UNTOAST)
-@@ -299,16 +305,20 @@ install: toastinstall gsminstall
+@@ -299,16 +302,20 @@ install: toastinstall gsminstall
# The basic API: libgsm
@@ -125,7 +125,7 @@ $NetBSD: patch-ab,v 1.11 2018/01/17 12:03:01 wiz Exp $
$(UNTOAST): $(BIN) $(TOAST)
-rm $(RMFLAGS) $(UNTOAST)
-@@ -332,12 +342,12 @@ $(LIB):
+@@ -332,12 +339,12 @@ $(LIB):
gsminstall:
-if [ x"$(GSM_INSTALL_ROOT)" != x ] ; then \
@@ -140,7 +140,7 @@ $NetBSD: patch-ab,v 1.11 2018/01/17 12:03:01 wiz Exp $
fi
gsmuninstall:
-@@ -351,52 +361,34 @@ toastuninstall:
+@@ -351,52 +358,34 @@ toastuninstall:
fi
$(TOAST_INSTALL_BIN)/toast: $(TOAST)
diff --git a/audio/gsm/patches/patch-ac b/audio/gsm/patches/patch-ac
deleted file mode 100644
index 900cf1b4f33..00000000000
--- a/audio/gsm/patches/patch-ac
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-ac,v 1.2 2009/02/03 06:09:09 obache Exp $
-
---- src/code.c.orig 2006-04-26 19:16:50.000000000 +0000
-+++ src/code.c
-@@ -11,6 +11,7 @@
-
- #ifdef HAS_STDLIB_H
- #include <stdlib.h>
-+#include <string.h>
- #else
- # include "proto.h"
- extern char * memcpy P((char *, char *, int));
diff --git a/audio/gsm/patches/patch-aa b/audio/gsm/patches/patch-inc_config.h
index 7684c512703..33652d5052d 100644
--- a/audio/gsm/patches/patch-aa
+++ b/audio/gsm/patches/patch-inc_config.h
@@ -1,4 +1,6 @@
-$NetBSD: patch-aa,v 1.4 2009/02/03 06:09:09 obache Exp $
+$NetBSD: patch-inc_config.h,v 1.1 2019/06/15 08:41:30 adam Exp $
+
+Add support for Interix.
--- inc/config.h.orig 2006-04-26 19:14:26.000000000 +0000
+++ inc/config.h