pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/archivers/ppmd Make ppmd build and run in Linux.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bbecff12385c
branches:  trunk
changeset: 473246:bbecff12385c
user:      ben <ben%pkgsrc.org@localhost>
date:      Sat Apr 17 23:47:36 2004 +0000

description:
Make ppmd build and run in Linux.

diffstat:

 archivers/ppmd/distinfo         |   3 ++-
 archivers/ppmd/patches/patch-ac |  13 +++++++++++++
 2 files changed, 15 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r 96325dc6f281 -r bbecff12385c archivers/ppmd/distinfo
--- a/archivers/ppmd/distinfo   Sat Apr 17 23:26:06 2004 +0000
+++ b/archivers/ppmd/distinfo   Sat Apr 17 23:47:36 2004 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1.1.1 2004/03/08 23:44:00 ben Exp $
+$NetBSD: distinfo,v 1.2 2004/04/17 23:47:36 ben Exp $
 
 SHA1 (ppmdi1.rar) = 8d9780f78e5131f0f21ba0519d13f6d92a8eec82
 Size (ppmdi1.rar) = 72270 bytes
 SHA1 (patch-aa) = 72bfec6320828b7b4456554a1134d5dfbb591a10
 SHA1 (patch-ab) = a5e1fa839a8aa826ae3c00e08908c9a2d1f841a6
+SHA1 (patch-ac) = 9ef43eb6bf1080b89843265a52a1f5316629198b
diff -r 96325dc6f281 -r bbecff12385c archivers/ppmd/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/archivers/ppmd/patches/patch-ac   Sat Apr 17 23:47:36 2004 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1 2004/04/17 23:47:36 ben Exp $
+
+--- PPMd.cpp.orig      2004-04-17 16:38:06.000000000 -0700
++++ PPMd.cpp
+@@ -215,7 +215,7 @@ void _STDCALL PrintInfo(_PPMD_FILE* Deco
+     UINT n1=(8U*NEnc)/NDec;
+     UINT n2=(100U*(8U*NEnc-NDec*n1)+NDec/2U)/NDec;
+     if (n2 == 100) { n1++;                  n2=0; }
+-    int RunTime=((clock()-StartClock) << 10)/int(CLK_TCK);
++    int RunTime=((clock()-StartClock) << 10)/int(CLOCKS_PER_SEC);
+     UINT Speed=NDec/(RunTime+(RunTime == 0));
+     UINT UsedMemory=GetUsedMemory() >> 10;
+     UINT m1=UsedMemory >> 10;



Home | Main Index | Thread Index | Old Index