diff options
author | will <will@FreeBSD.org> | 2000-12-26 13:36:52 +0800 |
---|---|---|
committer | will <will@FreeBSD.org> | 2000-12-26 13:36:52 +0800 |
commit | 45db84ff62220cb6258d1360cee2727f7cfb7079 (patch) | |
tree | a4873d36f97f50eb9fa5188d5728dac0837f98f9 /devel/dmalloc | |
parent | de2477bfa6b39beeadad262f3f1cf9cabd5babc6 (diff) | |
download | freebsd-ports-gnome-45db84ff62220cb6258d1360cee2727f7cfb7079.tar.gz freebsd-ports-gnome-45db84ff62220cb6258d1360cee2727f7cfb7079.tar.zst freebsd-ports-gnome-45db84ff62220cb6258d1360cee2727f7cfb7079.zip |
Add dmalloc 4.8.1, a version of the malloc(3) library that provides
powerful debugging facilities at runtime. Required for a forthcoming port.
PR: 23792
Submitted by: Jeremy Shaffner <jeremy@external.org>
Diffstat (limited to 'devel/dmalloc')
-rw-r--r-- | devel/dmalloc/Makefile | 50 | ||||
-rw-r--r-- | devel/dmalloc/distinfo | 1 | ||||
-rw-r--r-- | devel/dmalloc/pkg-comment | 1 | ||||
-rw-r--r-- | devel/dmalloc/pkg-descr | 8 | ||||
-rw-r--r-- | devel/dmalloc/pkg-plist | 17 |
5 files changed, 77 insertions, 0 deletions
diff --git a/devel/dmalloc/Makefile b/devel/dmalloc/Makefile new file mode 100644 index 000000000000..4ef96d85f187 --- /dev/null +++ b/devel/dmalloc/Makefile @@ -0,0 +1,50 @@ +# New ports collection makefile for: dmalloc +# Date created: 7 December 2000 +# Whom: Jeremy Shaffner <jeremy@external.org> +# +# $FreeBSD$ + +PORTNAME= dmalloc +PORTVERSION= 4.8.1 +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= dmalloc +EXTRACT_SUFX= .tgz + +# Original from: Gray Watson http://256.com/gray/email.html +MAINTAINER= jeremy@external.org + +INSTALLS_SHLIB= YES +GNU_CONFIGURE= YES +CONFIGURE_ARGS+=--enable-threads --enable-shlib + +# NOTE: we make the test program first because otherwise it screws up +# and tried to use the .so instead of the .a for some stupid reason +ALL_TARGET= dmalloc_t all light + +pre-patch: + @${PERL} -pi -e 's|-lpthread|-pthread|g' ${WRKSRC}/configure + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/dmalloc ${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/dmalloc.h ${PREFIX}/include + ${INSTALL_DATA} ${WRKSRC}/libdmallocthcxx.so ${PREFIX}/lib/libdmallocthcxx.so.1 + @${LN} -sf ${PREFIX}/lib/libdmallocthcxx.so.1 ${PREFIX}/lib/libdmallocthcxx.so + ${INSTALL_DATA} ${WRKSRC}/libdmallocthcxx.a ${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/libdmallocth.so ${PREFIX}/lib/libdmallocth.so.1 + @${LN} -sf ${PREFIX}/lib/libdmallocth.so.1 ${PREFIX}/lib/libdmallocth.so + ${INSTALL_DATA} ${WRKSRC}/libdmallocth.a ${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/libdmalloc.so ${PREFIX}/lib/libdmalloc.so.1 + @${LN} -sf ${PREFIX}/lib/libdmalloc.so.1 ${PREFIX}/lib/libdmalloc.so + ${INSTALL_DATA} ${WRKSRC}/libdmalloc.a ${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/libdmalloclp.a ${PREFIX}/lib +.if !defined(NOPORTDOCS) + @${MKDIR} ${PREFIX}/share/doc/dmalloc + ${INSTALL_DATA} ${WRKSRC}/dmalloc.html ${PREFIX}/share/doc/dmalloc +.endif + +post-install: + ${INSTALL_DATA} ${WRKSRC}/dmalloc.info ${PREFIX}/info + @install-info ${PREFIX}/info/dmalloc.info ${PREFIX}/info/dir + +.include <bsd.port.mk> diff --git a/devel/dmalloc/distinfo b/devel/dmalloc/distinfo new file mode 100644 index 000000000000..a25535459982 --- /dev/null +++ b/devel/dmalloc/distinfo @@ -0,0 +1 @@ +MD5 (dmalloc-4.8.1.tgz) = 730a802f991f4ca293a02bccaa3cf031 diff --git a/devel/dmalloc/pkg-comment b/devel/dmalloc/pkg-comment new file mode 100644 index 000000000000..7b136948e6ab --- /dev/null +++ b/devel/dmalloc/pkg-comment @@ -0,0 +1 @@ +Portable debug memory allocation library diff --git a/devel/dmalloc/pkg-descr b/devel/dmalloc/pkg-descr new file mode 100644 index 000000000000..d9e2681c8b8c --- /dev/null +++ b/devel/dmalloc/pkg-descr @@ -0,0 +1,8 @@ +The debug memory allocation or dmalloc library has been designed as a +portable drop in replacement for the system's memory management +routines while providing powerful debugging facilities configurable at +runtime. These facilities include such things as memory-leak +tracking, fence-post write detection, file/line number reporting, and +general logging of statistics. Online documentation is available at: + +WWW: http://dmalloc.com/ diff --git a/devel/dmalloc/pkg-plist b/devel/dmalloc/pkg-plist new file mode 100644 index 000000000000..db0731190d8a --- /dev/null +++ b/devel/dmalloc/pkg-plist @@ -0,0 +1,17 @@ +bin/dmalloc +include/dmalloc.h +@unexec install-info --delete %D/info/dmalloc.info %D/info/dir +info/dmalloc.info +@exec install-info %D/info/dmalloc.info %D/info/dir +lib/libdmalloc.a +lib/libdmalloc.so +lib/libdmalloc.so.1 +lib/libdmalloclp.a +lib/libdmallocth.a +lib/libdmallocth.so +lib/libdmallocth.so.1 +lib/libdmallocthcxx.a +lib/libdmallocthcxx.so +lib/libdmallocthcxx.so.1 +share/doc/dmalloc/dmalloc.html +@dirrm share/doc/dmalloc |