opnsense-ports/devel/py-libzfs/Makefile
Franco Fichtner 302a6d04a9 */*: sync with upstream
Taken from: FreeBSD
2016-04-21 08:13:44 +02:00

41 lines
819 B
Makefile

# Created by: William Grzybowski <wg@FreeBSD.org>
# $FreeBSD$
PORTNAME= libzfs
PORTVERSION= 1.0
PORTREVISION= 5
CATEGORIES= devel python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= wg@FreeBSD.org
COMMENT= Python libzfs bindings
LICENSE= BSD2CLAUSE
BUILD_DEPENDS= cython>0:lang/cython
USE_GITHUB= yes
GH_ACCOUNT= freenas
GH_PROJECT= py-libzfs
GH_TAGNAME= faa3e92
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: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>