f39c5a0dd6
Reported by: pointyhat
40 lines
1 KiB
Makefile
40 lines
1 KiB
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= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LIBS="-L${LOCALBASE}/lib -lusbhid"
|
|
CONFIGURE_ARGS= --with-plib=${LOCALBASE}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} >= 800000
|
|
BROKEN= does not compile: error: plib/js.h: No such file or directory
|
|
.endif
|
|
|
|
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>
|