freebsd-ports/devel/valgrind-snapshot/Makefile
Bryan Drewery 435e6dc63e - Fix build on amd64 with WITHOUT_LIB32 on 9+
- Use the same check for /usr/lib32/libc.so as the
     virtualbox ports for consistency.

PR:		ports/174563
Reported by:	4721@hushmail.com
2012-12-19 05:09:14 +00:00

77 lines
1.6 KiB
Makefile

# Created by: Simon Barner <barner@gmx.de>
# $FreeBSD$
PORTNAME= valgrind
PORTVERSION= 3.8.0
PORTEPOCH= 1
CATEGORIES= devel
MASTER_SITES= http://cdn.bitbucket.org/stass/valgrind-freebsd/downloads/:dist \
http://mirror.shatow.net/freebsd/${PORTNAME}/:dist \
http://mirror.shatow.net/freebsd/${PORTNAME}/:manpages
PKGNAMESUFFIX= -snapshot
DISTNAME= ${PORTNAME}-freebsd-${PORTVERSION}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:dist \
${DISTNAME}-manpages${EXTRACT_SUFX}:manpages
MAINTAINER= bdrewery@FreeBSD.org
COMMENT= Memory debugging and profiling tool
LICENSE= GPLv2
CONFLICTS= valgrind-[0-9]*
LATEST_LINK= valgrind-snapshot
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:${PORTSDIR}/net/mpich2
PLIST_SUB+= MPI=""
.else
PLIST_SUB+= MPI="@comment "
.endif
post-install:
(cd ${WRKDIR}/valgrind-manpages/ && ${COPYTREE_SHARE} \* ${MANPREFIX}/man/man1)
.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/libc.so)
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>