# $Header: /magellan-cvs/smage/xdvdfs-tools/xdvdfs-tools-2.1-r4.smage2,v 1.3 2008/02/07 14:23:56 niro Exp $ PNAME="xdvdfs-tools" PVER="2.1" PBUILD="r4" PCATEGORIE="app-cdr" STATE="testing" DESCRIPTION="Utilities to create and extract xbox xdvdfs isos." HOMEPAGE="http://www.layouts.xbox-scene.com/" DEPEND=">= virtual/glibc" SDEPEND=">= dev-lang/nasm-0.98.39 >= sys-apps/sed-4 >= app-arch/unrar-3" SRCFILE="XDVDFSToolsv${PVER}.rar" SRCDIR="${BUILDDIR}/XDVDFS Tools" # this one needs quotes -> call "${SRCDIR}" sminclude mtools SRC_URI=( mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-fnamefix.patch ) # which tools shall be compiled ? COMP_TOOLS="xdvdfs_dumper xdvdfs_maker xdvdfs_extract" src_prepare() { munpack ${SRCFILE} || die cd "${SRCDIR}"/src # fixes some problems with filenames mpatch ${PNAME}-${PVER}-fnamefix.patch || die # fix compilations issues and make use if our CFLAGS sed -i -e "s:^\(BINDIR =\).*:\1 .:" \ -e "s:^\(CCFLAGS =\).*:\1 ${CFLAGS} -fomit-frame-pointer -ffast-math:" \ makefile.prefab || die } src_compile() { cd "${SRCDIR}"/src for i in ${COMP_TOOLS} do cd "${SRCDIR}"/src/${i} mmake || die done } src_install() { cd "${SRCDIR}"/src # needed directories minstalldir /usr/bin || die minstalldir /usr/share/doc/${PNAME}-${PVER} || die for i in ${COMP_TOOLS} do minstallexec ${i}/${i} /usr/bin/${i} || die done cd "${SRCDIR}" # minstalldocs doesnt work cause of the space in SRCDIR cat Readme.txt | gzip -9 > \ ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/Readme.txt.gz || die minstallhtml documentation/* || die }