aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/openzfs/Makefile
blob: 828a71301a74fbab8a27e9198ea2b1d37e8e0602 (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
# $FreeBSD$

PORTNAME=   openzfs
PORTVERSION=    2019072200
DISTVERSIONPREFIX=  v
CATEGORIES= sysutils

MAINTAINER= kmoore@FreeBSD.org
COMMENT=    OpenZFS userland for FreeBSD

LICENSE=    CDDL

BROKEN_aarch64= invokes x86 assembler

RUN_DEPENDS=    openzfs-kmod>=0:sysutils/openzfs-kmod

USES+=      autoreconf:build libtool gmake gettext-runtime:run python:3.3+,build shebangfix

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --prefix=${PREFIX} --with-config="user"

OPTIONS_DEFINE= DEBUG PYTHON
OPTIONS_SUB=    yes

USE_GITHUB= yes
GH_ACCOUNT= zfsonfreebsd
GH_PROJECT= ZoF
GH_TAGNAME= 05f627f

.include <bsd.port.pre.mk>

.if (${OSVERSION} < 1200504) || (${OSVERSION} >= 1300000 && ${OSVERSION} < 1300013)
IGNORE=      needs FreeBSD 12/13 with AES-CCM support
.endif

.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+=    --enable-debug --enable-debuginfo
.endif

.if ${PORT_OPTIONS:MPYTHON}
CONFIGURE_ARGS+=    --with-python=${PYTHON_VER}
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}cffi>0:devel/py-cffi@${PY_FLAVOR}
RUN_DEPENDS+=   ${PYTHON_PKGNAMEPREFIX}cffi>0:devel/py-cffi@${PY_FLAVOR}
PLIST_SUB+=     PYTHON=""
.else
CONFIGURE_ARGS+=    --without-python --disable-pyzfs
PLIST_SUB+=     PYTHON="@comment "
.endif

pre-configure:
    cd ${WRKSRC} && ./autogen.sh

post-stage:
    ${RM} -rf ${STAGEDIR}/usr/lib

.include <bsd.port.post.mk>