summaryrefslogtreecommitdiff
path: root/devel/libdlmalloc
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1995-06-04 05:29:58 +0000
committerSatoshi Asami <asami@FreeBSD.org>1995-06-04 05:29:58 +0000
commit0e5ad9aa59c2d19dc1ce6fdd81fdab8448b4e0a8 (patch)
treec174fa7f43305e98068050986d2fbcf63deaa44e /devel/libdlmalloc
parentAdd CATEGORIES=x11. (diff)
Doug Lea's malloc library.
Submitted by: Ollivier Robert <Ollivier.Robert@keltia.frmug.fr.net>
Notes
Notes: svn path=/head/; revision=1821
Diffstat (limited to 'devel/libdlmalloc')
-rw-r--r--devel/libdlmalloc/Makefile26
-rw-r--r--devel/libdlmalloc/distinfo1
-rw-r--r--devel/libdlmalloc/files/Makefile59
-rw-r--r--devel/libdlmalloc/files/patch-aa52
-rw-r--r--devel/libdlmalloc/pkg-comment1
-rw-r--r--devel/libdlmalloc/pkg-descr8
-rw-r--r--devel/libdlmalloc/pkg-plist3
7 files changed, 150 insertions, 0 deletions
diff --git a/devel/libdlmalloc/Makefile b/devel/libdlmalloc/Makefile
new file mode 100644
index 000000000000..f41a5466027f
--- /dev/null
+++ b/devel/libdlmalloc/Makefile
@@ -0,0 +1,26 @@
+# New ports collection makefile for: Doug Lea malloc library
+# Version required: 2.5.3b
+# Date created: 3 June 1995
+# Whom: roberto
+#
+# $Id$
+#
+
+DISTNAME= dlmalloc
+PKGNAME= dlmalloc-2.5.3b
+CATEGORIES+= development programming libraries
+MASTER_SITES= ftp://gee.cs.oswego.edu/pub/misc/
+DISTFILES= malloc-2.5.3b.c
+
+MAINTAINER= roberto@FreeBSD.ORG
+
+NO_WRKSUBDIR= yes
+NO_CONFIGURE= yes
+
+do-extract:
+ @rm -rf ${WRKDIR}
+ @mkdir -p ${WRKDIR}
+ cp -p ${DISTDIR}/${DISTFILES} ${WRKDIR}
+ cp -p ${FILESDIR}/Makefile ${WRKDIR}
+
+.include <bsd.port.mk>
diff --git a/devel/libdlmalloc/distinfo b/devel/libdlmalloc/distinfo
new file mode 100644
index 000000000000..a3f0a33b5c5a
--- /dev/null
+++ b/devel/libdlmalloc/distinfo
@@ -0,0 +1 @@
+MD5 (malloc-2.5.3b.c) = 7936180a964854d052ae13ce6e1015d7
diff --git a/devel/libdlmalloc/files/Makefile b/devel/libdlmalloc/files/Makefile
new file mode 100644
index 000000000000..7f9cb63fcc2b
--- /dev/null
+++ b/devel/libdlmalloc/files/Makefile
@@ -0,0 +1,59 @@
+# Makefile for Doug Lea's malloc
+#
+# (largely based on Mark Moreas' Makefile)
+#
+# Renamed dlmalloc
+#
+# A version of malloc/free/realloc written by Doug Lea and released to the
+# public domain.
+#
+# preliminary VERSION 2.5.3b
+#
+# working version; unreleased.
+#
+
+LIBDIR=${PREFIX}/lib
+
+# for the shared lib stuff
+VERSION=2.5
+
+LIBMALLOC=libdlmalloc.a
+LIBSMALLOC=libdlmalloc.so.${VERSION}
+
+SRCS = malloc-2.5.3b.c
+
+OBJS = malloc-2.5.3b.o
+SOBJS = malloc-2.5.3b.so
+
+.SUFFIXES:
+.SUFFIXES: .out .o .po .so .s .S .c .cc .cxx .m .C .f .y .l
+
+.c.o:
+ ${CC} -c ${CFLAGS} $< -o $@
+
+.c.so:
+ ${CC} -c -fpic ${CFLAGS} $< -o $@
+ ld -x -r $@
+ mv a.out $@
+
+all: ${LIBMALLOC} ${LIBSMALLOC}
+
+$(LIBMALLOC): $(OBJS)
+ rm -f $(LIBMALLOC)
+ $(AR) $(ARFLAGS) $(LIBMALLOC) $(OBJS)
+ -$(RANLIB) $(LIBMALLOC)
+
+$(LIBSMALLOC): $(SOBJS)
+ rm -f $(LIBSMALLOC)
+ ld -Bshareable -o $(LIBSMALLOC) $(SOBJS)
+
+clean:
+ -rm -f *.o \#* *~ *.core a.out gmon.out mon.out onefile.c *.sL prof.out
+
+install:
+ install -c -m 644 ${LIBMALLOC} $(LIBDIR)
+ -$(RANLIB) $(LIBDIR)/${LIBMALLOC}
+ install -c -m 555 ${LIBSMALLOC} $(LIBDIR)
+
+malloc-2.5.3b.o: malloc-2.5.3b.c
+malloc-2.5.3b.so: malloc-2.5.3b.c
diff --git a/devel/libdlmalloc/files/patch-aa b/devel/libdlmalloc/files/patch-aa
new file mode 100644
index 000000000000..ccd6dc8853e5
--- /dev/null
+++ b/devel/libdlmalloc/files/patch-aa
@@ -0,0 +1,52 @@
+*** malloc-2.5.3b.c.orig Sun Mar 26 10:50:54 1995
+--- malloc-2.5.3b.c Fri Apr 7 19:21:29 1995
+***************
+*** 271,276 ****
+--- 271,278 ----
+
+ /* preliminaries */
+
++ #include <sys/param.h>
++
+ #ifndef __STD_C
+ #ifdef __STDC__
+ #define __STD_C 1
+***************
+*** 1365,1373 ****
+ }
+
+
+-
+ /* Derivatives */
+
+ #if __STD_C
+ Void_t* valloc(size_t bytes)
+ #else
+--- 1367,1375 ----
+ }
+
+
+ /* Derivatives */
+
++ #if 0
+ #if __STD_C
+ Void_t* valloc(size_t bytes)
+ #else
+***************
+*** 1394,1400 ****
+ while (sz-- > 0) *q++ = 0;
+ return p;
+ }
+!
+ #if __STD_C
+ void cfree(Void_t *mem)
+ #else
+--- 1396,1402 ----
+ while (sz-- > 0) *q++ = 0;
+ return p;
+ }
+! #endif
+ #if __STD_C
+ void cfree(Void_t *mem)
+ #else
+
diff --git a/devel/libdlmalloc/pkg-comment b/devel/libdlmalloc/pkg-comment
new file mode 100644
index 000000000000..ec410775227a
--- /dev/null
+++ b/devel/libdlmalloc/pkg-comment
@@ -0,0 +1 @@
+Small, fast malloc library by Doug Lea, version 2.5.3b.
diff --git a/devel/libdlmalloc/pkg-descr b/devel/libdlmalloc/pkg-descr
new file mode 100644
index 000000000000..52668337fbe7
--- /dev/null
+++ b/devel/libdlmalloc/pkg-descr
@@ -0,0 +1,8 @@
+ A version of malloc/free/realloc written by Doug Lea and released to the
+ public domain.
+
+ Version 2.5.3b
+
+ Based loosely on libg++-1.2X malloc. (It retains some of the overall
+ structure of old version, but most details differ.)
+
diff --git a/devel/libdlmalloc/pkg-plist b/devel/libdlmalloc/pkg-plist
new file mode 100644
index 000000000000..18e018e87dc5
--- /dev/null
+++ b/devel/libdlmalloc/pkg-plist
@@ -0,0 +1,3 @@
+lib/libdlmalloc.a
+@exec ranlib %D/%F
+lib/libdlmalloc.so.2.5