freebsd-ports/devel/py-libzfs/Makefile
2015-11-17 15:30:03 +00:00

41 lines
843 B
Makefile

# Created by: William Grzybowski <wg@FreeBSD.org>
# $FreeBSD$
PORTNAME= libzfs
PORTVERSION= 1.0
PORTREVISION= 4
CATEGORIES= devel python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= wg@FreeBSD.org
COMMENT= Python libzfs bindings
LICENSE= BSD2CLAUSE
BUILD_DEPENDS= cython>0:${PORTSDIR}/lang/cython
USE_GITHUB= yes
GH_ACCOUNT= freenas
GH_PROJECT= py-libzfs
GH_TAGNAME= ab14b4f
USES= python
USE_PYTHON= autoplist distutils
MAKE_ENV= FREEBSD_SRC=${SRC_BASE}
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 3400
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}enum34>0:${PORTSDIR}/devel/py-enum34
.endif
.if !exists(${SRC_BASE}/sys/Makefile)
IGNORE= requires kernel source files in ${SRC_BASE}
.endif
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1002000
IGNORE= This module requires at least FreeBSD 10.2
.endif
.include <bsd.port.post.mk>