From ad32ee489b95068d00dbacce040adc76a6a5a69d Mon Sep 17 00:00:00 2001 From: William Grzybowski Date: Tue, 3 Sep 2013 16:03:41 +0000 Subject: 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 (maintainer) --- mail/gmime24/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'mail/gmime24') diff --git a/mail/gmime24/Makefile b/mail/gmime24/Makefile index 3e12f6a97a25..f2ace96822db 100644 --- a/mail/gmime24/Makefile +++ b/mail/gmime24/Makefile @@ -18,9 +18,8 @@ CONFLICTS= gmime-1.0.* SLAVEDIRS= mail/gmime2-sharp DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}24 -USE_GMAKE= yes USE_GNOME?= glib20 -USES= pathfix pkgconfig iconv +USES= gmake pathfix pkgconfig iconv USE_LDCONFIG= yes USE_XZ= yes GNU_CONFIGURE= yes @@ -35,14 +34,18 @@ CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} LATEST_LINK?= ${PORTNAME}24 +OPTIONS_DEFINE= DOCS + PORTDOCS= * +.include + post-patch: @${REINPLACE_CMD} -e 's|-DG_DISABLE_DEPRECATED||g' \ ${WRKSRC}/*/Makefile.in post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} .for i in docs/reference/html/* ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} -- cgit v1.2.3