aboutsummaryrefslogtreecommitdiffstats
path: root/games/critterding/Makefile
blob: a9d13df2f74a7f6e9c83b07ab8b8f90746798d0d (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
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$

PORTNAME=   critterding
DISTVERSION=    beta12
PORTREVISION=   9
CATEGORIES= games
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/sources

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    Evolving Artificial Life

LIB_DEPENDS=    libfreetype.so:${PORTSDIR}/print/freetype2

USES=       autoreconf libtool pkgconfig tar:bzip2
GNU_CONFIGURE=  yes
USE_SDL=    sdl
USE_GL=     gl
CPPFLAGS+=  -I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ARGS= --disable-system-ftgl
USE_GCC=    yes

PLIST_FILES=    bin/${PORTNAME}
PORTDATA=   *
PORTDOCS=   README AUTHORS Changelog

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e 's|../share/critterding|${DATADIR}|' \
        ${WRKSRC}/src/gui/textprinter.cpp ${WRKSRC}/src/gl/glwindow.cpp

post-install:
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>