diff options
Diffstat (limited to 'archivers')
-rw-r--r-- | archivers/ppmd/DESCR | 4 | ||||
-rw-r--r-- | archivers/ppmd/Makefile | 31 | ||||
-rw-r--r-- | archivers/ppmd/PLIST | 4 | ||||
-rw-r--r-- | archivers/ppmd/distinfo | 6 | ||||
-rw-r--r-- | archivers/ppmd/patches/patch-aa | 30 | ||||
-rw-r--r-- | archivers/ppmd/patches/patch-ab | 16 |
6 files changed, 91 insertions, 0 deletions
diff --git a/archivers/ppmd/DESCR b/archivers/ppmd/DESCR new file mode 100644 index 00000000000..de6e7d06775 --- /dev/null +++ b/archivers/ppmd/DESCR @@ -0,0 +1,4 @@ +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. diff --git a/archivers/ppmd/Makefile b/archivers/ppmd/Makefile new file mode 100644 index 00000000000..b042354ff5a --- /dev/null +++ b/archivers/ppmd/Makefile @@ -0,0 +1,31 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/03/08 23:44:00 ben Exp $ +# + +DISTNAME= ppmdi1 +PKGNAME= ppmd-9.1 +CATEGORIES= archivers +MASTER_SITES= http://compression.ru/ds/ +EXTRACT_SUFX= .rar + +MAINTAINER= ben@NetBSD.org +HOMEPAGE= http://compression.ru/ds/ +COMMENT= PPM file compressor + +MAKEFILE= makefile.gmk +ALL_TARGET= ppmd + +WRKSRC= ${WRKDIR} + +post-extract: + cd ${WRKSRC} && for i in *; do \ + ${MV} $$i $$i.new; \ + ${TR} -d '\r' <$$i.new >$$i; \ + ${RM} $$i.new; \ + done + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/ppmd ${PREFIX}/bin + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ppmd/ + ${INSTALL_DATA} ${WRKSRC}/read_me.txt ${PREFIX}/share/doc/ppmd/ + +.include "../../mk/bsd.pkg.mk" diff --git a/archivers/ppmd/PLIST b/archivers/ppmd/PLIST new file mode 100644 index 00000000000..325a67d8c6c --- /dev/null +++ b/archivers/ppmd/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/03/08 23:44:00 ben Exp $ +bin/ppmd +share/doc/ppmd/read_me.txt +@dirrm share/doc/ppmd diff --git a/archivers/ppmd/distinfo b/archivers/ppmd/distinfo new file mode 100644 index 00000000000..805b6bec98f --- /dev/null +++ b/archivers/ppmd/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2004/03/08 23:44:00 ben Exp $ + +SHA1 (ppmdi1.rar) = 8d9780f78e5131f0f21ba0519d13f6d92a8eec82 +Size (ppmdi1.rar) = 72270 bytes +SHA1 (patch-aa) = 72bfec6320828b7b4456554a1134d5dfbb591a10 +SHA1 (patch-ab) = a5e1fa839a8aa826ae3c00e08908c9a2d1f841a6 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 |