blob: b4b0e8ef56a408ba196cbf15fd82ed019cd6be3f (
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
|
# New ports collection makefile for: gillo
# Date created: 23 Jan 2006
# Whom: Igor Pokrovsky <ip@doom.homeunix.org>
#
# $FreeBSD$
#
PORTNAME= gillo
DISTVERSION= 1.0beta1
PORTREVISION= 3
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}-${DISTVERSION}-src
MAINTAINER= ports@FreeBSD.org
COMMENT= Players are cars throwing a magnetic fuzzy ball into a goal
BUILD_DEPENDS= ${JAM}:${PORTSDIR}/devel/jam \
${X11BASE}/lib/libode.a:${PORTSDIR}/devel/ode \
${X11BASE}/lib/libplibsg.a:${PORTSDIR}/x11-toolkits/plib
USE_BZIP2= yes
USE_GL= yes
USE_SDL= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
JAM?= ${LOCALBASE}/bin/jam
post-patch:
@${REINPLACE_CMD} -i '' -e 's|SDL/||g' ${WRKSRC}/src/*
@${REINPLACE_CMD} -e 's|%%SDL_CFLAGS%%|`${SDL_CONFIG} --cflags`|' \
${WRKSRC}/Jamrules
@${REINPLACE_CMD} -e 's|%%SDL_LDFLAGS%%|`${SDL_CONFIG} --libs`|' \
${WRKSRC}/src/Jamfile
do-build:
cd ${WRKSRC} && ${SETENV} "C++=${CC}" "X11BASE=${X11BASE}" \
"CFLAGS=${CFLAGS} -DDATADIR=\\\"${PREFIX}/share\\\"" \
${JAM} -dx -sPREFIX=${PREFIX}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/gillo3 ${PREFIX}/bin
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/data/*.* ${DATADIR}
.include <bsd.port.mk>
|