blob: 8a78a20d4107615fb2409fec049622837c89eb35 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# New ports collection makefile for: py-gnutls
# Date created: Apr. 06, 2007
# Whom: Li-Wen Hsu <lwhsu@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= gnutls
PORTVERSION= 1.1.5
PORTREVISION= 1
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= gnutls.26:${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
.if !defined(NOPORTEXAMPLES)
post-install:
@${MKDIR} ${EXAMPLESDIR}
${CP} -R ${WRKSRC}/examples/ ${EXAMPLESDIR}
.endif
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 250
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/ctypes/__init__.py:${PORTSDIR}/devel/py-ctypes
.endif
.include <bsd.port.post.mk>
|