aboutsummaryrefslogtreecommitdiffstats
path: root/games/neverball/Makefile
blob: 5b75573251d431214e3d741e3bd76135fd9b864f (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:    neverball
# Date created:             26 October 2003
# Whom:                 Mezz <mezz7@cox.net>
#
# $FreeBSD$
#

PORTNAME=   neverball
PORTVERSION=    1.2.2
CATEGORIES= games
MASTER_SITES=   http://icculus.org/neverball/

MAINTAINER= mezz7@cox.net
COMMENT=    Tilt the floor to guide a ball through an obstacle course

BUILD_DEPENDS=  ${FREETYPE_CONFIG}:${PORTSDIR}/print/freetype2

FREETYPE_CONFIG?=   ${LOCALBASE}/bin/freetype-config

USE_GMAKE=  yes
USE_X_PREFIX=   yes
USE_REINPLACE=  yes
USE_SDL=    image mixer ttf

DIRS=       bgm map-mym map-putt map-rlk mtrl png shot-mym shot-putt \
        shot-rlk snd sol-mym sol-putt sol-rlk ttf

post-patch:
    @${REINPLACE_CMD} -e 's|./data|${DATADIR}/data|g' \
        ${WRKSRC}/share/config.h
    @${REINPLACE_CMD} -e 's|%%FREETYPE_CONFIG%%|${FREETYPE_CONFIG}|g' \
        ${WRKSRC}/Makefile

do-install:
.for ii in ${DIRS}
    @${MKDIR} ${DATADIR}/data/${ii}
    @${INSTALL_DATA} ${WRKSRC}/data/${ii}/* ${DATADIR}/data/${ii}/
.endfor
    @${INSTALL_DATA} ${WRKSRC}/data/*.txt ${DATADIR}/data/
    @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
    @${INSTALL_PROGRAM} ${WRKSRC}/neverputt ${PREFIX}/bin/

.include <bsd.port.mk>