freebsd-ports/security/py-clamav/Makefile
Dmitry Marakasov 11647c0c29 - Add LICENSE
- Strip library
2015-03-11 14:51:35 +00:00

38 lines
1 KiB
Makefile

# Created by: Marcus Alves Grando <mnag@FreeBSD.org>
# $FreeBSD$
PORTNAME= clamav
PORTVERSION= 0.4.1
PORTREVISION= 5
CATEGORIES= security python
MASTER_SITES= http://xael.org/norman/python/pyclamav/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= py${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Python binding to libclamav written in C
LICENSE= GPLv2 # or later
LICENSE_FILE= ${WRKSRC}/gpl.txt
LIB_DEPENDS= libclamav.so:${PORTSDIR}/security/clamav
DIST_SUBDIR= python
USES= python
USE_PYTHON= distutils autoplist
PYDISTUTILS_BUILDARGS= build_ext -I${LOCALBASE}/include -L${LOCALBASE}/lib
DOCSDIR?= ${PREFIX}/share/doc/py-${PORTNAME}
EXAMPLESDIR?= ${PREFIX}/share/examples/py-${PORTNAME}
PORTDOCS= *
PORTEXAMPLES= *
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pyclamav.so
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/example.py ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>