aboutsummaryrefslogtreecommitdiffstats
path: root/games/mrboom/Makefile
blob: 4a7098f15a042e0201921a1b8e21b6cfb7254b54 (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
# Created by: Emanuel Haupt <ehaupt@FreeBSD.org>
# $FreeBSD$

PORTNAME=   mrboom
PORTVERSION=    4.1
CATEGORIES= games

MAINTAINER= ehaupt@FreeBSD.org
COMMENT=    8 players Bomberman clone

LICENSE=    MIT
LICENSE_FILE=   ${WRKSRC}/LICENSE

LIB_DEPENDS=    libminizip.so:archivers/minizip \
        libmodplug.so:audio/libmodplug

USES=       gmake
USE_GITHUB= yes
USE_SDL=    sdl2 mixer2

GH_ACCOUNT= Javanaise
GH_PROJECT= mrboom-libretro

ALL_TARGET= mrboom

CFLAGS+=    `sdl2-config --cflags`
LDFLAGS+=   `sdl2-config --libs`

MAKE_ENV+=  LIBSDL2=1

PLIST_FILES=    bin/mrboom man/man6/mrboom.6.gz \
        share/applications/mrboom.desktop share/pixmaps/mrboom.png

post-patch:
    @${REINPLACE_CMD} -E '/^GIT_VERSION/d' ${WRKSRC}/Makefile

post-install:
    ${INSTALL_DATA} ${WRKSRC}/Assets/${PORTNAME}.png \
        ${STAGEDIR}${PREFIX}/share/pixmaps/
    ${INSTALL_DATA} ${WRKSRC}/Assets/${PORTNAME}.desktop \
        ${STAGEDIR}${DESKTOPDIR}

.include <bsd.port.mk>