diff options
author | swills <swills@FreeBSD.org> | 2019-10-15 23:09:02 +0800 |
---|---|---|
committer | swills <swills@FreeBSD.org> | 2019-10-15 23:09:02 +0800 |
commit | 3cccadf4708fac432d935e54c3e358c77315918f (patch) | |
tree | e202b8f0587bad35cd52cebf63c2f719cd339952 /math | |
parent | 75394e6ddf34b8c3a59ed6eccce4333622f0a00d (diff) | |
download | freebsd-ports-gnome-3cccadf4708fac432d935e54c3e358c77315918f.tar.gz freebsd-ports-gnome-3cccadf4708fac432d935e54c3e358c77315918f.tar.zst freebsd-ports-gnome-3cccadf4708fac432d935e54c3e358c77315918f.zip |
math/metis: assign maintainership
While here, clean up
PR: 241203
Submitted by: Lorenzo Salvadore <phascolarctos@protonmail.ch>
Diffstat (limited to 'math')
-rw-r--r-- | math/metis/Makefile | 70 |
1 files changed, 27 insertions, 43 deletions
diff --git a/math/metis/Makefile b/math/metis/Makefile index f9400b7020b3..b264534f8407 100644 --- a/math/metis/Makefile +++ b/math/metis/Makefile @@ -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 -OPENMP_DESC= multithreading via OpenMP -#PROFILE_DESC= profiling libraries -SHARED_DESC= shared library and dynamically-linked executables -STATIC_DESC= libmetis archive +BINS= cmpfillin gpmetis graphchk m2gmetis mpmetis ndmetis +SHLIB_MAJOR?= 2 +OPTIONS_DEFINE= DOCS OPENMP SHARED STATIC OPTIONS_DEFAULT= SHARED STATIC +OPTIONS_SUB= yes -BINS= cmpfillin gpmetis graphchk m2gmetis mpmetis ndmetis +OPENMP_DESC= multithreading via OpenMP +SHARED_DESC= shared library and dynamically-linked executables +STATIC_DESC= libmetis archive -.include <bsd.port.options.mk> +OPENMP_CMAKE_BOOL= OPENMP +OPENMP_USES= compiler:openmp -.if ${PORT_OPTIONS:MOPENMP} -USES+= compiler:openmp -CMAKE_ARGS+= -DOPENMP=1 -.endif +SHARED_USE= LDCONFIG=yes -.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> |