mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
57 lines
1.3 KiB
Makefile
57 lines
1.3 KiB
Makefile
# $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>
|