summaryrefslogtreecommitdiff
path: root/devel/libmemmgr
diff options
context:
space:
mode:
Diffstat (limited to 'devel/libmemmgr')
-rw-r--r--devel/libmemmgr/Makefile28
-rw-r--r--devel/libmemmgr/distinfo5
-rw-r--r--devel/libmemmgr/patches/patch-aa58
-rw-r--r--devel/libmemmgr/pkg/DESCR23
-rw-r--r--devel/libmemmgr/pkg/PLIST5
5 files changed, 119 insertions, 0 deletions
diff --git a/devel/libmemmgr/Makefile b/devel/libmemmgr/Makefile
new file mode 100644
index 00000000000..8ff3e6fcfe3
--- /dev/null
+++ b/devel/libmemmgr/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/04/27 12:10:40 agc Exp $
+#
+
+DISTNAME= MemMgr-1.04
+PKGNAME= libmemmgr-1.04
+CATEGORIES= devel
+MASTER_SITES= http://www.primate.wisc.edu/software/MemMgr/
+
+MAINTAINER= collver@linuxfreemail.com
+HOMEPAGE= http://www.primate.wisc.edu/software/MemMgr/
+COMMENT= simple memory manager library
+
+BUILD_DEPENDS+= libetm-1.09:../../devel/libetm
+
+WRKSRC= ${WRKDIR}/memmgr-1.04
+
+post-patch:
+ ${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.bak
+ ${SED} <${WRKSRC}/Makefile.bak >${WRKSRC}/Makefile \
+ -e 's|/usr/local|${PREFIX}|' \
+ -e 's|/usr/ucb/install|${INSTALL}|'
+
+post-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/libmemmgr
+ groff -Tascii -ms ${WRKSRC}/memmgr.ms \
+ >${PREFIX}/share/doc/libmemmgr/memmgr.txt
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/libmemmgr/distinfo b/devel/libmemmgr/distinfo
new file mode 100644
index 00000000000..ed33eb3996e
--- /dev/null
+++ b/devel/libmemmgr/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2001/04/27 12:10:40 agc Exp $
+
+SHA1 (MemMgr-1.04.tar.gz) = 51611362d6f859f35abc986e6733cbf4f7bde9d6
+Size (MemMgr-1.04.tar.gz) = 13944 bytes
+SHA1 (patch-aa) = 7e79786da44a041c13d689969eba9f2871c66ca4
diff --git a/devel/libmemmgr/patches/patch-aa b/devel/libmemmgr/patches/patch-aa
new file mode 100644
index 00000000000..02a0e7d0a44
--- /dev/null
+++ b/devel/libmemmgr/patches/patch-aa
@@ -0,0 +1,58 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/04/27 12:10:40 agc Exp $
+
+--- Makefile.orig Thu May 22 22:59:46 1997
++++ Makefile Sun Apr 8 19:24:33 2001
+@@ -157,8 +157,8 @@
+ STD_CPP_DEFINES =
+
+ STD_INCLUDES = -I$(LOCALINCLUDEROOT)
+- STD_DEFINES = -Dsun -DSVR4
+- STD_LDLIBS = -lsocket -lnsl -lw
++ STD_DEFINES =
++ STD_LDLIBS =
+ STD_LDFLAGS = -L$(LOCALUSRLIBDIR)
+
+ # Project-specific include file directories, defines, etc.
+@@ -170,7 +170,7 @@
+
+ LOADERLIBPREFIX =
+ CDEBUGFLAGS = -O
+- CCOPTIONS = -Xc
++ CCOPTIONS =
+
+ ALLINCLUDES = $(INCLUDES) $(PROJECT_INCLUDES) $(STD_INCLUDES)
+ ALLDEFINES = $(STD_DEFINES) $(PROJECT_DEFINES) $(DEFINES)
+@@ -481,23 +481,23 @@
+
+ # DO NOT DELETE
+
+-alloc.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h
++alloc.o: /usr/include/stdio.h
+ alloc.o: /usr/local/include/etm.h memmgr.internal.h memmgr.h
+-allocnp.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h
++allocnp.o: /usr/include/stdio.h
+ allocnp.o: memmgr.internal.h memmgr.h
+-stralloc.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h
++stralloc.o: /usr/include/stdio.h
+ stralloc.o: /usr/local/include/etm.h memmgr.internal.h memmgr.h
+-strallocnp.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h
++strallocnp.o: /usr/include/stdio.h
+ strallocnp.o: memmgr.internal.h memmgr.h
+-realloc.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h
++realloc.o: /usr/include/stdio.h
+ realloc.o: /usr/local/include/etm.h memmgr.internal.h memmgr.h
+-reallocnp.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h
++reallocnp.o: /usr/include/stdio.h
+ reallocnp.o: memmgr.internal.h memmgr.h
+-valloc.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h
++valloc.o: /usr/include/stdio.h
+ valloc.o: /usr/local/include/etm.h memmgr.internal.h memmgr.h
+-vallocnp.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h
++vallocnp.o: /usr/include/stdio.h
+ vallocnp.o: memmgr.internal.h memmgr.h
+-free.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h
++free.o: /usr/include/stdio.h
+ free.o: memmgr.internal.h memmgr.h
+-malloc0.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h
++malloc0.o: /usr/include/stdio.h
+ malloc0.o: memmgr.internal.h memmgr.h
diff --git a/devel/libmemmgr/pkg/DESCR b/devel/libmemmgr/pkg/DESCR
new file mode 100644
index 00000000000..b3970b2f253
--- /dev/null
+++ b/devel/libmemmgr/pkg/DESCR
@@ -0,0 +1,23 @@
+MemMgr is a fairly trivial memory management library. There
+is little it does that cannot be done using routines in the
+C library. (In fact, allocation and disposal is implemented
+using C library routines.) The purposes of MemMgr are two-
+fold.
+
+(i) Minimize configuration burden on applications that
+ dynamically allocate memory. For instance, malloc() on
+ some systems returns a char pointer; on others it
+ returns a void pointer. The MemMgr library routines
+ encapsulate system-specific configuration differences
+ and exports a fixed interface which is system-indepen-
+ dent. Once you compile and install it, you just use it
+ without thinking about whether your UNIX is System V or
+ BSD inspired.
+
+(ii) Provide two parallel sets of allocation routines which
+ either return NULL (for applications which want to
+ check) or panic (for applications which simply want to
+ die) on allocation failures. Panicking is implemented
+ using the ETM library, which introduces a dependency on
+ the ETM distribution. So be it. I use ETM for all my
+ programs anyway
diff --git a/devel/libmemmgr/pkg/PLIST b/devel/libmemmgr/pkg/PLIST
new file mode 100644
index 00000000000..ae602ca0673
--- /dev/null
+++ b/devel/libmemmgr/pkg/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/04/27 12:10:40 agc Exp $
+lib/libmemmgr.a
+include/memmgr.h
+share/doc/libmemmgr/memmgr.txt
+@dirrm share/doc/libmemmgr