aboutsummaryrefslogtreecommitdiffstats
path: root/games/blobandconquer/Makefile
blob: 685649fea10f9696c3091b98b696ada39c56c94b (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
58
59
# New ports collection makefile for:    blobandconquer
# Date created:     02 Apr 2006
# Whom:         Dmitry Marakasov <amdmi3@amdmi3.ru>
#
# $FreeBSD$
#

PORTNAME=   blobandconquer
DISTVERSION=    0.7-2
CATEGORIES= games
MASTER_SITES=   http://www.parallelrealities.co.uk/download.php?type=zip&file= \
        http://www.amdmi3.ru/distfiles/
DISTNAME=   blobAndConquer-${DISTVERSION}

MAINTAINER= amdmi3@amdmi3.ru
COMMENT=    A somewhat violent 3D action game

FETCH_BEFORE_ARGS+= -o ${DISTNAME}${EXTRACT_SUFX}

USE_SDL=    sdl mixer image ttf
USE_GL=     yes
USE_GMAKE=  yes
USE_DOS2UNIX=   makefile src/headers.h src/main.cpp

FETCH_CMD=  /usr/bin/fetch

WRKSRC=     ${WRKDIR}/blobAndConquer-${DISTVERSION:C/^([0-9]\.[0-9]).*/\1/}
PORTDOCS=   *

MAKEFILE=   makefile
MAKE_ENV=   CXX="${CXX}" DATADIR="${DATADIR}" DOCSDIR="${DOCSDIR}"

DESKTOP_ENTRIES="Blob and Conquer" \
        "Save Blobs" \
        "" \
        "blobAndConquer" \
        "Application;Game;" \
        false

post-patch:
    @${RM} -f ${WRKSRC}/doc/LICENSE
    @${FIND} ${WRKSRC} -type d -empty -exec ${TOUCH} "{}/.keep_me" \;

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/blobAndConquer ${PREFIX}/bin
.for d in data gfx music sound textures
    cd ${WRKSRC} && \
    ${FIND} ${d} -type d -exec ${MKDIR} "${DATADIR}/{}" \; ;\
    ${FIND} ${d} -type f -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
.endfor

.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    cd ${WRKSRC}/doc && \
    ${FIND} . -type d -exec ${MKDIR} "${DOCSDIR}/{}" \; ;\
    ${FIND} . -type f -exec ${INSTALL_DATA} "{}" "${DOCSDIR}/{}" \;
.endif

.include <bsd.port.mk>