diff options
author | asami <asami@FreeBSD.org> | 1995-06-04 05:29:58 +0000 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1995-06-04 05:29:58 +0000 |
commit | 7a9af045be6ec18e960531a2368ba0cedfd55405 (patch) | |
tree | f79b1244aa4f151cb1cf4586ad6947d490ef24f0 /devel/libdlmalloc | |
parent | 3b659bba65660157cee1575308bf0a1b012cd087 (diff) | |
download | FreeBSD-ports-7a9af045be6ec18e960531a2368ba0cedfd55405.zip FreeBSD-ports-7a9af045be6ec18e960531a2368ba0cedfd55405.tar.gz |
Doug Lea's malloc library.
Submitted by: Ollivier Robert <Ollivier.Robert@keltia.frmug.fr.net>
Diffstat (limited to 'devel/libdlmalloc')
-rw-r--r-- | devel/libdlmalloc/Makefile | 26 | ||||
-rw-r--r-- | devel/libdlmalloc/distinfo | 1 | ||||
-rw-r--r-- | devel/libdlmalloc/files/Makefile | 59 | ||||
-rw-r--r-- | devel/libdlmalloc/files/patch-aa | 52 | ||||
-rw-r--r-- | devel/libdlmalloc/pkg-comment | 1 | ||||
-rw-r--r-- | devel/libdlmalloc/pkg-descr | 8 | ||||
-rw-r--r-- | devel/libdlmalloc/pkg-plist | 3 |
7 files changed, 150 insertions, 0 deletions
diff --git a/devel/libdlmalloc/Makefile b/devel/libdlmalloc/Makefile new file mode 100644 index 0000000..f41a546 --- /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 0000000..a3f0a33 --- /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 0000000..7f9cb63 --- /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 0000000..ccd6dc8 --- /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 0000000..ec41077 --- /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 0000000..5266833 --- /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 0000000..18e018e --- /dev/null +++ b/devel/libdlmalloc/pkg-plist @@ -0,0 +1,3 @@ +lib/libdlmalloc.a +@exec ranlib %D/%F +lib/libdlmalloc.so.2.5 |