Skip to content

Commit

Permalink
Import of patched libaiff code from old CVS.
Browse files Browse the repository at this point in the history
  • Loading branch information
mtszb committed Jul 10, 2020
1 parent 89cc373 commit dfeba5e
Show file tree
Hide file tree
Showing 26 changed files with 14,818 additions and 20 deletions.
45 changes: 25 additions & 20 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
MIT License
/*-
* Copyright (c) 2005, 2006, 2007, 2008 Marco Trillo
*
* Permission is hereby granted, free of charge, to any
* person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the
* Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the
* Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice
* shall be included in all copies or substantial portions of
* the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
* KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
* WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
* PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
* OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

Copyright (c) 2020 Marco Trillo

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
749 changes: 749 additions & 0 deletions MANUAL.html

Large diffs are not rendered by default.

55 changes: 55 additions & 0 deletions Makefile.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# $Id: Makefile.in,v 1.18 2008/09/16 16:31:06 toad32767 Exp $

CC = @CC@
RANLIB = @RANLIB@
AR = ar
CFLAGS = @DEFS@ -I. -Ilibaiff -g -O2 -ansi -pedantic -Wall -Wfloat-equal -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wno-unreachable-code

prefix = @prefix@

objs = iff.o aifx.o lpcm.o g711.o \
float32.o libaiff.o extended.o pascal.o

# Optimizations
CFLAGS += @OPTIM_FLAGS@
objs += @OPTIM_FILES@

all: libaiff.a

install: libaiff.a
cp libaiff.a $(prefix)/lib
$(RANLIB) $(prefix)/lib/libaiff.a
chmod 0444 $(prefix)/lib/libaiff.a
cp -R ./libaiff $(prefix)/include/libaiff
chmod 0755 $(prefix)/include/libaiff
chmod 0444 $(prefix)/include/libaiff/*
rm -f $(prefix)/include/libaiff/config.h.in

uninstall: deinstall

deinstall:
rm -f $(prefix)/lib/libaiff.a
rm -rf $(prefix)/include/libaiff

libaiff.a: $(objs)
@echo "# creating $@"
$(AR) cru $@ $(objs)
$(RANLIB) $@

clean:
rm -f *.o libaiff.a

cleanconfig:
rm -f config.log config.status libaiff/config.h Makefile

cleanall: clean cleanconfig

.c.o:
@echo "# compiling $@"
$(CC) $(CFLAGS) -c $< -o $@

.S.o:
@echo "# assembling $@"
$(CC) -c $< -o $@


73 changes: 73 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
$Id: README,v 1.4 2008/07/16 19:58:47 toad32767 Exp $

-----------------------------------------------------------
TABLE OF CONTENTS
1. Compilation and installation of LibAiff on UNIX
systems
2. Compilation of LibAiff with Microsoft Visual C
3. Using the library
4. Reporting bugs, submitting patches, etc.
-----------------------------------------------------------

1. Compilation and installation of LibAiff on UNIX systems

The default prefix for LIBAIFF installation
is `/usr/local'. Prefix means that libraries
will be installed on the lib/ subdirectory,
includes on the include/ subdirectory and
so on.

You can chose a different prefix with the
`--prefix' option of the configuration
script.
Use `./configure --help' for more details.

In the following examples, `%' means the
shell prompt for a normal system user,
and `#' means the shell prompt for a
privileged user capable of writing to the
selected prefix.

% ./configure

After autoconfiguration is completed, it is
recommended to manually inspect the Makefile
to review the compilation options. For example,
some optimized routines are available for
PowerPC.

% make
# make install

LibAiff will be installed as a `static library'.

1.1. Installating the documentation

While the default installation script does not
do so, it is advisable to copy the
provided documentation to a system-wide
directory such as share/doc/libaiff/:

# cp MANUAL* /usr/local/share/doc/libaiff/


2. Compilation of LibAiff with Microsoft Visual C
To compile LibAiff you need to provide a <libaiff/config.h> file.
LibAiff provides an example <libaiff/config.vc.h> file that you
can simply rename to <libaiff/config.h> in order to compile LibAiff
with Visual C.

3. Using the library

Please refer to the provided documentation,
available in different formats:

MANUAL: ASCII text/plain version
MANUAL.html: HTML text/html UTF-8 version

4. Reporting bugs, submitting patches, etc.

Current LibAiff mantainer:
<[email protected]>


Loading

0 comments on commit dfeba5e

Please sign in to comment.