devel/ptmalloc port enhancements

- USE_GMAKE is not necessary
	- make thread aware by using the 'posix' target
	- add regression-test target
	- Clean up some unnecessary verbosity.

	The posix target introduced a lot of warnings but it seems
	to work. This malloc should behave pretty much like the one
	in glibc now, but FreeBSD's native malloc is probably better.

PR:		ports/126547
Submitted by:	"Pedro F. Giffuni" <giffunip@tutopia.com>
This commit is contained in:
Edwin Groothuis 2008-08-18 00:50:46 +00:00
parent 584c05109a
commit b59436c4b7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=218740
4 changed files with 14 additions and 30 deletions

View file

@ -14,11 +14,11 @@ DISTNAME= ${PORTNAME}2-current
MAINTAINER= giffunip@tutopia.com
COMMENT= Alternative threads-aware malloc
USE_GMAKE= yes
USE_LD_CONFIG= yes
WRKSRC= ${WRKDIR}/${PORTNAME}2
INCDIR= include/${PORTNAME}
ALL_TARGET= posix
INCDIR= include/${PORTNAME}
PLIST_SUB= INCDIR=${INCDIR}
post-patch:
@ -32,11 +32,7 @@ do-install: all
${LN} -s ${PREFIX}/lib/ptmalloc.so.2 ${PREFIX}/lib/libptmalloc.so
${INSTALL_PROGRAM} ${WRKSRC}/libmalloc.a ${PREFIX}/lib/libptmalloc.a
post-install:
@${ECHO_CMD}
@${ECHO_CMD} Not much documentation is available.
@${ECHO_CMD} Read ${WRKSRC:S|^${WRKDIRPREFIX}${.CURDIR}/||}/README for what there is.
@${ECHO_CMD} See also pkg_descr
@${ECHO_CMD}
regression-test: build
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check
.include <bsd.port.mk>

View file

@ -1,7 +1,7 @@
ptmalloc is the original version of the malloc that was later included
in GNU libc. This version is *not* GPL or LGPL:
in GNU libc. This version is also but *not* exclusively LGPL:
Copyright (c) 1999 Wolfram Gloger
Copyright (c) 2001-2006 Wolfram Gloger
Permission to use, copy, modify, distribute, and sell this software
and its documentation for any purpose is hereby granted without fee,
@ -21,12 +21,8 @@ in GNU libc. This version is *not* GPL or LGPL:
THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
This is not the latest version: it's older than the one in GNU libc.
This package comes with no documentation beyond a README, which isn't
worth installing. It appears that the GNU libc man page malloc(3)
applies, but it's not included here for copyright reasons. There's
nothing unusual about it. In particular, the section TUNING in
FreeBSD malloc(3) does not apply.
applies, but it's not included here for copyright reasons.
WWW: http://www.malloc.de/en/

View file

@ -14,11 +14,11 @@ DISTNAME= ${PORTNAME}2-current
MAINTAINER= giffunip@tutopia.com
COMMENT= Alternative threads-aware malloc
USE_GMAKE= yes
USE_LD_CONFIG= yes
WRKSRC= ${WRKDIR}/${PORTNAME}2
INCDIR= include/${PORTNAME}
ALL_TARGET= posix
INCDIR= include/${PORTNAME}
PLIST_SUB= INCDIR=${INCDIR}
post-patch:
@ -32,11 +32,7 @@ do-install: all
${LN} -s ${PREFIX}/lib/ptmalloc.so.2 ${PREFIX}/lib/libptmalloc.so
${INSTALL_PROGRAM} ${WRKSRC}/libmalloc.a ${PREFIX}/lib/libptmalloc.a
post-install:
@${ECHO_CMD}
@${ECHO_CMD} Not much documentation is available.
@${ECHO_CMD} Read ${WRKSRC:S|^${WRKDIRPREFIX}${.CURDIR}/||}/README for what there is.
@${ECHO_CMD} See also pkg_descr
@${ECHO_CMD}
regression-test: build
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check
.include <bsd.port.mk>

View file

@ -1,7 +1,7 @@
ptmalloc is the original version of the malloc that was later included
in GNU libc. This version is *not* GPL or LGPL:
in GNU libc. This version is also but *not* exclusively LGPL:
Copyright (c) 1999 Wolfram Gloger
Copyright (c) 2001-2006 Wolfram Gloger
Permission to use, copy, modify, distribute, and sell this software
and its documentation for any purpose is hereby granted without fee,
@ -21,12 +21,8 @@ in GNU libc. This version is *not* GPL or LGPL:
THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
This is not the latest version: it's older than the one in GNU libc.
This package comes with no documentation beyond a README, which isn't
worth installing. It appears that the GNU libc man page malloc(3)
applies, but it's not included here for copyright reasons. There's
nothing unusual about it. In particular, the section TUNING in
FreeBSD malloc(3) does not apply.
applies, but it's not included here for copyright reasons.
WWW: http://www.malloc.de/en/