aboutsummaryrefslogtreecommitdiffstats
path: root/games/memonix/Makefile
blob: d8d75d8c0fed3f505231df08483b9b9e7dd0cfac (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
# New ports collection makefile for:    memonix
# Date created:     12 Jul 2007
# Whom:         Dmitry Marakasov <amdmi3@amdmi3.ru>
#
# $FreeBSD$
#

PORTNAME=   memonix
PORTVERSION=    1.6.070713
PORTREVISION=   6
CATEGORIES= games
MASTER_SITES=   http://www.viewizard.com/download/ \
        http://mirror.amdmi3.ru/distfiles/
DISTNAME=   MemonixSourceCode_${PORTVERSION:S/./_/g:S/_/./}
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX} memx16.tar.gz
EXTRACT_ONLY=   ${DISTNAME}${EXTRACT_SUFX}

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    Brain teasers, puzzle and memory games for kids in one pack

USE_CMAKE=  yes
USE_ZIP=    yes
USE_SDL=    sdl mixer image
USE_GL=     yes

WRKSRC=     ${WRKDIR}/MemonixSourceCode

PLIST_FILES=    bin/Memonix %%DATADIR%%/gamedata.vfs
PLIST_DIRS= %%DATADIR%%

post-extract:
    @${TAR} -C ${WRKDIR} -xzf ${DISTDIR}/memx16.tar.gz

post-patch:
    @${REINPLACE_CMD} -e '/strcpy(ProgrammDir,/ s|\./|${DATADIR}/|' \
         ${WRKSRC}/src/Main.cpp

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/Memonix ${PREFIX}/bin
    ${MKDIR} ${DATADIR}
    ${INSTALL_DATA} ${WRKDIR}/Memonix/gamedata.vfs ${DATADIR}

.include <bsd.port.mk>