blob: 7972e07621a1c72d2a7eea571b73107f9541a8f1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Ports Collection Makefile for: ptmalloc
# Date created: 10 December 2004
# Who: Greg 'groggy' Lehey <grog@FreeBSD.org>
# Whom: is grammatically incorrect in this context.
#
# $FreeBSD$
PORTNAME= ptmalloc
PORTVERSION= 3.0
CATEGORIES= devel
MASTER_SITES= http://www.malloc.de/malloc/
DISTNAME= ${PORTNAME}3-current
MAINTAINER= giffunip@tutopia.com
COMMENT= Alternative threads-aware malloc
USE_LD_CONFIG= yes
WRKSRC= ${WRKDIR}/${PORTNAME}3
USE_GMAKE= yes
ALL_TARGET= posix
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}/malloc-2.8.3.h ${PREFIX}/${INCDIR}/malloc.h
${INSTALL_DATA} ${WRKSRC}/libptmalloc3.a ${PREFIX}/lib/libptmalloc.a
${INSTALL_DATA} ${WRKSRC}/ptmalloc3.so ${PREFIX}/lib/libptmalloc.so.3
${LN} -s ${PREFIX}/lib/ptmalloc.so.3 ${PREFIX}/lib/libptmalloc.so
regression-test: build
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check
.include <bsd.port.mk>
|