1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00
freebsd-ports/devel/valgrind/Makefile
Bryan Drewery 44eccf4272 - Add missing manpages for 3.7.0 [1]
- Fix build with clang [2]
- Fix plist issue
- Remove Makefile header
- Take maintainership

PR:		ports/153386 [1]
Reported by:	Raphael Kubo da Costa <kubito@gmail.com> [1]
PR:		ports/169112 [2]
Submitted by:	Lee Thomas <lee_thomas@aslantools.com> [2]
Approved by:	eadler (mentor)
2012-08-31 20:11:03 +00:00

74 lines
1.5 KiB
Makefile

# $FreeBSD$
PORTNAME= valgrind
PORTVERSION= 3.7.0
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= devel
MASTER_SITES= ftp://ftp.SpringDaemons.com/soft/:dist \
http://mirror.shatow.net/freebsd/${PORTNAME}/:manpages
DISTNAME= ${PORTNAME}-freebsd-${PORTVERSION}-3
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:dist \
${DISTNAME}-manpages${EXTRACT_SUFX}:manpages
MAINTAINER= bdrewery@FreeBSD.org
COMMENT= A (memory) debugging and profiling tool
CONFLICTS= valgrind-snapshot-[0-9]*
ONLY_FOR_ARCHS= i386 amd64
MAN1= callgrind_control.1 \
callgrind_annotate.1 \
valgrind.1 \
ms_print.1 \
cg_annotate.1
OPTIONS_DEFINE= MPI
MPI_DESC= Enable build of MPI wrappers
USE_BZIP2= yes
USE_GMAKE= yes
USE_GNOME= gnomehack
USE_PERL5_BUILD=yes
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
USE_PKGCONFIG= yes
WRKSRC= ${WRKDIR}/${DISTNAME}
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMPI}
LIB_DEPENDS+= mpich.2:${PORTSDIR}/net/mpich2
PLIST_SUB+= MPI=""
.else
PLIST_SUB+= MPI="@comment "
.endif
post-install:
(cd ${WRKDIR}/valgrind-manpages/ && ${COPYTREE_SHARE} \* ${MANPREFIX}/man/man1)
@${CAT} ${PKGMESSAGE}
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 700104
IGNORE= your FreeBSD version is not supported
.endif
.if ${ARCH} == "amd64"
PLIST_SUB+= AMD64="" ARCH=amd64
. if !exists(/usr/lib32)
CONFIGURE_ARGS+= --enable-only64bit
PLIST_SUB+= X86="@comment "
. else
PLIST_SUB+= X86=""
. else
. endif
.else
PLIST_SUB+= X86="" ARCH=x86
PLIST_SUB+= AMD64="@comment "
.endif
.include <bsd.port.post.mk>