summaryrefslogtreecommitdiff
path: root/parallel/slurm/Makefile
blob: 43472b799ab8a814d6a1e282ace23c4df5728ade (plain)
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
# $NetBSD: Makefile,v 1.11 2014/02/12 23:18:28 tron Exp $

DISTNAME=	slurm-2.6.4
PKGREVISION=	1
CATEGORIES=	parallel
MASTER_SITES=	http://www.schedmd.com/download/archive/ \
		http://www.schedmd.com/download/latest/ \
		http://www.schedmd.com/download/development/
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	asau@inbox.ru
HOMEPAGE=	http://www.schedmd.com/
COMMENT=	Simple Linux Utility for Resource Management

USE_LANGUAGES=	c c++

GNU_CONFIGURE=	yes
USE_TOOLS=	perl pkg-config
USE_LIBTOOL=	yes

CONFIGURE_ARGS+=	--with-hdf5=no
# Fix installation:
CONFIGURE_ARGS+=	--htmldir=$(PREFIX)/share/doc/$(PKGNAME_NOREV)/html

REPLACE_PYTHON=	doc/html/shtml2html.py

PKG_GROUPS=		slurm
PKG_USERS=		slurm:slurm

PKG_GECOS.slurm=	SLURM user
PKG_SHELL.slurm=	$(NOLOGIN)

post-install:
	$(INSTALL_DATA_DIR) $(DESTDIR)$(PREFIX)/share/examples/$(PKGBASE)
	$(INSTALL_DATA) $(WRKSRC)/etc/* $(DESTDIR)$(PREFIX)/share/examples/$(PKGBASE)/

.include "../../lang/python/tool.mk"

CONFIGURE_ARGS+=	--with-munge=$(BUILDLINK_PREFIX.munge:Q)
.include "../../security/munge/buildlink3.mk" # optional
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/curses.buildlink3.mk"
.include "../../mk/pam.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"