# $Id$ PNAME="libdvdcss" PVER="1.4.0" PBUILD="r1" PCAT="media-libs" DESCRIPTION="libdvdcss is a simple library designed for accessing DVDs like a block device without having to bother about the decryption." HOMEPAGE="http://developers.videolan.org/libdvdcss/" DEPEND=">= virtual/glibc" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild mtools SRC_URI=( http://download.videolan.org/pub/${PNAME}/${PVER}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd -listonly http://download.videolan.org/pub/${PNAME}/ | grep ${PNAME} | sed 's:.*${PNAME}/\(.*\)/:\1:' | upsort_pipe" src_compile() { cd ${SRCDIR} # does not like any optimations unset CFLAGS unset CXXFLAGS mconfigure --disable-doc --disable-dependency-tracking || die mmake || die } src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} install || die # compat symlinks for 0.0.3 versions local x="$(readlink ${BINDIR}/usr/$(mlibdir)/libdvdcss.so)" mlink ${x} /usr/$(mlibdir)/libdvdcss.so.0 || die mlink ${x} /usr/$(mlibdir)/libdvdcss.so.1 || die minstalldocs AUTHORS COPYING ChangeLog NEWS README || die }