diff options
Diffstat (limited to 'devel/fga/Makefile')
-rw-r--r-- | devel/fga/Makefile | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/devel/fga/Makefile b/devel/fga/Makefile new file mode 100644 index 000000000000..0979b4020123 --- /dev/null +++ b/devel/fga/Makefile @@ -0,0 +1,42 @@ +# New ports collection makefile for: fga +# Date created: 2006-11-29 +# Whom: Stanislav Sedov <stas@FreeBSD.org> +# +# $MBSDlabs$ +# $FreeBSD$ +# + +PORTNAME= fga +PORTVERSION= 0.9 +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= stas@FreeBSD.org +COMMENT= Fast Genetic Algorithm library + +WRKSRC= ${WRKDIR}/${PORTNAME} + +CFLAGS+= ${PTHREAD_CFLAGS} +LDFLAGS+= ${PTHREAD_LIBS} + +MAKE_ENV+= LDFLAGS="${LDFLAGS}" + +EXAMPLES= graph_gen maxbit_mt maxbit_st tsp tsp_bf + +.if !defined(NOPORTDOCS) +PORTDOCS= * +.endif + +do-install: + ${INSTALL_DATA} ${WRKSRC}/fga.hpp ${PREFIX}/include + ${INSTALL_PROGRAM} ${EXAMPLES:S,^,${WRKSRC}/,} ${PREFIX}/bin + +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR}/ + ${MKDIR} ${EXAMPLESDIR}/ + ${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/,:S,$,.cpp,} ${EXAMPLESDIR}/ + ${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}/ +.endif + +.include <bsd.port.mk> |