aboutsummaryrefslogtreecommitdiff
path: root/textproc/google-ctemplate
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2013-09-25 01:35:23 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2013-09-25 01:35:23 +0000
commit5738084bd977a9f8415c641506d9985cb331627a (patch)
treea9285f6d92220ab705fc8b1c8a74c79455d6a0d6 /textproc/google-ctemplate
parent449f2064cb7fb57ea78998e0a02737a945008686 (diff)
downloadports-5738084bd977a9f8415c641506d9985cb331627a.tar.gz
ports-5738084bd977a9f8415c641506d9985cb331627a.zip
Support stage.
Notes
Notes: svn path=/head/; revision=328232
Diffstat (limited to 'textproc/google-ctemplate')
-rw-r--r--textproc/google-ctemplate/Makefile12
-rw-r--r--textproc/google-ctemplate/pkg-plist19
2 files changed, 23 insertions, 8 deletions
diff --git a/textproc/google-ctemplate/Makefile b/textproc/google-ctemplate/Makefile
index 07f148648144..8318048724fc 100644
--- a/textproc/google-ctemplate/Makefile
+++ b/textproc/google-ctemplate/Makefile
@@ -11,23 +11,21 @@ DISTNAME= ctemplate-${PORTVERSION}
MAINTAINER= vanilla@FreeBSD.org
COMMENT= A simple but powerful template language for C++
+OPTIONS_DEFINE= DOCS
+
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
USES= pkgconfig
-.if !defined(NOPORTDOCS)
-PORTDOCS= *
-.endif
+.include <bsd.port.options.mk>
post-patch:
- ${REINPLACE_CMD} -e 's|^pkgconfigdir.*|pkgconfigdir = $${PREFIX}/libdata/pkgconfig|' \
+ @${REINPLACE_CMD} -e 's|^pkgconfigdir.*|pkgconfigdir = $${PREFIX}/libdata/pkgconfig|' \
${WRKSRC}/Makefile.in
-
-.if !defined(NOPORTDOCS)
@${REINPLACE_CMD} -e \
's|$$(prefix)/share/doc/$$(PACKAGE)-$$(VERSION)|${DOCSDIR}|' \
${WRKSRC}/Makefile.in
-.else
+.if empty(PORT_OPTIONS:MDOCS)
@${REINPLACE_CMD} -e \
'/install-data-am/ s|install-dist_docDATA||' \
${WRKSRC}/Makefile.in
diff --git a/textproc/google-ctemplate/pkg-plist b/textproc/google-ctemplate/pkg-plist
index 47e7a3fe6c8e..f104069ec5d8 100644
--- a/textproc/google-ctemplate/pkg-plist
+++ b/textproc/google-ctemplate/pkg-plist
@@ -8,8 +8,8 @@ include/ctemplate/template_annotator.h
include/ctemplate/template_cache.h
include/ctemplate/template_dictionary.h
include/ctemplate/template_dictionary_interface.h
-include/ctemplate/template_enums.h
include/ctemplate/template_emitter.h
+include/ctemplate/template_enums.h
include/ctemplate/template_modifiers.h
include/ctemplate/template_namelist.h
include/ctemplate/template_pathops.h
@@ -24,4 +24,21 @@ lib/libctemplate_nothreads.so
lib/libctemplate_nothreads.so.2
libdata/pkgconfig/libctemplate.pc
libdata/pkgconfig/libctemplate_nothreads.pc
+%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
+%%PORTDOCS%%%%DOCSDIR%%/COPYING
+%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
+%%PORTDOCS%%%%DOCSDIR%%/INSTALL
+%%PORTDOCS%%%%DOCSDIR%%/NEWS
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/README_windows.txt
+%%PORTDOCS%%%%DOCSDIR%%/auto_escape.html
+%%PORTDOCS%%%%DOCSDIR%%/designstyle.css
+%%PORTDOCS%%%%DOCSDIR%%/example.html
+%%PORTDOCS%%%%DOCSDIR%%/guide.html
+%%PORTDOCS%%%%DOCSDIR%%/howto.html
+%%PORTDOCS%%%%DOCSDIR%%/index.html
+%%PORTDOCS%%%%DOCSDIR%%/reference.html
+%%PORTDOCS%%%%DOCSDIR%%/tips.html
+%%PORTDOCS%%%%DOCSDIR%%/xss_resources.html
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm include/ctemplate