summaryrefslogtreecommitdiff
path: root/mail/gmime2/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mail/gmime2/Makefile')
-rw-r--r--mail/gmime2/Makefile17
1 files changed, 15 insertions, 2 deletions
diff --git a/mail/gmime2/Makefile b/mail/gmime2/Makefile
index 87306e71ff50..27ac6300778c 100644
--- a/mail/gmime2/Makefile
+++ b/mail/gmime2/Makefile
@@ -7,7 +7,7 @@
PORTNAME= gmime
PORTVERSION= 2.1.9
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= mail
MASTER_SITES= http://spruce.sourceforge.net/gmime/sources/v2.1/
@@ -20,11 +20,24 @@ USE_ICONV= yes
USE_GMAKE= yes
USE_GNOME= gnomehack gnometarget glib20
USE_LIBTOOL_VER=15
-CONFIGURE_ARGS+= --with-libiconv=${LOCALBASE}
+CONFIGURE_ARGS+= --with-libiconv=${LOCALBASE} \
+ --with-html-dir=${PREFIX}/share/doc
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
LIBS="-L${LOCALBASE}/lib"
INSTALLS_SHLIB= yes
LATEST_LINK= gmime2
+.if !defined(NOPORTDOCS)
+PORTDOCS= *
+.endif
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for i in docs/reference/html/*
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+.endfor
+.endif
+
.include <bsd.port.mk>