aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mu/Makefile
blob: 7fcf14f2ef0ffcf33243528d6db9398d2c930f3e (plain) (blame)
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
# Created by: rea@FreeBSD.org
# $FreeBSD$

PORTNAME=   mu
PORTVERSION=    0.9.16
DISTVERSIONPREFIX=  v
CATEGORIES= mail

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

LICENSE=    GPLv3

LIB_DEPENDS=    libxapian.so:databases/xapian-core \
        libgmime-2.6.so:mail/gmime26

USE_GITHUB= yes
GH_ACCOUNT= djcb

USES=       autoreconf gmake libtool makeinfo pkgconfig
USE_GNOME=  glib20
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-silent-rules --disable-gtk
INSTALL_TARGET= install-strip

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

OPTIONS_DEFINE=     DOCS GUILE MU4E
OPTIONS_SUB=        yes

GUILE_LIB_DEPENDS=  libguile-2.0.so:lang/guile2
GUILE_USE=      ldconfig=yes
GUILE_CONFIGURE_ENABLE= guile
GUILE_INFO=     mu-guile
MU4E_DESC=      Email client for Emacs
MU4E_USE=       emacs=yes
MU4E_CONFIGURE_ENABLE=  mu4e
MU4E_INFO=      mu4e

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>