aboutsummaryrefslogtreecommitdiffstats
path: root/games/boswars/Makefile
blob: 291441ace5c145b2b1465b7c711a6ee1c2da253d (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
45
46
47
48
49
50
51
52
53
54
55
56
57
# Created by: Alejandro Pulver <alejandro@varnet.biz>
# $FreeBSD$

PORTNAME=   boswars
PORTVERSION=    2.6.1
PORTREVISION=   10
CATEGORIES= games
MASTER_SITES=   http://www.boswars.org/dist/releases/
DISTNAME=   ${PORTNAME}-${PORTVERSION}-src

MAINTAINER= martin@arp242.net
COMMENT=    Futuristic real-time strategy game

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/LICENSE.txt

BROKEN=     fails to build

LIB_DEPENDS=    libpng.so:graphics/png \
        libtheora.so:multimedia/libtheora \
        libvorbis.so:audio/libvorbis

USES=       lua:51 scons shebangfix
SHEBANG_FILES=  languages/updatepo.sh
USE_SDL=    sdl
USE_GL=     yes
MAKE_ARGS+= opengl=1
CPPPATH=    ${LOCALBASE}/include ${LUA_INCDIR}
LIBPATH=    ${LOCALBASE}/lib ${LUA_LIBDIR}
CFLAGS+=    -DSTRATAGUS_LIB_PATH='"\"${DATADIR}\""'

DESKTOP_ENTRIES=    "Bos Wars" "${COMMENT}" "" \
            "boswars" "Game;StrategyGame;" false

PORTDOCS=   *

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e '\
            s|/usr/local|${LOCALBASE}|g; \
            s|lua51|lua-${LUA_VER}|g;' \
        ${WRKSRC}/SConstruct

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
    @${MKDIR} ${STAGEDIR}${DATADIR}
.for f in campaigns graphics intro languages maps patches scripts sounds units
    ${CP} -R ${WRKSRC}/${f} ${STAGEDIR}${DATADIR}
.endfor

do-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}
    (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>