pkgsrc/devel/py-hash/Makefile
2018-12-15 21:12:18 +00:00

30 lines
757 B
Makefile

# $NetBSD: Makefile,v 1.7 2018/12/15 21:12:21 wiz Exp $
DISTNAME= pyfasthash-0.6.2
PKGNAME= ${DISTNAME:S/pyfast/${PYPKGPREFIX}-/}
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=flier/}
MAINTAINER= fhajny@NetBSD.org
HOMEPAGE= https://github.com/flier/pyfasthash/
COMMENT= Python Non-cryptographic Hash Library
LICENSE= apache-2.0
GITHUB_PROJECT= pyfasthash
USE_LANGUAGES= c c++
EGG_NAME= ${DISTNAME:S/fast//}
MAKE_ENV+= PYVER=${_PYTHON_VERSION}
.include "../../mk/endian.mk"
.if ${MACHINE_ENDIAN} == "little"
CPPFLAGS+= -DHASH_LITTLE_ENDIAN=1 -DHASH_BIG_ENDIAN=0
.else
CPPFLAGS+= -DHASH_LITTLE_ENDIAN=0 -DHASH_BIG_ENDIAN=1
.endif
.include "../../devel/py-boost/buildlink3.mk"
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"