summaryrefslogtreecommitdiff
path: root/archivers/ppmd/patches
diff options
context:
space:
mode:
authorben <ben>2004-03-08 23:44:00 +0000
committerben <ben>2004-03-08 23:44:00 +0000
commite2e382c35b90473df5830a7be809d988707e3c66 (patch)
treefa145c5af7c4bd6397ec573034873bfc19cb3ea2 /archivers/ppmd/patches
parent96ab6bc4291ddecd154b2e0f830d8df73e5fa24a (diff)
downloadpkgsrc-e2e382c35b90473df5830a7be809d988707e3c66.tar.gz
Initial import of ppmd-9.1, a PPM file compressor.
PPMd is a file compressor written mainly for embedding in user programs, and it is not intended for direct use. This program is an effort to make speed and performance improvements on the abstract PPM model [1-6] without tuning it to particular data types.
Diffstat (limited to 'archivers/ppmd/patches')
-rw-r--r--archivers/ppmd/patches/patch-aa30
-rw-r--r--archivers/ppmd/patches/patch-ab16
2 files changed, 46 insertions, 0 deletions
diff --git a/archivers/ppmd/patches/patch-aa b/archivers/ppmd/patches/patch-aa
new file mode 100644
index 00000000000..fe8234c299a
--- /dev/null
+++ b/archivers/ppmd/patches/patch-aa
@@ -0,0 +1,30 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/03/08 23:44:00 ben Exp $
+
+--- makefile.gmk.orig 2004-03-08 15:08:54.000000000 -0800
++++ makefile.gmk
+@@ -1,18 +1,17 @@
+ ## Take a look at PPMdType.h for additional compiler & environment options
+ OBJS = PPMd.o Model.o
+
+-CXX = Gcc
+-LINK = Gcc
++LINK = $(CXX)
+ CODE_FLAGS = -fno-exceptions -fno-rtti -pedantic -Wall \
+ -Wno-unknown-pragmas -Wno-sign-compare -Wno-conversion
+-OPT_FLAGS = -O3 -mcpu=pentiumpro -fomit-frame-pointer -fstrict-aliasing
+-DEBUG_FLAGS = -g0
++OPT_FLAGS =
++DEBUG_FLAGS = -g
+ LD_FLAGS = -s
+
+-PPMd.exe: $(OBJS)
+- $(LINK) -o PPMd.exe $(OBJS) -lstdcxx -Xlinker $(LD_FLAGS)
++ppmd: $(OBJS)
++ $(LINK) $(LD_FLAGS) -o ppmd $(OBJS)
+
+ Model.o: Model.cpp PPMdType.h PPMd.h SubAlloc.hpp Coder.hpp
+ $(CXX) $(CODE_FLAGS) $(OPT_FLAGS) $(DEBUG_FLAGS) -c Model.cpp
+ PPMd.o: PPMd.cpp PPMdType.h PPMd.h
+- $(CXX) $(CODE_FLAGS) $(OPT_FLAGS) $(DEBUG_FLAGS) -c PPMd.cpp
+\ No newline at end of file
++ $(CXX) $(CODE_FLAGS) $(OPT_FLAGS) $(DEBUG_FLAGS) -c PPMd.cpp
diff --git a/archivers/ppmd/patches/patch-ab b/archivers/ppmd/patches/patch-ab
new file mode 100644
index 00000000000..69d69879e8a
--- /dev/null
+++ b/archivers/ppmd/patches/patch-ab
@@ -0,0 +1,16 @@
+$NetBSD: patch-ab,v 1.1.1.1 2004/03/08 23:44:00 ben Exp $
+
+--- PPMdType.h.orig 2004-03-08 15:08:54.000000000 -0800
++++ PPMdType.h
+@@ -10,9 +10,9 @@
+
+ #include <stdio.h>
+
+-#define _WIN32_ENVIRONMENT_
++//#define _WIN32_ENVIRONMENT_
+ //#define _DOS32_ENVIRONMENT_
+-//#define _POSIX_ENVIRONMENT_
++#define _POSIX_ENVIRONMENT_
+ //#define _UNKNOWN_ENVIRONMENT_
+ #if defined(_WIN32_ENVIRONMENT_)+defined(_DOS32_ENVIRONMENT_)+defined(_POSIX_ENVIRONMENT_)+defined(_UNKNOWN_ENVIRONMENT_) != 1
+ #error Only one environment must be defined