Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Oct 2019 15:09:02 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r514536 - head/math/metis
Message-ID:  <201910151509.x9FF92kY031259@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Tue Oct 15 15:09:02 2019
New Revision: 514536
URL: https://svnweb.freebsd.org/changeset/ports/514536

Log:
  math/metis: assign maintainership
  
  While here, clean up
  
  PR:		241203
  Submitted by:	Lorenzo Salvadore <phascolarctos@protonmail.ch>

Modified:
  head/math/metis/Makefile   (contents, props changed)

Modified: head/math/metis/Makefile
==============================================================================
--- head/math/metis/Makefile	Tue Oct 15 15:04:13 2019	(r514535)
+++ head/math/metis/Makefile	Tue Oct 15 15:09:02 2019	(r514536)
@@ -7,58 +7,48 @@ PORTREVISION=	8
 CATEGORIES=	math
 MASTER_SITES=	http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	phascolarctos@protonmail.ch
 COMMENT=	Package for unstructured graph partitioning
 
 LICENSE=	APACHE20
 
 USES=		cmake:noninja compiler:c11
 
-CONFLICTS=	metis4-4* metis-edf-[0-9]*
+CONFLICTS=	metis-edf-[0-9]* metis4-4*
 
-OPTIONS_DEFINE=	OPENMP SHARED STATIC DOCS
+PORTDOCS=	manual.pdf
 
+BINS=		cmpfillin gpmetis graphchk m2gmetis mpmetis ndmetis
+SHLIB_MAJOR?=	2
+
+OPTIONS_DEFINE=		DOCS OPENMP SHARED STATIC
+OPTIONS_DEFAULT=	SHARED STATIC
+OPTIONS_SUB=		yes
+
 OPENMP_DESC=	multithreading via OpenMP
-#PROFILE_DESC=	profiling libraries
 SHARED_DESC=	shared library and dynamically-linked executables
 STATIC_DESC=	libmetis archive
 
-OPTIONS_DEFAULT=	SHARED STATIC
+OPENMP_CMAKE_BOOL=	OPENMP
+OPENMP_USES=		compiler:openmp
 
-BINS=	cmpfillin gpmetis graphchk m2gmetis mpmetis ndmetis
+SHARED_USE=	LDCONFIG=yes
 
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MOPENMP}
-USES+=		compiler:openmp
-CMAKE_ARGS+=	-DOPENMP=1
-.endif
-
-.if ${PORT_OPTIONS:MSHARED}
+CMAKE_ARGS_SHARED=	-DSHARED=1 -DSHLIB_MAJOR="${SHLIB_MAJOR}"
 ALL_TARGET_SHARED=	all
-CMAKE_ARGS_SHARED=	-DSHARED=1
-PLIST_SUB+=		SHARED=""
-.if ${ARCH} == "sparc64"
-SHARED_FLAGS?=		-fPIC
-.else
-SHARED_FLAGS?=		-fpic
-.endif
-SHLIB_MAJOR?=		2
-CMAKE_ARGS+=		-DSHLIB_MAJOR="${SHLIB_MAJOR}"
-USE_LDCONFIG=		yes
 WRKSRC_SHARED=		${WRKSRC}_SHARED
 INSTALL_WRKSRC_SHARED=	${WRKSRC_SHARED}
-.else
-PLIST_SUB+=		SHARED="@comment "
-.endif
 
-.if ${PORT_OPTIONS:MSTATIC}
 ALL_TARGET_STATIC=	metis
-PLIST_SUB+=		STATIC=""
 WRKSRC_STATIC=		${WRKSRC}
 INSTALL_WRKSRC_STATIC=	${WRKSRC_STATIC}/libmetis
+
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == "sparc64"
+CFLAGS+=	-fPIC
 .else
-PLIST_SUB+=		STATIC="@comment "
+CFLAGS+=	-fpic
 .endif
 
 pre-configure:
@@ -72,14 +62,12 @@ pre-configure:
 		's|IDXTYPEWIDTH 32|IDXTYPEWIDTH 64|' \
 		${WRKSRC}/include/metis.h
 .endif
-.for o in SHARED #PROFILE
-.if ${PORT_OPTIONS:M${o}}
-	@${CP} -R ${WRKSRC} ${WRKSRC_${o}}
-.endif
-.endfor
 
+pre-configure-SHARED-on:
+	@${CP} -R ${WRKSRC} ${WRKSRC_SHARED}
+
 do-configure:
-.for o in SHARED STATIC #PROFILE
+.for o in SHARED STATIC
 .if ${PORT_OPTIONS:M${o}}
 	@${PRINTF} "\n\nConfiguring ${o}:\n\n\n"
 	@cd ${WRKSRC_${o}}; ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} \
@@ -89,7 +77,7 @@ do-configure:
 .endfor
 
 do-build:
-.for o in SHARED STATIC #PROFILE
+.for o in SHARED STATIC
 .if ${PORT_OPTIONS:M${o}}
 	@${PRINTF} "\n\nBuilding ${o}:\n\n\n"
 	@cd ${WRKSRC_${o}}; ${SETENV} ${MAKE_ENV} ${MAKE} ${_MAKE_JOBS} \
@@ -108,7 +96,7 @@ check regression-test test: build
 	cd ${WRKSRC_SHARED}/graphs ; ../programs/gpmetis ./4elt.graph 5
 
 do-install:
-.for o in SHARED STATIC #PROFILE
+.for o in SHARED STATIC
 .if ${PORT_OPTIONS:M${o}}
 	@${PRINTF} "\n\nInstalling ${o}:\n\n\n"
 	@cd ${INSTALL_WRKSRC_${o}}; ${SETENV} ${MAKE_ENV} ${MAKE} ${_MAKE_JOBS} \
@@ -116,12 +104,8 @@ do-install:
 .endif
 .endfor
 
-.if ${PORT_OPTIONS:MDOCS}
-PORTDOCS=	manual.pdf
-
-post-install:
+post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/manual/manual.pdf ${STAGEDIR}${DOCSDIR}
-.endif
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910151509.x9FF92kY031259>