freebsd-ports/devel/hwloc/Makefile
Maho Nakata e9e7e638d3 The Portable Hardware Locality software package
The Portable Hardware Locality (hwloc) software package provides
a portable abstraction (across OS, versions, architectures, ...) of
the hierarchical topology of modern architectures, including as follows:
- NUMA memory nodes;
- sockets;
- shared caches;
- cores and simultaneous multithreading.
It also gathers various system attributes such as cache and
memory information as well as the locality of I/O devices
(such as network interfaces, InfiniBand HCAs or GPUs).
It primarily aims at helping applications with gathering information about
modern computing hardware so as to exploit it accordingly and efficiently [1].

[1] Portable Hardware Locality (hwloc) WWW.

WWW: http://www.open-mpi.org/projects/hwloc/

PR:		163427
Submitted by:	Eijiro Shibusawa <phd_kimberlite@yahoo.co.jp>
Feature safe:	yes
2011-12-19 03:33:00 +00:00

64 lines
1.5 KiB
Makefile

# New ports collection makefile for: hwloc
# Date created: 18 Dec 2011
# Whom: Eijiro Shibusawa <ej-sib@ice.uec.ac.jp>
#
# $FreeBSD$
#
PORTNAME= hwloc
PORTVERSION= 1.3
CATEGORIES= devel
MASTER_SITES= http://www.open-mpi.org/software/hwloc/v1.3/downloads/ \
http://icl.cs.utk.edu/open-mpi/software/hwloc/v1.3/downloads/
MAINTAINER= phd_kimberlite@yahoo.co.jp
COMMENT= The Portable Hardware Locality software package
LICENSE= BSD
LICENSE_FILE= ${WRKSRC}/COPYING
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-static \
--enable-libxml2
USE_BZIP2= yes
USE_LDCONFIG= yes
USE_GNOME= libxml2 pkgconfig
MAKE_JOBS_SAFE= yes
OPTIONS= CAIRO "Enable CAIRO support" off
.include <bsd.port.pre.mk>
.if defined(WITHOUT_CAIRO)
CONFIGURE_ARGS+= --disable-cairo \
--without-x
.else
CONFIGURE_ARGS+= --enable-cairo \
--with-x
LIB_DEPENDS+= cairo.2:${PORTSDIR}/graphics/cairo
USE_XORG= x11
.endif
.include "${FILESDIR}/manpages"
post-patch:
@${REINPLACE_CMD} -e \
's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g' \
${WRKSRC}/Makefile.in
.ifdef NOPORTDOCS
@${REINPLACE_CMD} -e \
's|^\(install-data-am:\) install-dist_pdfDATA \(install-man\)|\1 \2|g' \
${WRKSRC}/doc/Makefile.in
.endif
post-install:
@(cd ${MAN1PREFIX}/man/man1/ ;\
${LN} -sf lstopo.1.gz hwloc-info.1.gz ; \
${LN} -sf lstopo.1.gz hwloc-ls.1.gz ;\
${LN} -sf hwloc-calc.1.gz hwloc-mask.1.gz )
.ifdef !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}/html
@${INSTALL_DATA} ${WRKSRC}/doc/doxygen-doc/html/* ${DOCSDIR}/html/.
.endif
.include <bsd.port.post.mk>