1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00
freebsd-ports/devel/fga/Makefile
Adam Weinberger 44eaadcb75 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.
2014-07-15 23:11:12 +00:00

30 lines
713 B
Makefile

# Created by: Stanislav Sedov <stas@FreeBSD.org>
# $FreeBSD$
PORTNAME= fga
PORTVERSION= 1.4
CATEGORIES= devel
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Fast Genetic Algorithm library
WRKSRC= ${WRKDIR}/${PORTNAME}
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}
.include <bsd.port.mk>