2013-05-22 11:04:54 +02:00
|
|
|
# Created by: Kirill Ponomarew <ponomarew@oberon.net>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gmime
|
2014-09-23 16:36:29 +02:00
|
|
|
PORTVERSION= 2.6.20
|
2013-05-22 11:04:54 +02:00
|
|
|
CATEGORIES?= mail
|
|
|
|
MASTER_SITES= GNOME
|
2014-05-18 20:34:03 +02:00
|
|
|
PKGNAMESUFFIX?= 26
|
2013-05-22 11:04:54 +02:00
|
|
|
|
2014-12-11 09:04:05 +01:00
|
|
|
MAINTAINER?= 5u623l20@gmail.com
|
2013-05-22 11:04:54 +02:00
|
|
|
COMMENT?= Library (written in C) for parsing and creating messages using MIME
|
|
|
|
|
|
|
|
LICENSE= LGPL21
|
|
|
|
|
|
|
|
SLAVEDIRS= mail/gmime26-sharp
|
|
|
|
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}26
|
2014-05-18 20:34:03 +02:00
|
|
|
USES= gmake iconv libtool pathfix pkgconfig tar:xz
|
|
|
|
USE_GNOME+= glib20
|
2013-05-22 11:04:54 +02:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
# www.freebsd.org/cgi/query-pr.cgi?pr=118092
|
|
|
|
# Rename uudecode and uuencode to gmime-* to not conflict with userland
|
|
|
|
# fix kept in case issue returns
|
|
|
|
CONFIGURE_ARGS?=--with-html-dir=${PREFIX}/share/doc \
|
|
|
|
--enable-mono=no \
|
|
|
|
--program-transform-name="s/uuencode/gmime-uuencode/;s/uudecode/gmime-uudecode/;"
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
|
2013-07-02 13:52:15 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2013-05-22 11:04:54 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e '/^SUBDIRS =/s/tests//' \
|
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2013-05-24 14:25:00 +02:00
|
|
|
PORTDOCS= *
|
|
|
|
|
|
|
|
post-install:
|
2013-11-15 11:44:15 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2013-05-22 11:04:54 +02:00
|
|
|
.for i in docs/reference/html/*
|
2013-11-15 11:44:15 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
|
2013-05-22 11:04:54 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|