summaryrefslogtreecommitdiff
path: root/devel/hwloc/Makefile
blob: a0b28acc6733384fe9d42631b9b380452a236e9c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# $FreeBSD$

PORTNAME=	hwloc
PORTVERSION=	1.7.1
CATEGORIES=	devel
MASTER_SITES=	http://www.open-mpi.org/software/hwloc/v${PORTVERSION:R}/downloads/ \
		http://icl.cs.utk.edu/open-mpi/software/hwloc/v${PORTVERSION:R}/downloads/

MAINTAINER=	phd_kimberlite@yahoo.co.jp
COMMENT=	The Portable Hardware Locality software package

LICENSE=	BSD
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	pciaccess:${PORTSDIR}/devel/libpciaccess

GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=	--enable-static \
			--enable-libxml2 \
			--disable-gl
USES=		pkgconfig pathfix iconv
USE_BZIP2=	yes
USE_LDCONFIG=	yes
USE_GNOME=	libxml2
MAKE_JOBS_SAFE=	yes

PORTDOCS=	*

ONLY_FOR_ARCHS=		i386 amd64
ONLY_FOR_ARCHS_REASON=	has not been ported to this architecture

OPTIONS_DEFINE=	CAIRO

.include "${.CURDIR}/Makefile.man"
.include <bsd.port.options.mk>

.if empty(PORT_OPTIONS:MCAIRO)
CONFIGURE_ARGS+=	--disable-cairo \
			--without-x
.else
CONFIGURE_ARGS+=	--enable-cairo \
			--with-x
LIB_DEPENDS+=		cairo:${PORTSDIR}/graphics/cairo
USE_XORG=		x11
.endif

post-patch:
.if empty(PORT_OPTIONS:MDOCS)
	@${REINPLACE_CMD} -e \
	's|^\(install-data-am:\) install-dist_pdfDATA \(install-man\)|\1 \2|g' \
	${WRKSRC}/doc/Makefile.in
.endif

post-install:
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${DOCSDIR}/html
	@${INSTALL_DATA} ${WRKSRC}/doc/doxygen-doc/html/* ${DOCSDIR}/html/.
.endif

.include <bsd.port.mk>