Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Sep 2013 16:31:34 +0000 (UTC)
From:      "Vanilla I. Shu" <vanilla@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r328160 - head/devel/mq4cpp
Message-ID:  <201309241631.r8OGVY0I097704@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vanilla
Date: Tue Sep 24 16:31:33 2013
New Revision: 328160
URL: http://svnweb.freebsd.org/changeset/ports/328160

Log:
  1: add STAGEDIR support.
  2: make DOCS as option.

Modified:
  head/devel/mq4cpp/Makefile
  head/devel/mq4cpp/pkg-plist

Modified: head/devel/mq4cpp/Makefile
==============================================================================
--- head/devel/mq4cpp/Makefile	Tue Sep 24 16:31:11 2013	(r328159)
+++ head/devel/mq4cpp/Makefile	Tue Sep 24 16:31:33 2013	(r328160)
@@ -9,6 +9,8 @@ MASTER_SITES=	http://www.sixtyfourbit.or
 MAINTAINER=	vanilla@FreeBSD.org
 COMMENT=	Message Queuing for C++
 
+OPTIONS_DEFINE=	DOCS
+
 USE_LDCONFIG=	yes
 USE_AUTOTOOLS=	libtool
 USES=		pathfix pkgconfig
@@ -17,5 +19,13 @@ USE_BZIP2=	yes
 USE_DOS2UNIX=	yes
 GNU_CONFIGURE=	yes
 
-NO_STAGE=	yes
+.include <bsd.port.options.mk>
+
+post-patch:
+.if empty(PORT_OPTIONS:MDOCS)
+	${REINPLACE_CMD} -e \
+		'/^install-data-am:/ s|install-docDATA||' \
+		${WRKSRC}/Makefile.in
+.endif
+
 .include <bsd.port.mk>

Modified: head/devel/mq4cpp/pkg-plist
==============================================================================
--- head/devel/mq4cpp/pkg-plist	Tue Sep 24 16:31:11 2013	(r328159)
+++ head/devel/mq4cpp/pkg-plist	Tue Sep 24 16:31:33 2013	(r328160)
@@ -29,13 +29,13 @@ lib/libmq4cpp.la
 lib/libmq4cpp.so
 lib/libmq4cpp.so.1
 libdata/pkgconfig/mq4cpp.pc
-%%DOCSDIR%%/AUTHORS
-%%DOCSDIR%%/ChangeLog
-%%DOCSDIR%%/COPYING
-%%DOCSDIR%%/INSTALL
-%%DOCSDIR%%/NEWS
-%%DOCSDIR%%/README
-%%DOCSDIR%%/LICENSE
-%%DOCSDIR%%/TODO
-@dirrm %%DOCSDIR%%
+%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
+%%PORTDOCS%%%%DOCSDIR%%/COPYING
+%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
+%%PORTDOCS%%%%DOCSDIR%%/INSTALL
+%%PORTDOCS%%%%DOCSDIR%%/LICENSE
+%%PORTDOCS%%%%DOCSDIR%%/NEWS
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/TODO
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
 @dirrm include/mq4cpp



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309241631.r8OGVY0I097704>