summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2013-09-24 16:31:33 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2013-09-24 16:31:33 +0000
commit2ef9cfa267f4d20725f6954182022479ff51e75b (patch)
tree4684c0329d050d869b71228f7f67abfa56946a01
parent- Remove cad/tkgate: it segfaults on startup, and has been doing so for as long (diff)
1: add STAGEDIR support.
2: make DOCS as option.
-rw-r--r--devel/mq4cpp/Makefile12
-rw-r--r--devel/mq4cpp/pkg-plist18
2 files changed, 20 insertions, 10 deletions
diff --git a/devel/mq4cpp/Makefile b/devel/mq4cpp/Makefile
index ee8b98f4c4a9..c8c2fa999b1c 100644
--- a/devel/mq4cpp/Makefile
+++ b/devel/mq4cpp/Makefile
@@ -9,6 +9,8 @@ MASTER_SITES= http://www.sixtyfourbit.org/Download/
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>
diff --git a/devel/mq4cpp/pkg-plist b/devel/mq4cpp/pkg-plist
index 4ee268def86c..102d565bcd07 100644
--- a/devel/mq4cpp/pkg-plist
+++ b/devel/mq4cpp/pkg-plist
@@ -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