mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
3e4ed01146
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG - Remove X11BASE support in favor of LOCALBASE or PREFIX - Use USE_LDCONFIG instead of INSTALLS_SHLIB - Remove unneeded USE_GCC 3.4+ Thanks to all Helpers: Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr, ehaupt, nox, itetcu, flz, pav PR: 116263 Tested on: pointyhat Approved by: portmgr (pav)
38 lines
903 B
Makefile
38 lines
903 B
Makefile
# ex:ts=8
|
|
# Ports collection makefile for: race
|
|
# Date created: Jul 16, 2002
|
|
# Whom: ijliao
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= race
|
|
PORTVERSION= 0.5
|
|
PORTREVISION= 5
|
|
CATEGORIES= games
|
|
MASTER_SITES= ftp://users.freebsd.org.uk/pub/foobar2k/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= OpenGL Racing Game
|
|
|
|
USE_SDL= mixer image sdl
|
|
USE_BZIP2= yes
|
|
USE_GL= glut
|
|
CFLAGS+= "-I${LOCALBASE}/include"
|
|
MAKE_ENV= CC="${CC} ${CFLAGS}" LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s|^CC|#CC|g" \
|
|
-e "s|sdl-config|${SDL_CONFIG}|g" ${WRKSRC}/Makefile
|
|
.for file in game.c main.c menu.c terrain.c textures.c
|
|
@${REINPLACE_CMD} -e "s|%%DATADIR%%|${DATADIR}|g" ${WRKSRC}/src/${file}
|
|
.endfor
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/race ${PREFIX}/bin
|
|
@${MKDIR} ${DATADIR}/data
|
|
${INSTALL_DATA} ${WRKSRC}/config ${DATADIR}
|
|
${CP} -R ${WRKSRC}/data/* ${DATADIR}/data
|
|
|
|
.include <bsd.port.mk>
|