4593202 [rkeene@sledge /home/rkeene/projects/build]$ cat a52dec.txt
# SHORT DESC: ATSC A/52 Stream Decoder
# LONG DESC: liba52 is a free library for decoding ATSC A/52 streams. It is released under the terms of the GPL license. The A/52 standard is used in a variety of applications, including digital television and DVD. It is also known as AC-3.

## Build static libraries first
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir="$libdir" --enable-static --disable-shared || exit 1

sed 's@^#define HAVE_IO_H.*@/* #undef HAVE_IO_H */@' include/config.h > include/config.h.1
cat include/config.h.1 > include/config.h
rm -f include/config.h.1

make && \
make install || exit 1

# Do these and if an error occurs, ignore it.
make clean
make distclean

## Then build shared libraries (so that pkg-config picks up this one)
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir="$libdir" --disable-static --enable-shared || exit 1

sed 's@^#define HAVE_IO_H.*@/* #undef HAVE_IO_H */@' include/config.h > include/config.h.1
cat include/config.h.1 > include/config.h
rm -f include/config.h.1

sed 's@-prefer-non-pic@-fPIC -DPIC@' liba52/Makefile > liba52/Makefile.1
cat liba52/Makefile.1 > liba52/Makefile
rm -f liba52/Makefile.1

make && \
make install || exit 1
4593203 [rkeene@sledge /home/rkeene/projects/build]$

Click here to go back to the directory listing.
Click here to download this file.
last modified: 2012-05-07 00:52:05