freebsd-ports/mail/py-milter/Makefile
Antoine Brodin f7455240e3 Reduce dependency on the python2 metaport
PR:		225752
Submitted by:	Yasuhiro KIMURA
2018-02-19 11:10:43 +00:00

32 lines
746 B
Makefile

# Created by: Vsevolod Lobko <seva@sevasoft.kiev.ua>
# $FreeBSD$
PORTNAME= milter
PORTVERSION= 1.0
PORTREVISION= 4
CATEGORIES= mail python
MASTER_SITES= SF/${PYPORTNAME}/${PYPORTNAME}/${DISTNAME}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PYPORTNAME}-${PORTVERSION}
DIST_SUBDIR= python
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
PYPORTNAME= ${PKGNAMEPREFIX:C/[0-9]+-//}${PORTNAME}
USES= python:2.7
USE_PYTHON= distutils autoplist
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/milter.so
.include <bsd.port.mk>