1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/games/gillo/Makefile
Martin Wilke c1082e0005 - Fix build with clang
PR:		184836
Submitted by:	Ports Fury
2014-01-19 13:47:16 +00:00

46 lines
1.2 KiB
Makefile

# Created by: Igor Pokrovsky <ip@doom.homeunix.org>
# $FreeBSD$
PORTNAME= gillo
DISTVERSION= 1.0beta1
PORTREVISION= 5
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
BUILD_DEPENDS= ${JAM}:${PORTSDIR}/devel/jam \
${LOCALBASE}/lib/libode.a:${PORTSDIR}/devel/ode \
${LOCALBASE}/lib/libplibsg.a:${PORTSDIR}/x11-toolkits/plib
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_BZIP2= yes
USE_GL= gl
USE_SDL= yes
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}" "LOCALBASE=${LOCALBASE}" \
"CFLAGS=${CFLAGS} -DDATADIR=\\\"${PREFIX}/share\\\"" \
${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>