svn commit: r320935 - in head/devel: valgrind valgrind-snapshot

Bryan Drewery bdrewery at FreeBSD.org
Fri Jun 14 14:34:17 UTC 2013


Author: bdrewery
Date: Fri Jun 14 14:34:15 2013
New Revision: 320935
URL: http://svnweb.freebsd.org/changeset/ports/320935

Log:
  - Convert to new options helpers
  - Remove bsd.port.post.mk

Modified:
  head/devel/valgrind-snapshot/Makefile
  head/devel/valgrind/Makefile

Modified: head/devel/valgrind-snapshot/Makefile
==============================================================================
--- head/devel/valgrind-snapshot/Makefile	Fri Jun 14 14:31:22 2013	(r320934)
+++ head/devel/valgrind-snapshot/Makefile	Fri Jun 14 14:34:15 2013	(r320935)
@@ -30,6 +30,9 @@ MAN1=		callgrind_control.1 \
 OPTIONS_DEFINE=	MPI
 MPI_DESC=	Enable build of MPI wrappers
 
+MPI_LIB_DEPENDS=	mpich:${PORTSDIR}/net/mpich2
+
+OPTIONS_SUB=	yes
 USE_BZIP2=	yes
 USE_GMAKE=	yes
 USES=	pathfix pkgconfig
@@ -43,15 +46,6 @@ 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
-
-.include <bsd.port.pre.mk>
-
 .if ${ARCH} == "amd64"
 PLIST_SUB+=	AMD64="" ARCH=amd64
 . if !exists(/usr/lib32/libc.so)
@@ -70,4 +64,4 @@ post-patch:
 	@${RM} -rf ${WRKSRC}/docs/html
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/devel/valgrind/Makefile
==============================================================================
--- head/devel/valgrind/Makefile	Fri Jun 14 14:31:22 2013	(r320934)
+++ head/devel/valgrind/Makefile	Fri Jun 14 14:34:15 2013	(r320935)
@@ -28,6 +28,9 @@ MAN1=		callgrind_control.1 \
 OPTIONS_DEFINE=	MPI
 MPI_DESC=	Enable build of MPI wrappers
 
+MPI_LIB_DEPENDS=	mpich:${PORTSDIR}/net/mpich2
+
+OPTIONS_SUB=	yes
 USE_BZIP2=	yes
 USE_GMAKE=	yes
 USES=	pathfix pkgconfig
@@ -41,16 +44,7 @@ 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
-
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "amd64"
+if ${ARCH} == "amd64"
 PLIST_SUB+=	AMD64="" ARCH=amd64
 . if !exists(/usr/lib32/libc.so)
 CONFIGURE_ARGS+=	--enable-only64bit
@@ -68,4 +62,4 @@ post-patch:
 	@${RM} -rf ${WRKSRC}/docs/html
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>


More information about the svn-ports-all mailing list