aboutsummaryrefslogtreecommitdiffstats
path: root/games/lander/Makefile
blob: 22ed49d1591e737d8847ee4f8f424ab615fa6004 (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
44
# New ports collection makefile for:    lander
# Date created:     21 Feb 2009
# Whom:         Dmitry Marakasov <amdmi3@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   lander
PORTVERSION=    0.6.0
CATEGORIES= games
MASTER_SITES=   http://www.nickg.me.uk/files/ \
        http://mirror.amdmi3.ru/distfiles/

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    Lunar Lander clone

LIB_DEPENDS=    freetype.9:${PORTSDIR}/print/freetype2 \
        boost_filesystem.4:${PORTSDIR}/devel/boost-libs

GNU_CONFIGURE=  yes
USE_GETTEXT=    yes
USE_SDL=    sdl image mixer
USE_GL=     gl glu
MAKE_JOBS_SAFE= yes
USE_GCC=    4.2+

CONFIGURE_ENV=  LDFLAGS="-L${LOCALBASE}/lib" \
        CPPFLAGS="-I${LOCALBASE}/include"
CONFIGURE_ARGS= --with-boost="${LOCALBASE}" \
        --with-boost-filesystem=boost_filesystem

PORTDOCS=   *

post-patch:
    @${REINPLACE_CMD} -e '/LIBS=/ s|-lSDL_|`${SDL_CONFIG} --libs` &|' \
        ${WRKSRC}/configure

.if !defined(NOPORTDOCS)
post-install:
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif

.include <bsd.port.mk>