blob: c01dcb1b67946848dbe1ed6787d5486b266f09d3 (
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
44
45
|
# New ports collection makefile for: py-clamav
# Date created: 26 Dec 2004
# Whom: Marcus Grando <marcus@corp.grupos.com.br>
#
# $FreeBSD$
#
PORTNAME= clamav
PORTVERSION= 0.3.1
CATEGORIES= security python
MASTER_SITES= http://xael.org/norman/python/pyclamav/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= py${PORTNAME}-${PORTVERSION}
MAINTAINER= marcus@corp.grupos.com.br
COMMENT= A python binding to libclamav written in C
LIB_DEPENDS= clamav.1:${PORTSDIR}/security/clamav
DIST_SUBDIR= python
USE_PYTHON= yes
USE_PYDISTUTILS= yes
USE_REINPLACE= yes
PYDISTUTILS_BUILDARGS= build_ext -I${LOCALBASE}/include -L${LOCALBASE}/lib
DOCSDIR?= ${PREFIX}/share/doc/py-${PORTNAME}
EXAMPLESDIR?= ${PREFIX}/share/examples/py-${PORTNAME}
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
post-patch:
@${REINPLACE_CMD} -e 's|stat64|stat|g' ${WRKSRC}/pyclamav.c
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR}
.endif
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/example.py ${EXAMPLESDIR}
.include <bsd.port.mk>
|