aboutsummaryrefslogtreecommitdiffstats
path: root/games/wargus/Makefile
blob: 10f5976453be1865fa314779a4288674746dcc87 (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
# New ports collection makefile for:    wargus
# Date created:         1 Jul 2004
# Whom:             Travis Poppe <tlp@liquidx.org>
#
# $FreeBSD$
#

PORTNAME=   wargus
PORTVERSION=    2.2.5.5
CATEGORIES= games
MASTER_SITES=   http://launchpadlibrarian.net/59493162/
DISTNAME=   ${PORTNAME}_${PORTVERSION}
EXTRACT_SUFX=   .orig.tar.gz

MAINTAINER= ports@FreeBSD.org
COMMENT=    Warcraft 2 mod that allows you to play Warcraft 2 with Stratagus

LIB_DEPENDS=    png.6:${PORTSDIR}/graphics/png
RUN_DEPENDS=    stratagus:${PORTSDIR}/games/stratagus

LICENSE=    GPLv2
NOT_FOR_ARCHS=  sparc64
USE_GMAKE=  yes
USE_GNOME=  gtk20 gnomehack gnometarget
WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

SUB_FILES=  ${PORTNAME} pkg-message

MAKE_ARGS+= CFLAGS+=-I${LOCALBASE}/include LDFLAGS+=-L${LOCALBASE}/lib

do-install:
    ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
    cd ${WRKSRC} && \
        ${FIND} campaigns contrib maps scripts -type d \
        -exec ${MKDIR} "${DATADIR}/{}" \; && \
        ${FIND} campaigns contrib maps scripts -type f \
        -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
    ${INSTALL_PROGRAM} ${WRKSRC}/wartool ${DATADIR}
    ${INSTALL_SCRIPT} ${WRKSRC}/build.sh ${DATADIR}

post-install:
    @${ECHO_CMD}
    @${CAT} ${PKGMESSAGE}
    @${ECHO_CMD}

.include <bsd.port.mk>