ports/124068: port devel/llvm: Add maintainer mode

Pedro F. Giffuni pfgshield-freebsd at yahoo.com
Wed May 28 15:20:03 UTC 2008


>Number:         124068
>Category:       ports
>Synopsis:       port devel/llvm: Add maintainer mode
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 28 15:20:03 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Pedro F. Giffuni
>Release:        6.3-Release (amd64)
>Organization:
>Environment:
FreeBSD kakumen.cable.net.co 6.3-RELEASE FreeBSD 6.3-RELEASE #10: Sat Jan 19 01:13:55 COT 2008     root at kakumen.cable.net.co:/usr/src/sys/amd64/compile/SMP  amd64

>Description:
It's very useful to be able to run the regression tests.

While here I removed the checks for gcc3.3 and old perl version as it's doubtful that a supported version still doesn't use modern versions.
>How-To-Repeat:

>Fix:
diff -rNu llvm.orig/Makefile llvm/Makefile
--- llvm.orig/Makefile	2008-05-27 23:01:29.000000000 -0500
+++ llvm/Makefile	2008-05-28 01:27:43.000000000 -0500
@@ -13,12 +13,20 @@
 MAINTAINER=	brooks at FreeBSD.org
 COMMENT=	Low Level Virtual Machine
 
+.if defined(MAINTAINER_MODE)
+BUILD_DEPENDS=	f2c:${PORTSDIR}/lang/f2c	\
+		runtest:${PORTSDIR}/misc/dejagnu
+.endif
+
 GNU_CONFIGURE=	yes
 USE_GMAKE=	yes
 USE_PERL5_BUILD=yes
-USE_GCC=	3.3+
 
-CONFIGURE_FLAGS+=	--enable-optimized
+.if defined(MAINTAINER_MODE)
+CONFIGURE_ARGS+=	--with-f2c=${LOCALBASE}
+.else
+CONFIGURE_ARGS+=	--enable-optimized
+.endif
 
 MAN1=		bugpoint.1 llc.1 lli.1 llvm-ar.1 \
 		llvm-as.1 llvm-bcanalyzer.1 llvm-config.1 llvm-db.1 \
@@ -33,10 +41,6 @@
 BROKEN=		does not build on sparc64
 .endif
 
-.if ${PERL_LEVEL} < 500800
-BROKEN=		does not compile with perl ${PERL_VERSION}
-.endif
-
 post-patch:
 	${REINPLACE_CMD} -e 's,\(PROJ_docsdir.*:=\).*$$,\1${DOCSDIR},g' \
 		${WRKSRC}/Makefile.config.in
@@ -48,4 +52,7 @@
 	    ${PREFIX}/etc/llvm/.dir \
 	    ${PREFIX}/lib/.dir
 
+regression-test:
+	(cd ${WRKSRC}/test; ${SETENV} ${MAKE_ENV} ${GMAKE} check)
+
 .include <bsd.port.post.mk>


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list