File:  [cvs.NetBSD.org] / pkgsrc / security / py-cryptodome / Makefile
Revision 1.50: download - view: text, annotated - select for diffs
Wed Aug 2 16:17:18 2023 UTC (15 months ago) by nia
Branches: MAIN
CVS tags: pkgsrc-2023Q3-base, pkgsrc-2023Q3, HEAD
*: Use FORCE_C_STD=c99 for C packages that use for loop initial
declarations without setting -std=c99.

# $NetBSD: Makefile,v 1.50 2023/08/02 16:17:18 nia Exp $

DISTNAME=	pycryptodome-3.18.0
PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/^py//}
CATEGORIES=	security python
MASTER_SITES=	${MASTER_SITE_PYPI:=p/pycryptodome/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://www.pycryptodome.org/
COMMENT=	Cryptographic and hash functions for Python
LICENSE=	public-domain AND python-software-foundation

# "error: 'for' loop initial declarations are only allowed in C99 mode"
FORCE_C_STD=	c99

# XXX is this needed?
CFLAGS.SunOS+=	-D_XOPEN_SOURCE=600

CHECK_PORTABILITY_SKIP=	appveyor/get_wheels.sh

.include "../../lang/python/egg.mk"

# Python 3 builds of this package get an extra "abi3" suffix added
.if ${PYTHON_VERSION} < 300
PLIST_SUBST+=	SOEXT="so"
.else
PLIST_SUBST+=	SOEXT="abi3.so"
.endif

BUILDLINK_API_DEPENDS.gmp+=	gmp>=5.0
.include "../../devel/gmp/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>