mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
362462b641
minor simplifications; shorten a few long lines PR: 163232 [1] Submitted by: J. Beich (partial patch) [1] Feature safe: yes
61 lines
1.6 KiB
Makefile
61 lines
1.6 KiB
Makefile
# New ports collection makefile for: METIS
|
|
# Date created: 26 Oct 97
|
|
# Whom: Pedro Giffuni <giffunip@asme.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= metis
|
|
PORTVERSION= 4.0.3
|
|
CATEGORIES= math
|
|
MASTER_SITES= http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/ \
|
|
http://www-users.cs.umn.edu/~karypis/metis/metis/files/
|
|
|
|
MAINTAINER= bf@FreeBSD.org
|
|
COMMENT= A package for unstructured graph partitioning
|
|
|
|
CONFLICTS= metis-edf-[0-9]*
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
PROGRAMS= graphchk kmetis mesh2dual mesh2nodal \
|
|
oemetis onmetis partnmesh partdmesh pmetis
|
|
|
|
.include <bsd.port.pre.mk>
|
|
.if ${ARCH} == "sparc64"
|
|
PICFLAG?= -fPIC
|
|
.else
|
|
PICFLAG?= -fpic
|
|
.endif
|
|
|
|
post-patch:
|
|
${CP} -R ${WRKSRC} ${WRKSRC}_SHARED
|
|
|
|
do-build:
|
|
@cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} \
|
|
COPTIONS="${CFLAGS}" LDOPTIONS="${LDFLAGS}" \
|
|
${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS}
|
|
@cd ${WRKSRC}_SHARED ; ${SETENV} ${MAKE_ENV} \
|
|
COPTIONS="${CFLAGS} ${PICFLAG}" LDOPTIONS="${LDFLAGS} ${PICFLAG}" \
|
|
${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} ; \
|
|
${LD} -Bshareable -o libmetis.so.1 -x -soname libmetis.so.1 \
|
|
--whole-archive libmetis.a --no-whole-archive
|
|
|
|
check regression-test test: build
|
|
cd ${WRKSRC}/Graphs ; ./mtest 4elt.graph
|
|
|
|
do-install:
|
|
cd ${WRKSRC} ; ${INSTALL_PROGRAM} ${PROGRAMS} ${PREFIX}/bin
|
|
@${MKDIR} ${PREFIX}/include/metis
|
|
${INSTALL_DATA} ${WRKSRC}/Lib/*.h ${PREFIX}/include/metis
|
|
${INSTALL_DATA} ${WRKSRC}/libmetis.a ${PREFIX}/lib
|
|
${INSTALL_DATA} ${WRKSRC}_SHARED/libmetis.so.1 ${PREFIX}/lib
|
|
${LN} -sf libmetis.so.1 ${PREFIX}/lib/libmetis.so
|
|
|
|
.ifndef NOPORTDOCS
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/Doc/manual.ps ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|