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

PORTNAME=   easyrpg-player
PORTVERSION=    0.5.4
PORTREVISION=   2
CATEGORIES= games

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    RPG Maker 2000/2003 and EasyRPG games interpreter

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

LIB_DEPENDS=    liblcf.so:games/liblcf \
        libpng.so:graphics/png \
        libfreetype.so:print/freetype2 \
        libharfbuzz.so:print/harfbuzz \
        libspeexdsp.so:audio/speexdsp \
        libmpg123.so:audio/mpg123 \
        libsndfile.so:audio/libsndfile \
        libvorbis.so:audio/libvorbis \
        libogg.so:audio/libogg \
        libopusfile.so:audio/opusfile \
        libopus.so:audio/opus \
        libWildMidi.so:audio/wildmidi \
        libxmp.so:audio/libxmp
# these come from liblcf
LIB_DEPENDS+=   libicui18n.so:devel/icu \
        libexpat.so:textproc/expat2
BUILD_DEPENDS=  asciidoc:textproc/asciidoc \
        ${LOCALBASE}/include/boost/shared_ptr.hpp:devel/boost-libs

USE_GITHUB= yes
GH_ACCOUNT= EasyRPG
GH_PROJECT= Player

USES=       cmake compiler:c++11-lib localbase:ldflags pkgconfig
CMAKE_ARGS= -DCMAKE_INSTALL_MANDIR=man \
        -DPLAYER_AUDIO_BACKEND=SDL2_mixer
USE_XORG=   pixman
USE_SDL=    sdl2 mixer2

PORTDOCS=   AUTHORS.md README.md

OPTIONS_DEFINE= DOCS

post-install:
    @${MKDIR} ${STAGEDIR}${PREFIX}/share/bash-completion/completions
    ${INSTALL_DATA} ${WRKSRC}/resources/unix/bash-completion/easyrpg-player \
        ${STAGEDIR}${PREFIX}/share/bash-completion/completions/

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

.include <bsd.port.mk>