gsm stable port information

Package: gsm
Version: 1.0.10
Revision: 1
Source: ftp://ftp.cs.tu-berlin.de/pub/local/kbs/tubmik/gsm/gsm-%v.tar.gz
Source-MD5: 4b148480f82e96d274248e13880ec873
SourceDirectory: gsm-1.0-pl10
Patch: %n.patch
CompileScript: make
InstallScript: make install INSTALL_ROOT=%i
DocFiles: README COPYRIGHT
Description: GSM speech compression utilities and libs
DescDetail: <<
Contains runtime shared libraries for libgsm, an implementation of the
European GSM 06.10 provisional standard for full-rate speech
transcoding, prI-ETS 300 036, which uses RPE/LTP (residual pulse
excitation/long term prediction) coding at 13 kbit/s.

GSM 06.10 compresses frames of 160 13-bit samples (8 kHz sampling rate,
i.e. a frame rate of 50 Hz) into 260 bits; for compatibility with
typical UNIX applications, our implementation turns frames of 160 16-bit
linear samples into 33-byte frames (1650 Bytes/s). The quality of the
algorithm is good enough for reliable speaker recognition; even music
often survives transcoding in recognizable form (given the bandwidth
limitations of 8 kHz sampling rate).

The interfaces offered are a front end modelled after compress(1), and a
library API. Compression and decompression run faster than realtime on
most SPARCstations. The implementation has been verified against the
ETSI standard test patterns.
<<
DescPackaging: <<
Patches the Makefile to set the compiler and the man path and corrects
the install rules to create directories before installing into them..
<<
License: Public Domain
Maintainer: Leigh Smith
Homepage: http://kbs.cs.tu-berlin.de/~jutta/toast.html

gsm stable port .patch

diff -c gsm-1.0-pl10/Makefile gsm-1.0-pl10-patched/Makefile
*** gsm-1.0-pl10/Makefile Tue Jul 2 10:36:06 1996
--- gsm-1.0-pl10-patched/Makefile Wed Nov 14 11:34:00 2001
***************
*** 22,29 ****
######### both integer and floating point multiplications.
######### This flag is still in the experimental stage.

! #WAV49 = -DWAV49
! WAV49 =
######### Define to enable the GSM library's option to pack GSM frames
######### in the style used by the WAV #49 format. If you want to write
######### a tool that produces .WAV files which contain GSM-encoded data,
--- 22,29 ----
######### both integer and floating point multiplications.
######### This flag is still in the experimental stage.

! WAV49 = -DWAV49
! #WAV49 =
######### Define to enable the GSM library's option to pack GSM frames
######### in the style used by the WAV #49 format. If you want to write
######### a tool that produces .WAV files which contain GSM-encoded data,
***************
*** 43,49 ****
# CC = /usr/lang/acc
# CCFLAGS = -c -O

! CC = gcc -ansi -pedantic
CCFLAGS = -c -O2 -DNeedFunctionPrototypes=1

LD = $(CC)
--- 43,49 ----
# CC = /usr/lang/acc
# CCFLAGS = -c -O

! CC = cc -ansi -pedantic
CCFLAGS = -c -O2 -DNeedFunctionPrototypes=1

LD = $(CC)
***************
*** 80,87 ****

GSM_INSTALL_ROOT = $(INSTALL_ROOT)
GSM_INSTALL_LIB = $(GSM_INSTALL_ROOT)/lib
! GSM_INSTALL_INC = $(GSM_INSTALL_ROOT)/inc
! GSM_INSTALL_MAN = $(GSM_INSTALL_ROOT)/man/man3


# Where do you want to install the toast binaries and their manpage?
--- 80,87 ----

GSM_INSTALL_ROOT = $(INSTALL_ROOT)
GSM_INSTALL_LIB = $(GSM_INSTALL_ROOT)/lib
! GSM_INSTALL_INC = $(GSM_INSTALL_ROOT)/include
! GSM_INSTALL_MAN = $(GSM_INSTALL_ROOT)/share/man/man3


# Where do you want to install the toast binaries and their manpage?
***************
*** 91,97 ****

TOAST_INSTALL_ROOT = $(INSTALL_ROOT)
TOAST_INSTALL_BIN = $(TOAST_INSTALL_ROOT)/bin
! TOAST_INSTALL_MAN = $(TOAST_INSTALL_ROOT)/man/man1

# Other tools

--- 91,97 ----

TOAST_INSTALL_ROOT = $(INSTALL_ROOT)
TOAST_INSTALL_BIN = $(TOAST_INSTALL_ROOT)/bin
! TOAST_INSTALL_MAN = $(TOAST_INSTALL_ROOT)/share/man/man1

