summaryrefslogtreecommitdiffstats
path: root/mail/milter-manager/Makefile
blob: 3a9ba0ea96590e11e392b5f2f3a82415e797ad6c (plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Created by: Hirohisa Yamaguchi <umq@ueo.co.jp>
# $FreeBSD$

PORTNAME=	milter-manager
PORTVERSION=	2.0.7
PORTREVISION=	1
CATEGORIES=	mail ruby
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME:S/-/%20/}/${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Super milter that can invoke several milters selectively

LICENSE=	AGPLv3 GFDL GPLv3 LGPL3
LICENSE_COMB=	multi

BUILD_DEPENDS=	rubygem-glib2>0:devel/rubygem-glib2
LIB_DEPENDS=	libev.so:devel/libev
RUN_DEPENDS=	rubygem-glib2>0:devel/rubygem-glib2

USE_RC_SUBR=	milter-manager
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-libev \
		--with-package-platform=freebsd
CPPFLAGS+=	-I${LOCALBASE}/include
LIBS+=		-L${LOCALBASE}/lib
USES=		gettext gmake libtool pathfix pkgconfig
USE_GNOME=	glib20 intltool
USE_LDCONFIG=	yes
USE_RUBY=	yes
INSTALL_TARGET=	install-strip

OPTIONS_DEFINE=	DOCS EXAMPLES

PORTDOCS=	*
PORTEXAMPLES=	*

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDOCS}
CONFIGURE_ARGS+=--with-html-dir=${DOCSDIR}
.else
CONFIGURE_ARGS+=--with-html-dir=${WRKDIR}/doc
.endif

.if ! ${PORT_OPTIONS:MEXAMPLES}
EXAMPLESDIR=	${WRKDIR}/examples
.endif

post-patch:
	@${FIND} ${WRKSRC} -type f -name Makefile.in -exec \
	${REINPLACE_CMD} -e "s#\$$(datadir)/@PACKAGE@#${DATADIR}#" \
			 -e "s#\$$(datarootdir)/\$$(PACKAGE)#${DATADIR}#" {} +
	@${REINPLACE_CMD} -e "s#\\\\\$$(pkgdatadir)/sample#${EXAMPLESDIR}#" ${WRKSRC}/configure
	@${RM} -r ${WRKSRC}/binding/ruby/glib-2.2.5

.include <bsd.port.mk>
OpenPOWER on IntegriCloud