1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/games/tuxkart/Makefile
Dmitry Marakasov 6f6fbe4bdf - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
2011-09-23 22:26:39 +00:00

37 lines
957 B
Makefile

# New ports collection makefile for: tuxkart
# Date created: 08 Jun 2001
# Whom: Alexander Langer <alex@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= tuxkart
PORTVERSION= 0.4.0
PORTREVISION= 3
CATEGORIES= games
MASTER_SITES= http://tuxkart.sourceforge.net/dist/
MAINTAINER= ports@FreeBSD.org
COMMENT= An OpenGL action kart racing game
BUILD_DEPENDS= ${LOCALBASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib
USE_GL= gl
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib -lusbhid"
CPPFLAGS+= -I${LOCALBASE}/include
CONFIGURE_ARGS= --with-plib=${LOCALBASE}
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e 's|-O6|${PTHREAD_CFLAGS}|g ; \
s|-lpthread|${PTHREAD_LIBS}|g ; \
s|datadir/games|datadir|g' ${WRKSRC}/configure
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|[\$$][(]prefix[)]/games|@bindir@|g ; \
s|[\$$][(]datadir[)]/games|\$$(datadir)|g'
.include <bsd.port.post.mk>