aboutsummaryrefslogtreecommitdiffstats
path: root/mail/py-milter/Makefile
blob: 5931acf01c41b1617cac96783814a1ba20a3ae81 (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
# Created by: Vsevolod Lobko <seva@sevasoft.kiev.ua>
# $FreeBSD$

PORTNAME=   milter
PORTVERSION=    1.0
PORTREVISION=   2
CATEGORIES= mail python
MASTER_SITES=   SF/${PYPORTNAME}/${PYPORTNAME}/${DISTNAME}
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   ${PYPORTNAME}-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Python interface to Sendmail milter API

LICENSE=    GPLv2+
LICENSE_FILE=   ${WRKSRC}/COPYING

.if !exists(/usr/lib/libmilter.so)
LIB_DEPENDS=    libmilter.so:mail/libmilter
CFLAGS+=    -I${LOCALBASE}/include
.endif

PYPORTNAME= ${PKGNAMEPREFIX:C/[0-9]+-//}${PORTNAME}

DIST_SUBDIR=    python
USES=       python:2
USE_PYTHON= distutils autoplist

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/milter.so

.include <bsd.port.mk>