Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Dec 2000 04:21:11 -0600 (CST)
From:      Jeremy Shaffner <jeremy@external.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/23792: New Port: devel/dmalloc
Message-ID:  <200012231021.eBNALBR02279@indigo.external.org>
Resent-Message-ID: <200012231030.eBNAUAW47734@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         23792
>Category:       ports
>Synopsis:       New Port: devel/dmalloc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 23 02:30:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Jeremy Shaffner
>Release:        FreeBSD 4.2-20001106-BETA i386
>Organization:
>Environment:

>Description:

Dmalloc is a malloc library designed as a drop in replacement for the
default malloc(3) but adds debugging facilities.

This is required for another port which is forthcoming.
 
>How-To-Repeat:
	
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	dmalloc
#	dmalloc/Makefile
#	dmalloc/pkg-descr
#	dmalloc/pkg-comment
#	dmalloc/pkg-plist
#	dmalloc/distinfo
#
echo c - dmalloc
mkdir -p dmalloc > /dev/null 2>&1
echo x - dmalloc/Makefile
sed 's/^X//' >dmalloc/Makefile << 'END-of-dmalloc/Makefile'
X# New ports collection makefile for:	dmalloc
X# Date created:			7 December 2000
X# Whom:				Jeremy Shaffner <jeremy@external.org>
X#
X# $FreeBSD$
X
XPORTNAME=	dmalloc
XPORTVERSION=	4.8.1
XCATEGORIES=    	devel
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	dmalloc
XEXTRACT_SUFX=	.tgz
X
X# Original from: Gray Watson http://256.com/gray/email.html
XMAINTAINER=	jeremy@external.org
X
XINSTALLS_SHLIB=	YES
XGNU_CONFIGURE=	YES
XCONFIGURE_ARGS+=--enable-threads --enable-shlib
X
X# NOTE: we make the test program first because otherwise it screws up
X# and tried to use the .so instead of the .a for some stupid reason
XALL_TARGET=	dmalloc_t all light
X
Xpre-patch:
X	@${PERL} -pi -e 's|-lpthread|-pthread|g' ${WRKSRC}/configure
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/dmalloc ${PREFIX}/bin
X	${INSTALL_DATA} ${WRKSRC}/dmalloc.h ${PREFIX}/include
X	${INSTALL_DATA} ${WRKSRC}/libdmallocthcxx.so ${PREFIX}/lib/libdmallocthcxx.so.1
X	@${LN} -sf ${PREFIX}/lib/libdmallocthcxx.so.1 ${PREFIX}/lib/libdmallocthcxx.so
X	${INSTALL_DATA} ${WRKSRC}/libdmallocthcxx.a ${PREFIX}/lib
X	${INSTALL_DATA} ${WRKSRC}/libdmallocth.so ${PREFIX}/lib/libdmallocth.so.1
X	@${LN} -sf ${PREFIX}/lib/libdmallocth.so.1 ${PREFIX}/lib/libdmallocth.so
X	${INSTALL_DATA} ${WRKSRC}/libdmallocth.a ${PREFIX}/lib
X	${INSTALL_DATA} ${WRKSRC}/libdmalloc.so ${PREFIX}/lib/libdmalloc.so.1
X	@${LN} -sf ${PREFIX}/lib/libdmalloc.so.1 ${PREFIX}/lib/libdmalloc.so
X	${INSTALL_DATA} ${WRKSRC}/libdmalloc.a ${PREFIX}/lib
X	${INSTALL_DATA} ${WRKSRC}/libdmalloclp.a ${PREFIX}/lib
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${PREFIX}/share/doc/dmalloc
X	${INSTALL_DATA} ${WRKSRC}/dmalloc.html ${PREFIX}/share/doc/dmalloc
X.endif
X
Xpost-install:
X	${INSTALL_DATA} ${WRKSRC}/dmalloc.info ${PREFIX}/info
X	@install-info ${PREFIX}/info/dmalloc.info ${PREFIX}/info/dir
X
X.include <bsd.port.mk>
END-of-dmalloc/Makefile
echo x - dmalloc/pkg-descr
sed 's/^X//' >dmalloc/pkg-descr << 'END-of-dmalloc/pkg-descr'
XThe debug memory allocation or dmalloc library has been designed as a
Xportable drop in replacement for the system's memory management
Xroutines while providing powerful debugging facilities configurable at
Xruntime.  These facilities include such things as memory-leak
Xtracking, fence-post write detection, file/line number reporting, and
Xgeneral logging of statistics.  Online documentation is available at:
X
XWWW: http://dmalloc.com/
END-of-dmalloc/pkg-descr
echo x - dmalloc/pkg-comment
sed 's/^X//' >dmalloc/pkg-comment << 'END-of-dmalloc/pkg-comment'
XPortable debug memory allocation library
END-of-dmalloc/pkg-comment
echo x - dmalloc/pkg-plist
sed 's/^X//' >dmalloc/pkg-plist << 'END-of-dmalloc/pkg-plist'
Xbin/dmalloc
Xinclude/dmalloc.h
X@unexec install-info --delete %D/info/dmalloc.info %D/info/dir
Xinfo/dmalloc.info
X@exec install-info %D/info/dmalloc.info %D/info/dir
Xlib/libdmalloc.a
Xlib/libdmalloc.so
Xlib/libdmalloc.so.1
Xlib/libdmalloclp.a
Xlib/libdmallocth.a
Xlib/libdmallocth.so
Xlib/libdmallocth.so.1
Xlib/libdmallocthcxx.a
Xlib/libdmallocthcxx.so
Xlib/libdmallocthcxx.so.1
Xshare/doc/dmalloc/dmalloc.html
X@dirrm share/doc/dmalloc
END-of-dmalloc/pkg-plist
echo x - dmalloc/distinfo
sed 's/^X//' >dmalloc/distinfo << 'END-of-dmalloc/distinfo'
XMD5 (dmalloc-4.8.1.tgz) = 730a802f991f4ca293a02bccaa3cf031
END-of-dmalloc/distinfo
exit

	


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012231021.eBNALBR02279>