# $Id$ PNAME="ddcxinfo-knoppix" PVER="0.6p8" PBUILD="r3" PCATEGORIE="sys-apps" STATE="unstable" DESCRIPTION="Probes monitors for their ddc information." HOMEPAGE="http://knopper.net/" DEPEND=">= virtual/glibc" SRCFILE="${PNAME}_${PVER/p/-}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER:0:3}" sminclude mtools SRC_URI=( http://debian-knoppix.alioth.debian.org/sources/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-samsung-le40r51b.patch mirror://${PNAME}/${PNAME}-${PVER}-lrmi-build-fix.patch ) src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # samsung LE40R51B TFT TV support mpatch ${PNAME}-${PVER}-samsung-le40r51b.patch || die # fix build of lrmi.c with newer glibc/linux-headers mpatch ${PNAME}-${PVER}-lrmi-build-fix.patch || die } src_compile() { cd ${SRCDIR} mmake || die } src_install() { cd ${SRCDIR} # needed directories minstalldir /sbin || die minstalldir /usr/sbin || die # bins minstallexec ddcxinfo-knoppix /sbin || die minstallexec ddcxinfo /usr/sbin || die minstallexec ddcprobe /usr/sbin || die minstallexec modetest /usr/sbin || die minstallexec svgamodes /usr/sbin || die # man-pages minstallman debian/ddcxinfo-knoppix.1 || die # docs minstalldocs COPYING README debian/changelog debian/copyright || die }