aboutsummaryrefslogtreecommitdiffstats
path: root/games/pingus/Makefile
blob: 568d7011555a48a92ca7fb518d20f9492102c97c (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
# Created by: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
# $FreeBSD$

PORTNAME=   pingus
PORTVERSION=    0.7.6
PORTREVISION=   11
CATEGORIES= games
MASTER_SITES=   http://mirror.amdmi3.ru/distfiles/

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    Free Lemmings-like game

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

LIB_DEPENDS=    libpng.so:graphics/png \
        libboost_signals.so:devel/boost-libs

USES=       compiler:c++11-lib iconv scons tar:bzip2
USE_GL=     gl
USE_SDL=    sdl image mixer
LIBS+=      ${ICONV_LIB}
MAKE_ARGS=  LIBS="${LIBS}"

PLIST_FILES=    bin/${PORTNAME} \
        share/pixmaps/${PORTNAME}.png
PORTDATA=   *

DESKTOP_ENTRIES="Pingus" \
        "" \
        "${PORTNAME}" \
        "${PORTNAME}" \
        "Game;LogicGame;" \
        false

post-patch:
    @${REINPLACE_CMD} -e '/g_path_manager.set_path("data")/ s|data|${DATADIR}|g' \
        ${WRKSRC}/src/pingus/pingus_main.cpp
    @${REINPLACE_CMD} -e '/CheckLib.*iconv/ d' ${WRKSRC}/SConscript

do-install:
    (cd ${WRKSRC}/data && \
        ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
    ${INSTALL_PROGRAM} ${WRKSRC}/build/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
    ${INSTALL_DATA} ${WRKSRC}/data/images/icons/pingus-icon.png \
        ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png

.include <bsd.port.mk>