# SHORT DESC: Encrypted DVD Support
# LONG DESC: libdvdcss allows programs to decrypt encrypted DVDs.
./configure --prefix=/usr --libdir="${libdir}" --sysconfdir=/etc --localstatedir=/var || exit 1
exec </dev/null
# libdvdcss wants to build a bunch of stupid documentation, but LaTeX hates how misformed it is.
find . -name 'Makefile' | while read makefilename; do
sed 's@^LATEX *=.*$@LATEX = true@;s@^\([ \t]*\)[dl][va][it][pe][sx] @\1true @' "${makefilename}" > "${makefilename}.new"
cat "${makefilename}.new" > "${makefilename}"
rm -f "${makefilename}.new"
done
make && \
make install || exit 1
# Clean-up stupid TeX stuff that gets generated
rm -rf /var/tmp/* /var/cache/texmf /var/lib/texmf
|