From 15c2a293142b3daf6b22f636f1801bb656b948d2 Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Fri, 20 Jun 2008 03:50:58 +0000 Subject: [PATCH] Depend on dejagnu if either PACKAGE_BUILDING or MAINTAINER_MODE are set so the regression tests get run on the package cluster. Make regression-test depend on build. Remove an extra blank line. Submitted by: pfgshield dash freebsd at yahoo dot com --- devel/llvm/Makefile | 9 +++++---- devel/llvm29/Makefile | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/devel/llvm/Makefile b/devel/llvm/Makefile index d19ffcfd619f..605060566c0b 100644 --- a/devel/llvm/Makefile +++ b/devel/llvm/Makefile @@ -15,9 +15,11 @@ DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} MAINTAINER= brooks@FreeBSD.org COMMENT= Low Level Virtual Machine +.if defined(PACKAGE_BUILDING) || defined(MAINTAINER_MODE) +BUILD_DEPENDS= runtest:${PORTSDIR}/misc/dejagnu +.endif .if defined(MAINTAINER_MODE) -BUILD_DEPENDS= f2c:${PORTSDIR}/lang/f2c \ - runtest:${PORTSDIR}/misc/dejagnu +BUILD_DEPENDS+= f2c:${PORTSDIR}/lang/f2c .endif GNU_CONFIGURE= yes @@ -46,8 +48,7 @@ post-install: @${RM} ${PREFIX}/bin/.dir \ ${PREFIX}/lib/.dir -regression-test: +regression-test: build (cd ${WRKSRC}/test; ${SETENV} ${MAKE_ENV} ${GMAKE} check) - .include diff --git a/devel/llvm29/Makefile b/devel/llvm29/Makefile index d19ffcfd619f..605060566c0b 100644 --- a/devel/llvm29/Makefile +++ b/devel/llvm29/Makefile @@ -15,9 +15,11 @@ DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} MAINTAINER= brooks@FreeBSD.org COMMENT= Low Level Virtual Machine +.if defined(PACKAGE_BUILDING) || defined(MAINTAINER_MODE) +BUILD_DEPENDS= runtest:${PORTSDIR}/misc/dejagnu +.endif .if defined(MAINTAINER_MODE) -BUILD_DEPENDS= f2c:${PORTSDIR}/lang/f2c \ - runtest:${PORTSDIR}/misc/dejagnu +BUILD_DEPENDS+= f2c:${PORTSDIR}/lang/f2c .endif GNU_CONFIGURE= yes @@ -46,8 +48,7 @@ post-install: @${RM} ${PREFIX}/bin/.dir \ ${PREFIX}/lib/.dir -regression-test: +regression-test: build (cd ${WRKSRC}/test; ${SETENV} ${MAKE_ENV} ${GMAKE} check) - .include