aboutsummaryrefslogblamecommitdiff
path: root/devel/valgrind/Makefile
blob: 835cc070fe5aa153057b1d820fa6a0e29f66efc4 (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                                    
                   
                 







                                                       
                                        

                                     
                         







                                                                







                                    



                                                                                                                  
















                                                                                  
      
 






                                                     


                                                         


                             


                           
# Ports collection makefile for:	valgrind
# Date created:				April 15 2004
# Whom:					Simon Barner <barner@gmx.de>
#
# $FreeBSD$
#

PORTNAME=	valgrind
PORTVERSION=	352
PORTREVISION=	1
CATEGORIES=	devel
MASTER_SITES=	http://www.rabson.org/
DISTNAME=	${PORTNAME}-stable-${PORTVERSION}

MAINTAINER=	barner@gmx.de
COMMENT=	A (memory) debugging and profiling tool

ONLY_FOR_ARCHS=	i386
CONFLICTS=	valgrind-snapshot-[0-9]*
WRKSRC=		${WRKDIR}/${DISTNAME}
USE_GMAKE=	yes
USE_GNOME=	pkgconfig
GNU_CONFIGURE=	yes
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+=--enable-maintainer-mode
USE_REINPLACE=	yes
USE_PERL5_BUILD=yes

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 500000
PLIST_SUB+=	RELENG_5=""
PLIST_SUB+=	RELENG_4="@comment "
.else
PLIST_SUB+=	RELENG_4=""
PLIST_SUB+=	RELENG_5="@comment "
.endif

.if ${PERL_LEVEL} < 500601
IGNORE=		"can\'t be built. Your Perl version is too old. Please use lang/perl5.8 port to upgrade your Perl"
.endif

PROCFS!=	/sbin/mount | ${GREP} '^procfs' | ${AWK} '{print $1}'

pre-everything::

.if ${PROCFS}
	@${ECHO_CMD} ""
	@${ECHO_CMD} "Check if procfs is running: YES"
.else
	@${ECHO_CMD} "-----------------------------------------------------------"
	@${ECHO_CMD} ""
	@${ECHO_CMD} "Valgrind needs a running procfs, which is not"
	@${ECHO_CMD} "activated on your system. Please read the procfs\(5\)"
	@${ECHO_CMD} "manpage and add the following line to /etc/fstab:"
	@${ECHO_CMD} ""
	@${ECHO_CMD} "proc /proc procfs rw 0 0"
	@${ECHO_CMD} ""
	@${ECHO_CMD} "-----------------------------------------------------------"
.endif

pre-patch:
.ifdef(NOPORTDOCS)
	${FIND} ${WRKSRC} -name "Makefile.in" -exec \
		${REINPLACE_CMD} -e "s/docs//g" {} \;
.endif

post-install:
	${INSTALL_DATA} ${WRKSRC}/coregrind/vg_unistd.h \
		${PREFIX}/include/valgrind

	@${ECHO} ""
	@${ECHO} ""
	@${CAT} ${PKGMESSAGE}
	@${ECHO} ""

.include <bsd.port.post.mk>