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

PORTNAME=   freeorion
DISTVERSIONPREFIX=  v
DISTVERSION=    0.4.8
PORTREVISION=   1
CATEGORIES= games

PATCH_SITES=    https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES+=    fd05b34fcc68.patch:-p1
PATCHFILES+=    35863f31210b.patch:-p1

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    Turn-based space empire and galactic conquest game

LICENSE=    GPLv2 CC-BY-SA-3.0
LICENSE_COMB=   multi

LIB_DEPENDS=    libboost_thread.so:devel/boost-libs \
        ${PY_BOOST}

USE_GITHUB= yes

USES=       cmake compiler:c++14-lang python:2.7
LLD_UNSAFE= yes

PORTDOCS=   ChangeLog.md README.md
PORTDATA=   *

OPTIONS_DEFINE= DOCS TEST HEADLESS
OPTIONS_SUB=    yes

TEST_CMAKE_BOOL=    BUILD_TESTING
TEST_TEST_TARGET=   unittest
TEST_USES=      localbase

HEADLESS_DESC=      Build only headless components: server and AI
HEADLESS_CMAKE_BOOL=    BUILD_HEADLESS
HEADLESS_USES_OFF=  openal
HEADLESS_USE_OFF=   SDL=sdl2 GL=gl,glu,glew
HEADLESS_LIB_DEPENDS_OFF= \
        libfreetype.so:print/freetype2 \
        libogg.so:audio/libogg \
        libvorbis.so:audio/libvorbis \
        libpng.so:graphics/png

post-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
.endfor

.include <bsd.port.mk>