1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/security/py-gnutls/Makefile
2014-01-03 08:53:08 +00:00

34 lines
939 B
Makefile

# Created by: Li-Wen Hsu <lwhsu@FreeBSD.org>
# $FreeBSD$
PORTNAME= gnutls
PORTVERSION= 1.2.5
CATEGORIES= security python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= python-gnutls-${PORTVERSION}
MAINTAINER= lwhsu@FreeBSD.org
COMMENT= Python wrapper for the GNUTLS library
LIB_DEPENDS= libgnutls.so:${PORTSDIR}/security/gnutls
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= python_gnutls
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
post-patch:
${REINPLACE_CMD} -e "s|include_dirs=.*|include_dirs=\['${LOCALBASE}/include'\],|" ${WRKSRC}/setup.py
${REINPLACE_CMD} -e "s|library_dirs=.*|library_dirs=\['${LOCALBASE}/lib'\],|" ${WRKSRC}/setup.py
${REINPLACE_CMD} -e "s|\.26||g" ${WRKSRC}/gnutls/library/functions.py
.if !defined(NOPORTEXAMPLES)
post-install:
@${MKDIR} ${STAGEDIR}/${EXAMPLESDIR}
${CP} -R ${WRKSRC}/examples/ ${STAGEDIR}/${EXAMPLESDIR}
.endif
.include <bsd.port.mk>