1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/games/gillo/Makefile
Vasil Dimov ec74dc818a Fix install by installing the port manually
PR:		ports/92634
Submitted by:	Igor Pokrovsky <ip@doom.homeunix.org> (maintainer)
Approved by:	portmgr (kris)
2006-03-06 07:35:32 +00:00

47 lines
1.2 KiB
Makefile

# New ports collection makefile for: gillo
# Date created: 23 Jan 2006
# Whom: Igor Pokrovsky <ip@doom.homeunix.org>
#
# $FreeBSD$
#
PORTNAME= gillo
DISTVERSION= 1.0beta1
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}-${DISTVERSION}-src
MAINTAINER= ip@doom.homeunix.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>