aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2013-09-25 09:35:23 +0800
committervanilla <vanilla@FreeBSD.org>2013-09-25 09:35:23 +0800
commitb942579748be781bf320e388577590317ddc2cfc (patch)
treea9285f6d92220ab705fc8b1c8a74c79455d6a0d6 /textproc
parent2535192fb293d56a2cc09a80445abbd3555fcfaa (diff)
downloadfreebsd-ports-gnome-b942579748be781bf320e388577590317ddc2cfc.tar.gz
freebsd-ports-gnome-b942579748be781bf320e388577590317ddc2cfc.tar.zst
freebsd-ports-gnome-b942579748be781bf320e388577590317ddc2cfc.zip
Support stage.
Diffstat (limited to 'textproc')
-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