aboutsummaryrefslogtreecommitdiffstats
path: root/games/wyrmsun/Makefile
blob: a2d537cf673526a67ff9488a214b6d0b3ec81eb0 (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
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$

PORTNAME=   wyrmsun
PORTVERSION=    1.6.0
DISTVERSIONPREFIX=  v
CATEGORIES= games

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    Strategy game based on history, mythology and fiction

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

RUN_DEPENDS=    wyrmgus:${PORTSDIR}/games/wyrmgus

USE_GITHUB= yes
GH_ACCOUNT= Andrettin
GH_PROJECT= Wyrmsun

NO_BUILD=   yes
NO_ARCH=    yes

PLIST_FILES=    bin/${PORTNAME}
PORTDATA=   *

SUB_FILES=  ${PORTNAME}

# icon comes from another port, so is referenced via LOCALBASE
DESKTOP_ENTRIES="Wyrmsun" \
        "" \
        "${LOCALBASE}/share/pixmaps/${PORTNAME}.ico" \
        "${PORTNAME}" \
        "Game;StrategyGame;" \
        ""

do-install:
    cd ${WRKSRC} && ${COPYTREE_SHARE} "graphics maps music scripts \
        sounds translations" ${STAGEDIR}${DATADIR}/
    ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>