aboutsummaryrefslogtreecommitdiffstats
path: root/devel/fga/Makefile
blob: f918fa6a9b26d046a504c52c31cf0bdf39b45cb7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# New ports collection makefile for:    fga
# Date created:     2006-11-29
# Whom:         Stanislav Sedov <stas@FreeBSD.org>
#
# $MBSDlabs$
# $FreeBSD$
#

PORTNAME=   fga
PORTVERSION=    1.4
CATEGORIES= devel
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= stas@FreeBSD.org
COMMENT=    Fast Genetic Algorithm library

WRKSRC=     ${WRKDIR}/${PORTNAME}

USE_GMAKE=  yes
CFLAGS+=    ${PTHREAD_CFLAGS}
LDFLAGS+=   ${PTHREAD_LIBS}

MAKE_ENV+=  LDFLAGS="${LDFLAGS}"

EXAMPLES=   graph_gen maxbit tsp tsp_bf

.if !defined(NOPORTDOCS)
PORTDOCS=   *
.endif

do-install:
    ${INSTALL_DATA} ${WRKSRC}/include/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>