# Other tools

***************
*** 332,343 ****

gsminstall:
-if [ x"$(GSM_INSTALL_ROOT)" != x ] ; then \
! make $(GSM_INSTALL_TARGETS) ; \
fi

toastinstall:
-if [ x"$(TOAST_INSTALL_ROOT)" != x ]; then \
! make $(TOAST_INSTALL_TARGETS); \
fi

gsmuninstall:
--- 332,348 ----

gsminstall:
-if [ x"$(GSM_INSTALL_ROOT)" != x ] ; then \
! if [ ! -d $(GSM_INSTALL_INC) ] ; then mkdir -p $(GSM_INSTALL_INC) ; fi; \
! if [ ! -d $(GSM_INSTALL_LIB) ] ; then mkdir -p $(GSM_INSTALL_LIB) ; fi; \
! if [ ! -d $(GSM_INSTALL_MAN) ] ; then mkdir -p $(GSM_INSTALL_MAN) ; fi; \
! make $(GSM_INSTALL_TARGETS) INSTALL_ROOT=$(INSTALL_ROOT); \
fi

toastinstall:
-if [ x"$(TOAST_INSTALL_ROOT)" != x ]; then \
! if [ ! -d $(TOAST_INSTALL_BIN) ] ; then mkdir -p $(TOAST_INSTALL_BIN) ; fi; \
! if [ ! -d $(TOAST_INSTALL_MAN) ] ; then mkdir -p $(TOAST_INSTALL_MAN) ; fi; \
! make $(TOAST_INSTALL_TARGETS) INSTALL_ROOT=$(INSTALL_ROOT); \
fi

gsmuninstall:

gsm _unstable_ port information

Package: gsm
Version: 1.0.10
Revision: 1
Source: ftp://ftp.cs.tu-berlin.de/pub/local/kbs/tubmik/gsm/gsm-%v.tar.gz
Source-MD5: 4b148480f82e96d274248e13880ec873
SourceDirectory: gsm-1.0-pl10
Patch: %n.patch
CompileScript: make
InstallScript: make install INSTALL_ROOT=%i
DocFiles: README COPYRIGHT
Description: GSM speech compression utilities and libs
DescDetail: <<
Contains runtime shared libraries for libgsm, an implementation of the
European GSM 06.10 provisional standard for full-rate speech
transcoding, prI-ETS 300 036, which uses RPE/LTP (residual pulse
excitation/long term prediction) coding at 13 kbit/s.

GSM 06.10 compresses frames of 160 13-bit samples (8 kHz sampling rate,
i.e. a frame rate of 50 Hz) into 260 bits; for compatibility with
typical UNIX applications, our implementation turns frames of 160 16-bit
linear samples into 33-byte frames (1650 Bytes/s). The quality of the
algorithm is good enough for reliable speaker recognition; even music
often survives transcoding in recognizable form (given the bandwidth
limitations of 8 kHz sampling rate).

The interfaces offered are a front end modelled after compress(1), and a
library API. Compression and decompression run faster than realtime on
most SPARCstations. The implementation has been verified against the
ETSI standard test patterns.
<<
DescPackaging: <<
Patches the Makefile to set the compiler and the man path and corrects
the install rules to create directories before installing into them..

dmacks: Patched Makefile to avoid warnings about deleting files that
don't exist (would need if installing into an already-populated %d).
<<
License: Public Domain
Maintainer: Leigh Smith
Homepage: http://kbs.cs.tu-berlin.de/~jutta/toast.html

gsm _unstable_ port .patch

diff -Nurd -x'*~' gsm-1.0-pl10.orig/Makefile gsm-1.0-pl10/Makefile
--- gsm-1.0-pl10.orig/Makefile 1996-07-02 10:36:06.000000000 -0400
+++ gsm-1.0-pl10/Makefile 2006-07-19 03:50:44.000000000 -0400
@@ -22,8 +22,8 @@
######### both integer and floating point multiplications.
######### This flag is still in the experimental stage.

-#WAV49 = -DWAV49
-WAV49 =
+WAV49 = -DWAV49
+#WAV49 =
######### Define to enable the GSM library's option to pack GSM frames
######### in the style used by the WAV #49 format. If you want to write
######### a tool that produces .WAV files which contain GSM-encoded data,
@@ -43,7 +43,7 @@
# CC = /usr/lang/acc
# CCFLAGS = -c -O

-CC = gcc -ansi -pedantic
+CC = cc -ansi -pedantic
CCFLAGS = -c -O2 -DNeedFunctionPrototypes=1

LD = $(CC)
@@ -80,8 +80,8 @@

