2013-04-23 16:20:25 +02:00
|
|
|
# Created by: Kirill Ponomarew <ponomarew@oberon.net>
|
2003-05-13 18:44:04 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gmime
|
2012-05-24 23:19:15 +02:00
|
|
|
PORTVERSION= 2.2.27
|
2014-05-29 23:16:11 +02:00
|
|
|
PORTREVISION?= 1
|
2005-10-05 04:17:58 +02:00
|
|
|
CATEGORIES?= mail
|
2009-10-11 04:29:49 +02:00
|
|
|
MASTER_SITES= GNOME
|
2014-05-29 23:16:11 +02:00
|
|
|
PKGNAMESUFFIX?= 2
|
2003-05-13 18:44:04 +02:00
|
|
|
|
2014-12-24 01:14:11 +01:00
|
|
|
MAINTAINER?= bofh@FreeBSD.org
|
2005-10-05 04:17:58 +02:00
|
|
|
COMMENT?= Library (written in C) for parsing and creating messages using MIME
|
2003-05-13 18:44:04 +02:00
|
|
|
|
2012-05-24 23:19:15 +02:00
|
|
|
LICENSE= LGPL21
|
|
|
|
|
2009-10-11 04:29:49 +02:00
|
|
|
CONFLICTS= gmime-1.0.* gmime-2.4.*
|
2003-05-13 18:44:04 +02:00
|
|
|
|
2007-04-06 05:38:23 +02:00
|
|
|
SLAVEDIRS= mail/gmime2-sharp
|
|
|
|
|
2013-05-08 22:26:42 +02:00
|
|
|
USE_GNOME?= glib20
|
2014-05-29 23:16:11 +02:00
|
|
|
USES+= gmake iconv libtool pathfix pkgconfig
|
2006-08-14 05:51:40 +02:00
|
|
|
USE_LDCONFIG= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2012-05-24 23:19:15 +02:00
|
|
|
# www.freebsd.org/cgi/query-pr.cgi?pr=118092
|
|
|
|
# Rename uudecode and uuencode to gmime-* to not conflict with userland
|
2013-09-05 22:18:30 +02:00
|
|
|
CONFIGURE_ARGS?= ${ICONV_CONFIGURE_BASE} \
|
2005-10-05 04:17:58 +02:00
|
|
|
--with-html-dir=${PREFIX}/share/doc \
|
2012-05-24 23:19:15 +02:00
|
|
|
--enable-mono=no \
|
|
|
|
--program-transform-name="s/uuencode/gmime-uuencode/;s/uudecode/gmime-uudecode/;"
|
2014-05-29 23:16:11 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2014-06-11 16:49:59 +02:00
|
|
|
LIBS+= -L${LOCALBASE}/lib
|
2004-02-06 12:17:54 +01:00
|
|
|
|
2013-09-03 18:03:41 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2005-08-28 12:35:26 +02:00
|
|
|
PORTDOCS= *
|
|
|
|
|
2013-09-03 18:03:41 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2006-08-14 05:51:40 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e "s|stdint.h|inttypes.h|" ${WRKSRC}/zentimer.h
|
2013-07-31 13:57:45 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|-DG_DISABLE_DEPRECATED||g' \
|
|
|
|
${WRKSRC}/gmime/Makefile.in
|
2006-08-14 05:51:40 +02:00
|
|
|
|
2005-08-28 12:35:26 +02:00
|
|
|
post-install:
|
2013-09-03 18:03:41 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2013-11-15 11:44:29 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2005-08-28 12:35:26 +02:00
|
|
|
.for i in docs/reference/html/*
|
2013-11-15 11:44:29 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
|
2005-08-28 12:35:26 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2003-05-13 18:44:04 +02:00
|
|
|
.include <bsd.port.mk>
|