Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=ebfb5fe44aea2affbc84ed205b2da58402ce939b
commit ebfb5fe44aea2affbc84ed205b2da58402ce939b Author: James Buren <[EMAIL PROTECTED]> Date: Wed Jul 2 07:50:52 2008 -0500 psemu-peops-softgpu-118-1-i686 * new package diff --git a/source/xlib-extra/psemu-peops-softgpu/FrugalBuild b/source/xlib-extra/psemu-peops-softgpu/FrugalBuild new file mode 100644 index 0000000..e7c39df --- /dev/null +++ b/source/xlib-extra/psemu-peops-softgpu/FrugalBuild @@ -0,0 +1,39 @@ +# Compiling Time: 0.03 SBU +# Maintainer: James Buren <[EMAIL PROTECTED]> + +pkgname=psemu-peops-softgpu +pkgver=118 +pkgrel=1 +pkgdesc="PSEmu plugin for software GPU emulation." +_F_sourceforge_name=PeopsSoftGpu +_F_sourceforge_dirname=peops +_F_sourceforge_sep=None +_F_sourceforge_ext=.zip +Finclude sourceforge +# workaround, default up2date busted for some reason. +up2date="lynx -dump 'http://sourceforge.net/project/showfiles.php?group_id=39401' | grep -o '$_F_sourceforge_name\(.*\)$_F_sourceforge_ext' | tail -n1 | sed 's|'$_F_sourceforge_name'\(.*\)'$_F_sourceforge_ext'|\1|'" +depends=('libx11' 'gtk+' 'mesa') +makedepends=('nasm') +source=([EMAIL PROTECTED] $pkgname-$pkgver-draw-c.patch) +groups=('xlib-extra') +archs=('i686') +sha1sums=('3c9fd1b8a4b5a08a7804084ce6ddbe8f4a935cce' \ + 'f637d01d161e54c6d236d0db78a3d9737174dfdc') + +build() +{ + Fcd gpuPeopsSoft/src + # patch for compile errors + Fpatch $pkgname-$pkgver-draw-c.patch + # replace cflags + Fsed "\(.*\) -O.*" "\1 ${CFLAGS}" makes/plg.mk + # correct X11 path + Fsed "/usr/X11R6" "/usr" makes/mk.x11 + Fmake + Fexerel /usr/lib/psemu/plugins/libgpuPeopsSoftX.so.1.0.18 + Fexerel /usr/lib/psemu/cfg/cfgPeopsSoft + Ffilerel ../gpuPeopsSoftX.cfg /usr/lib/psemu/cfg + Fdocrel ../peops_soft_{readme,version}_1_18.txt {changelog,filemap,license}.txt +} + +# optimization OK diff --git a/source/xlib-extra/psemu-peops-softgpu/psemu-peops-softgpu-118-draw-c.patch b/source/xlib-extra/psemu-peops-softgpu/psemu-peops-softgpu-118-draw-c.patch new file mode 100644 index 0000000..99186c0 --- /dev/null +++ b/source/xlib-extra/psemu-peops-softgpu/psemu-peops-softgpu-118-draw-c.patch @@ -0,0 +1,25 @@ +--- ../../gpuPeopsSoft2/src/draw.c 2008-05-17 13:06:36.000000000 -0500 ++++ draw.c 2008-07-02 07:21:23.000000000 -0500 +@@ -5058,6 +5058,7 @@ + + #ifdef USE_XF86VM + ++#undef BOOL + #include <X11/extensions/xf86vmode.h> + static XF86VidModeModeInfo **modes=0; + static int iOldMode=0; +@@ -6374,7 +6375,13 @@ + #else + pDstR=(unsigned long *)(pDst-(ddx+dga2Fix)); + #endif +- for(x=0;x<ddx2;x++) *((unsigned long*)pDst)++=*pDstR++; ++ for(x=0;x<ddx2;x++) ++ { ++ *((unsigned long*)pDst) = *pDstR; ++ pDst += sizeof (unsigned long); ++ pDstR += sizeof (unsigned long); ++ } ++ + } + else + { _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
