summaryrefslogtreecommitdiff
path: root/archivers/ppmd
diff options
context:
space:
mode:
authorben <ben@pkgsrc.org>2004-04-17 23:47:36 +0000
committerben <ben@pkgsrc.org>2004-04-17 23:47:36 +0000
commit6c1749c10ba6de83c4ce979707c5ddea31b72bad (patch)
tree8e011b0851398a3707f8986e28a63459f588d481 /archivers/ppmd
parentdc8c2199d10374bf371c3600b66ee3d1fe5ddc2b (diff)
downloadpkgsrc-6c1749c10ba6de83c4ce979707c5ddea31b72bad.tar.gz
Make ppmd build and run in Linux.
Diffstat (limited to 'archivers/ppmd')
-rw-r--r--archivers/ppmd/distinfo3
-rw-r--r--archivers/ppmd/patches/patch-ac13
2 files changed, 15 insertions, 1 deletions
diff --git a/archivers/ppmd/distinfo b/archivers/ppmd/distinfo
index 805b6bec98f..2dccfd1437a 100644
--- a/archivers/ppmd/distinfo
+++ b/archivers/ppmd/distinfo
@@ -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 --git a/archivers/ppmd/patches/patch-ac b/archivers/ppmd/patches/patch-ac
new file mode 100644
index 00000000000..7a3868eb2a9
--- /dev/null
+++ b/archivers/ppmd/patches/patch-ac
@@ -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;