blob: b27c89f1dd5019f448e742bfdd282c27c356bb88 (
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
57
58
59
60
61
62
63
64
65
66
67
68
|
# Created by: Olivier Cochard-Labbe <olivier@FreeBSD.org>
# $FreeBSD$
PORTNAME= mailer
PORTVERSION= 0.1.7
CATEGORIES= mail
MASTER_SITES= http://www.defora.org/os/download/download/4426/
PKGNAMEPREFIX= deforaos-
DISTNAME= Mailer-${PORTVERSION}
MAINTAINER= olivier@FreeBSD.org
COMMENT= DeforaOS desktop mail client
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libSystem.so:devel/deforaos-libsystem \
libDesktop.so:x11/deforaos-libdesktop
USE_GNOME= gtk20
USES= desktop-file-utils pkgconfig
INSTALLS_ICONS= yes
USE_LDCONFIG= yes
USE_OPENSSL= yes
MAKE_ARGS+= PREFIX=${PREFIX}
MAKE_ENV+= MANDIR=${STAGEDIR}${MANPREFIX}/man
MAKE_JOBS_UNSAFE= yes
OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes
NLS_USES= gettext
DOCS_BUILD_DEPENDS= xsltproc:textproc/libxslt \
${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:textproc/docbook-xsl
.include <bsd.port.pre.mk>
.if ${SSL_DEFAULT} == base
# openssl from base doesn't install a .pc file and pkg-config didn't like it
CONFIGURE_ENV+= libssl_CFLAGS="-I${OPENSSLINC}" libssl_LIBS="-L${OPENSSLLIB} -lssl"
.endif
post-patch-DOCS-off:
${REINPLACE_CMD} 's|data doc include|data include|' \
${WRKSRC}/Makefile
post-patch-NLS-off:
${REINPLACE_CMD} 's|include po src|include src|' \
${WRKSRC}/Makefile
post-patch:
${REINPLACE_CMD} -e 's|/lib/|/libdata/|g' \
${WRKSRC}/data/pkgconfig.sh
${REINPLACE_CMD} 's/-lssl/& -lcrypto/' \
${WRKSRC}/src/Makefile ${WRKSRC}/src/account/Makefile \
${WRKSRC}/src/plugins/Makefile ${WRKSRC}/tests/Makefile
${REINPLACE_CMD} 's|-Wl,-pie||g' \
${WRKSRC}/src/Makefile \
${WRKSRC}/tests/Makefile
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/* \
${STAGEDIR}${PREFIX}/lib/Mailer/plugins/* \
${STAGEDIR}${PREFIX}/lib/Mailer/account/* \
${STAGEDIR}${PREFIX}/lib/libMailer.so.0.0
.include <bsd.port.post.mk>
|