GSM_INSTALL_ROOT = $(INSTALL_ROOT)
GSM_INSTALL_LIB = $(GSM_INSTALL_ROOT)/lib
-GSM_INSTALL_INC = $(GSM_INSTALL_ROOT)/inc
-GSM_INSTALL_MAN = $(GSM_INSTALL_ROOT)/man/man3
+GSM_INSTALL_INC = $(GSM_INSTALL_ROOT)/include
+GSM_INSTALL_MAN = $(GSM_INSTALL_ROOT)/share/man/man3


# Where do you want to install the toast binaries and their manpage?
@@ -91,7 +91,7 @@

TOAST_INSTALL_ROOT = $(INSTALL_ROOT)
TOAST_INSTALL_BIN = $(TOAST_INSTALL_ROOT)/bin
-TOAST_INSTALL_MAN = $(TOAST_INSTALL_ROOT)/man/man1
+TOAST_INSTALL_MAN = $(TOAST_INSTALL_ROOT)/share/man/man1

# Other tools

@@ -100,7 +100,7 @@
BASENAME = basename
AR = ar
ARFLAGS = cr
-RMFLAGS =
+RMFLAGS = -f
FIND = find
COMPRESS = compress
COMPRESSFLAGS =
@@ -332,12 +332,17 @@

gsminstall:
-if [ x"$(GSM_INSTALL_ROOT)" != x ] ; then \
- make $(GSM_INSTALL_TARGETS) ; \
+ if [ ! -d $(GSM_INSTALL_INC) ] ; then mkdir -p $(GSM_INSTALL_INC) ; fi; \
+ if [ ! -d $(GSM_INSTALL_LIB) ] ; then mkdir -p $(GSM_INSTALL_LIB) ; fi; \
+ if [ ! -d $(GSM_INSTALL_MAN) ] ; then mkdir -p $(GSM_INSTALL_MAN) ; fi; \
+ make $(GSM_INSTALL_TARGETS) INSTALL_ROOT=$(INSTALL_ROOT); \
fi

toastinstall:
-if [ x"$(TOAST_INSTALL_ROOT)" != x ]; then \
- make $(TOAST_INSTALL_TARGETS); \
+ if [ ! -d $(TOAST_INSTALL_BIN) ] ; then mkdir -p $(TOAST_INSTALL_BIN) ; fi; \
+ if [ ! -d $(TOAST_INSTALL_MAN) ] ; then mkdir -p $(TOAST_INSTALL_MAN) ; fi; \
+ make $(TOAST_INSTALL_TARGETS) INSTALL_ROOT=$(INSTALL_ROOT); \
fi

gsmuninstall:
@@ -351,50 +356,50 @@
fi

$(TOAST_INSTALL_BIN)/toast: $(TOAST)
- -rm $@
+ -rm $(RMFLAGS) $@
cp $(TOAST) $@
chmod 755 $@

$(TOAST_INSTALL_BIN)/untoast: $(TOAST_INSTALL_BIN)/toast
- -rm $@
+ -rm $(RMFLAGS) $@
ln $? $@

$(TOAST_INSTALL_BIN)/tcat: $(TOAST_INSTALL_BIN)/toast
- -rm $@
+ -rm $(RMFLAGS) $@
ln $? $@

$(TOAST_INSTALL_MAN)/toast.1: $(MAN)/toast.1
- -rm $@
+ -rm $(RMFLAGS) $@
cp $? $@
chmod 444 $@

$(GSM_INSTALL_MAN)/gsm.3: $(MAN)/gsm.3
- -rm $@
+ -rm $(RMFLAGS) $@
cp $? $@
chmod 444 $@

$(GSM_INSTALL_MAN)/gsm_option.3: $(MAN)/gsm_option.3
- -rm $@
+ -rm $(RMFLAGS) $@
cp $? $@
chmod 444 $@

$(GSM_INSTALL_MAN)/gsm_explode.3: $(MAN)/gsm_explode.3
- -rm $@
+ -rm $(RMFLAGS) $@
cp $? $@
chmod 444 $@

$(GSM_INSTALL_MAN)/gsm_print.3: $(MAN)/gsm_print.3
- -rm $@
+ -rm $(RMFLAGS) $@
cp $? $@
chmod 444 $@

$(GSM_INSTALL_INC)/gsm.h: $(INC)/gsm.h
- -rm $@
+ -rm $(RMFLAGS) $@
cp $? $@
chmod 444 $@

$(GSM_INSTALL_LIB)/libgsm.a: $(LIBGSM)
- -rm $@
+ -rm $(RMFLAGS) $@
cp $? $@
chmod 444 $@