1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/devel/py-libzfs/Makefile
Gleb Popov 38cc769ee8 devel/py-libzfs: Make the OSVERSION check more accurate
PR:		279450
Reported by:	Hiroo Ono <hiroo.ono+freebsd@gmail.com>
2024-07-09 20:41:08 +03:00

36 lines
831 B
Makefile

PORTNAME= libzfs
PORTVERSION= 1.1.2023020700
CATEGORIES= devel python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= freqlabs@FreeBSD.org
COMMENT= Python libzfs bindings
WWW= https://github.com/freenas/py-libzfs
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USE_GITHUB= yes
GH_ACCOUNT= truenas
GH_PROJECT= py-libzfs
GH_TAGNAME= c1bd4a0
HAS_CONFIGURE= yes
USES= compiler:c11 python
USE_PYTHON= autoplist distutils cython
CONFIGURE_ENV= freebsd_src=${SRC_BASE}
MAKE_ENV= freebsd_src=${SRC_BASE}
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && (${OSVERSION} >= 1500018 || (${OSVERSION} >= 1401000 && ${OSVERSION} < 1500000))
EXTRA_PATCHES+= ${FILESDIR}/extra-zpool-add.patch
.endif
.if !exists(${SRC_BASE}/sys/Makefile)
IGNORE= requires kernel source files in ${SRC_BASE}
.endif
.include <bsd.port.mk>