aboutsummaryrefslogtreecommitdiffstats
path: root/games/wargus/Makefile
blob: 9bdf0972ab263e188555c388015b356c22e108a4 (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
# Created by: Travis Poppe <tlp@liquidx.org>
# $FreeBSD$

PORTNAME=   wargus
PORTVERSION=    2.3.0
CATEGORIES= games
MASTER_SITES=   http://launchpadlibrarian.net/200671642/
DISTNAME=   ${PORTNAME}_${PORTVERSION}.orig

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

LICENSE=    GPLv2+
LICENSE_FILE=   ${WRKSRC}/COPYING

RUN_DEPENDS=    stratagus:${PORTSDIR}/games/stratagus \
        ffmpeg2theora:${PORTSDIR}/multimedia/ffmpeg2theora \
        cdparanoia:${PORTSDIR}/audio/cdparanoia
BUILD_DEPENDS=  stratagus:${PORTSDIR}/games/stratagus
LIB_DEPENDS=    libpng.so:${PORTSDIR}/graphics/png

USES=       cmake pkgconfig
CMAKE_ARGS= -DGAMEDIR:STRING="bin" \
        -DSHAREDIR:STRING="${DATADIR_REL}"
USE_XORG=   x11
USE_GNOME=  gtk20
SUB_FILES=  pkg-message

PORTDOCS=   *

OPTIONS_DEFINE= DOCS

post-install:
    cd ${WRKSRC}/doc && ${INSTALL_MAN} *.6 ${STAGEDIR}${MAN6PREFIX}/man/man6/
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>