aboutsummaryrefslogtreecommitdiffstats
path: root/mail/gmime2
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2013-09-04 00:03:41 +0800
committerwg <wg@FreeBSD.org>2013-09-04 00:03:41 +0800
commit96302e818264113c1402b00fdb5e394b6672d484 (patch)
tree111cdd489d19fdb7c8a340006ca8851965bd0001 /mail/gmime2
parent33c2a19acfba2b2a041e331eeaaf140a9243c77c (diff)
downloadfreebsd-ports-gnome-96302e818264113c1402b00fdb5e394b6672d484.tar.gz
freebsd-ports-gnome-96302e818264113c1402b00fdb5e394b6672d484.tar.zst
freebsd-ports-gnome-96302e818264113c1402b00fdb5e394b6672d484.zip
mail/{gmime2,gmime24}: convert docs to options ng
- NOPORTDOCS -> PORT_OPTIONS:MDOCS [1] - Convert to USES gmake - Define DOCS option PR: ports/181778 [1] Submitted by: Alan Hicks <ahicks p-o.co.uk> (maintainer)
Diffstat (limited to 'mail/gmime2')
-rw-r--r--mail/gmime2/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/mail/gmime2/Makefile b/mail/gmime2/Makefile
index a62ffc0acc54..9eb1b57db2ec 100644
--- a/mail/gmime2/Makefile
+++ b/mail/gmime2/Makefile
@@ -16,9 +16,8 @@ CONFLICTS= gmime-1.0.* gmime-2.4.*
SLAVEDIRS= mail/gmime2-sharp
-USE_GMAKE= yes
USE_GNOME?= glib20
-USES= pathfix pkgconfig iconv
+USES= gmake pathfix pkgconfig iconv
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
# www.freebsd.org/cgi/query-pr.cgi?pr=118092
@@ -32,15 +31,19 @@ CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LATEST_LINK?= ${PORTNAME}2
+OPTIONS_DEFINE= DOCS
+
PORTDOCS= *
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} -e "s|stdint.h|inttypes.h|" ${WRKSRC}/zentimer.h
@${REINPLACE_CMD} -e 's|-DG_DISABLE_DEPRECATED||g' \
${WRKSRC}/gmime/Makefile.in
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for i in docs/reference/html/*
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}