e413c34db1
PR: 234633 With hat: portmgr Differential Revision: https://reviews.freebsd.org/D18743
38 lines
803 B
Makefile
38 lines
803 B
Makefile
# Created by: Vsevolod Lobko <seva@sevasoft.kiev.ua>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= milter
|
|
PORTVERSION= 1.0.2
|
|
PORTREVISION= 1
|
|
DISTVERSIONPREFIX= ${GH_PROJECT}-
|
|
CATEGORIES= mail python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= estartu@augusta.de
|
|
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
|
|
|
|
USES= python
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= sdgathman
|
|
GH_PROJECT= py${PORTNAME}
|
|
USE_PYTHON= distutils autoplist flavors
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/milter.so
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${FLAVOR:Upy36:Mpy3*}
|
|
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-miltermodule.c
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|