From e2e382c35b90473df5830a7be809d988707e3c66 Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 8 Mar 2004 23:44:00 +0000 Subject: 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. --- archivers/ppmd/patches/patch-aa | 30 ++++++++++++++++++++++++++++++ archivers/ppmd/patches/patch-ab | 16 ++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 archivers/ppmd/patches/patch-aa create mode 100644 archivers/ppmd/patches/patch-ab (limited to 'archivers/ppmd/patches') 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 + +-#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 -- cgit v1.2.3