aboutsummaryrefslogtreecommitdiffstats
path: root/devel/fga
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2014-07-16 07:11:12 +0800
committeradamw <adamw@FreeBSD.org>2014-07-16 07:11:12 +0800
commit9343eeba7783ac2ce4c8f5c88ab322647d489c19 (patch)
tree37076f8661cc0a667d6e54eab2728ecc665430a0 /devel/fga
parentd5dd4663dfc459a5aa6a241eff9b72f253fbc4e8 (diff)
downloadfreebsd-ports-gnome-9343eeba7783ac2ce4c8f5c88ab322647d489c19.tar.gz
freebsd-ports-gnome-9343eeba7783ac2ce4c8f5c88ab322647d489c19.tar.zst
freebsd-ports-gnome-9343eeba7783ac2ce4c8f5c88ab322647d489c19.zip
Add OPTIONS_DEFINE=DOCS for ports with %%PORTDOCS%% in the plist.
Where possible, correct a few instances where PORTDOCS was being used to flag stuff in EXAMPLESDIR. For some ports, mostly those owned by ruby@, PORTDOCS is applied to pretty much everything whether it's documentation or example.
Diffstat (limited to 'devel/fga')
-rw-r--r--devel/fga/Makefile10
-rw-r--r--devel/fga/pkg-plist10
2 files changed, 11 insertions, 9 deletions
diff --git a/devel/fga/Makefile b/devel/fga/Makefile
index 7ba26c655147..aa114a3d99b2 100644
--- a/devel/fga/Makefile
+++ b/devel/fga/Makefile
@@ -16,12 +16,14 @@ USES= gmake
EXAMPLES= graph_gen maxbit tsp tsp_bf
PORTDOCS= *
+OPTIONS_DEFINE= DOCS EXAMPLES
+
do-install:
${INSTALL_DATA} ${WRKSRC}/include/fga.hpp ${STAGEDIR}${PREFIX}/include
${INSTALL_PROGRAM} ${EXAMPLES:S,^,${WRKSRC}/,} ${STAGEDIR}${PREFIX}/bin
- ${MKDIR} ${STAGEDIR}${DOCSDIR}/
- ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/
- ${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/,:S,$,.cpp,} ${STAGEDIR}${EXAMPLESDIR}/
- ${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}/
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/,:S,$,.cpp,} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/devel/fga/pkg-plist b/devel/fga/pkg-plist
index 0efacc75c7e4..26173fca5e63 100644
--- a/devel/fga/pkg-plist
+++ b/devel/fga/pkg-plist
@@ -3,8 +3,8 @@ bin/maxbit
bin/tsp
bin/tsp_bf
include/fga.hpp
-%%PORTDOCS%%%%EXAMPLESDIR%%/graph_gen.cpp
-%%PORTDOCS%%%%EXAMPLESDIR%%/maxbit.cpp
-%%PORTDOCS%%%%EXAMPLESDIR%%/tsp.cpp
-%%PORTDOCS%%%%EXAMPLESDIR%%/tsp_bf.cpp
-%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/graph_gen.cpp
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/maxbit.cpp
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tsp.cpp
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tsp_bf.cpp
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%