blob: a83548b9937ffdbdc3175c110cb8ddc81907a12a (
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
|
# Created by: Igor Pokrovsky <ip@doom.homeunix.org>
# $FreeBSD$
PORTNAME= gillo
DISTVERSION= 1.0beta1
PORTREVISION= 8
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/1.0beta1
DISTNAME= ${PORTNAME}-${DISTVERSION}-src
MAINTAINER= ports@FreeBSD.org
COMMENT= Players are cars throwing a magnetic fuzzy ball into a goal
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${JAM}:devel/jam \
${LOCALBASE}/lib/libode.a:devel/ode \
${LOCALBASE}/lib/libplibsg.a:x11-toolkits/plib
WRKSRC= ${WRKDIR}/${PORTNAME}
USES= tar:bzip2
USE_GL= glu
USE_SDL= yes
JAM?= ${LOCALBASE}/bin/jam
post-patch:
@${REINPLACE_CMD} '/^LINKLIBS on gillo3/s|;$$|-L${LOCALBASE}/lib -lm ;|' \
${WRKSRC}/src/Jamfile
do-build:
cd ${WRKSRC} && ${SETENV} C++="${CXX}" C++FLAGS="${CXXFLAGS}" \
CCFLAGS="${CFLAGS} -DDATADIR=\\\"${PREFIX}/share\\\"" \
HDRS="${LOCALBASE}/include" \
LINK="${CXX}" LINKFLAGS="${LDFLAGS}" \
${JAM} -dx -sPREFIX=${PREFIX}
do-install:
(cd ${WRKSRC}/src && ${INSTALL_PROGRAM} gillo3 ${STAGEDIR}${PREFIX}/bin)
@${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${WRKSRC}/data && ${INSTALL_DATA} *.* ${STAGEDIR}${DATADIR})
.include <bsd.port.mk>
|