summaryrefslogtreecommitdiff
path: root/filesystems/ori/Makefile
blob: d749c50963730a7d80ca83be53d3b7d5d0f54024 (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
47
48
49
50
51
52
# $NetBSD: Makefile,v 1.16 2022/04/18 19:11:02 adam Exp $

DISTNAME=	ori-0.8.2
PKGREVISION=	3
CATEGORIES=	filesystems
MASTER_SITES=	https://bitbucket.org/orifs/ori/downloads/
EXTRACT_SUFX=	.tar.xz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://ori.scs.stanford.edu/
COMMENT=	Secure distributed file system
LICENSE=	isc

USE_LANGUAGES=	c c++
USE_TOOLS+=	pkg-config

# (insert swearing)
CWRAPPERS_APPEND.cxx+=	-Wno-narrowing

PYTHON_VERSIONS_ACCEPTED=	27	# python2 SCons files

SUBST_CLASSES+=		man
SUBST_SED.man+=		-e "s,share/man,${PKGMANDIR},"
SUBST_FILES.man+=	SConstruct
SUBST_STAGE.man=	pre-build
SUBST_MESSAGE.man=	Fixing man page installation path.

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "NetBSD"
_WRAP_EXTRA_ARGS.CXX+=	-D_KERNTYPES
CWRAPPERS_APPEND.cxx+=	-D_KERNTYPES
.endif

do-build:
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SCONSBIN}

do-install:
	cd ${WRKSRC} && ${SETENV} ${INSTALL_ENV} ${SCONSBIN} install PREFIX=${DESTDIR}${PREFIX}

# configure script demands libevent 2.0 or greater
BUILDLINK_API_DEPENDS.libevent+=	libevent>=2.0

.include "../../archivers/xz/buildlink3.mk"
.include "../../devel/libevent/buildlink3.mk"
PYTHON_FOR_BUILD_ONLY?=	yes
.include "../../devel/scons/buildlink3.mk"
.include "../../mk/fuse.buildlink3.mk"
.include "../../net/mDNSResponder/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"