mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-31 10:46:16 +00:00
68517d8ee0
In some cases no-sendmail support was in place but missing CFLAGS or LDFLAGS, but in others it needed to be added. Problems found as a result of DragonFly removing sendmail from base. Approved by: just fix it.
33 lines
764 B
Makefile
33 lines
764 B
Makefile
# Created by: Vsevolod Lobko <seva@sevasoft.kiev.ua>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= milter
|
|
PORTVERSION= 1.0
|
|
PORTREVISION= 1
|
|
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 # or later
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
.if !exists(/usr/lib/libmilter.so)
|
|
LIB_DEPENDS= libmilter.so:${PORTSDIR}/mail/sendmail
|
|
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>
|