summaryrefslogtreecommitdiff
path: root/mail/mu/Makefile
blob: 6a8bb08d8828bab23ec646ba2edaebf4cc536a10 (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
PORTNAME=	mu
PORTVERSION=	1.6.10
CATEGORIES=	mail

MAINTAINER=	hrs@FreeBSD.org
COMMENT=	Mail searching frontend for Xapian

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

LIB_DEPENDS=	libxapian.so:databases/xapian-core \
		libgmime-3.0.so:mail/gmime30 \
		libgc-threaded.so:devel/boehm-gc-threaded \
		libjson-glib-1.0.so:devel/json-glib

USES=		autoreconf compiler:c++14-lang gettext-runtime gmake gnome \
		libtool makeinfo pkgconfig
USE_GITHUB=	yes
GH_ACCOUNT=	djcb
USE_GNOME=	glib20

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-gtk --disable-mu4e
INSTALL_TARGET=	install-strip

OPTIONS_DEFINE=		DOCS GUILE
OPTIONS_SUB=		yes

GUILE_LIB_DEPENDS=	libguile-2.2.so:lang/guile2
GUILE_USE=		ldconfig=yes
GUILE_CONFIGURE_ENABLE=	guile
GUILE_INFO=		mu-guile

post-install:
	cd ${FILESDIR} && ${INSTALL_SCRIPT} mu-ask \
	    ${STAGEDIR}${PREFIX}/bin

post-install-GUILE-on:
	${FIND} ${STAGEDIR}${PREFIX}/lib -name "*.so.*" -type f | \
	    ${XARGS} ${STRIP_CMD}

.include <bsd.port.mk>