aboutsummaryrefslogtreecommitdiff
path: root/devel/ptmalloc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/ptmalloc/Makefile')
-rw-r--r--devel/ptmalloc/Makefile22
1 files changed, 14 insertions, 8 deletions
diff --git a/devel/ptmalloc/Makefile b/devel/ptmalloc/Makefile
index 85705061295a..835a8f2cd790 100644
--- a/devel/ptmalloc/Makefile
+++ b/devel/ptmalloc/Makefile
@@ -6,25 +6,31 @@
# $FreeBSD$
PORTNAME= ptmalloc
-PORTVERSION= 1.0
-PORTREVISION= 1
+PORTVERSION= 2.0
CATEGORIES= devel
MASTER_SITES= http://www.malloc.de/malloc/
-DISTNAME= ptmalloc
+DISTNAME= ${PORTNAME}2-current
MAINTAINER= ports@FreeBSD.org
-COMMENT= Alternative malloc, performs better with threaded applications
+COMMENT= Alternative threads-aware malloc
+USE_GMAKE= yes
+USE_LD_CONFIG= yes
+WRKSRC= ${WRKDIR}/${PORTNAME}2
INCDIR= include/${PORTNAME}
PLIST_SUB= INCDIR=${INCDIR}
+post-patch:
+ @${REINPLACE_CMD} -e 's+-pthread+${PTHREAD_LIBS}+g ;' \
+ ${WRKSRC}/Makefile
+
do-install: all
${MKDIR} ${PREFIX}/${INCDIR}
- ${INSTALL_DATA} ${WRKSRC}/ptmalloc.h ${PREFIX}/${INCDIR}/malloc.h
- ${INSTALL_PROGRAM} ${WRKSRC}/ptmalloc.so ${PREFIX}/lib/libptmalloc.so.1
- ${INSTALL_PROGRAM} ${WRKSRC}/ptmalloc.so ${PREFIX}/lib/libptmalloc.so
- ${INSTALL_PROGRAM} ${WRKSRC}/libptmalloc.a ${PREFIX}/lib/libptmalloc.a
+ ${INSTALL_DATA} ${WRKSRC}/malloc.h ${PREFIX}/${INCDIR}/
+ ${INSTALL_PROGRAM} ${WRKSRC}/malloc.so ${PREFIX}/lib/libptmalloc.so.2
+ ${LN} -s ${PREFIX}/lib/ptmalloc.so.2 ${PREFIX}/lib/libptmalloc.so
+ ${INSTALL_PROGRAM} ${WRKSRC}/libmalloc.a ${PREFIX}/lib/libptmalloc.a
post-install:
@${ECHO_CMD}