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

PORTNAME=   kartofel
PORTVERSION=    1.2
PORTREVISION=   12
CATEGORIES= games
MASTER_SITES=   http://kartofel.jfedor.org/downloads/ \
        http://mirror.amdmi3.ru/distfiles/

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    Connect the dots in order without crossing over yourself

LIB_DEPENDS=    curl:${PORTSDIR}/ftp/curl

USE_GMAKE=  yes
USE_SDL=    sdl gfx mixer image ttf

ALL_TARGET= default
MAKE_JOBS_SAFE= yes

DATA_DIRS=  sounds fonts music images levels

PLIST_FILES=    bin/${PORTNAME}
PORTDATA=   *

DESKTOP_ENTRIES="Kartofel" \
        "A game of skill and logic" \
        "${DATADIR}/images/icon32x32.png" \
        "kartofel" \
        "Game;LogicGame;ArcadeGame;" \
        false

post-patch:
    @${REINPLACE_CMD} -e '/^CXXOPTIONS/ d; s|g++|${CXX} ${CXXFLAGS}|; \
        s|sdl-config|${SDL_CONFIG}|' ${WRKSRC}/Makefile
.for d in ${DATA_DIRS}
    @${REINPLACE_CMD} -e 's|$d/|${DATADIR}/&|' ${WRKSRC}/config.h
.endfor

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/kartofel ${PREFIX}/bin
.if !defined(NOPORTDATA)
    ${MKDIR} ${DATADIR}
    cd ${WRKSRC} && ${COPYTREE_SHARE} "${DATA_DIRS}" ${DATADIR}
.endif

.include <bsd.port.mk>