1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/games/supertuxkart/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

55 lines
1.5 KiB
Makefile

# New ports collection makefile for: supertuxkart
# Date created: 21 Mar 2008
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
#
# $FreeBSD$
#
PORTNAME= supertuxkart
PORTVERSION= 0.7
CATEGORIES= games
MASTER_SITES= SF/supertuxkart/SuperTuxKart/${PORTVERSION}
EXTRACT_SUFX= -src.tar.bz2
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Free 3D kart racing game
LIB_DEPENDS= vorbisfile.6:${PORTSDIR}/audio/libvorbis \
ogg.7:${PORTSDIR}/audio/libogg \
fribidi.3:${PORTSDIR}/converters/fribidi
BUILD_DEPENDS= ${LOCALBASE}/lib/libIrrlicht.so:${PORTSDIR}/x11-toolkits/irrlicht
RUN_DEPENDS= ${LOCALBASE}/lib/libIrrlicht.so:${PORTSDIR}/x11-toolkits/irrlicht
USE_BZIP2= yes
USE_GL= gl glu glut
USE_OPENAL= al alut
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_SDL= sdl
USE_GETTEXT= yes
MAKE_JOBS_SAFE= yes
PORTDOCS= *
# Using LIBS instead of LDFLAGS, otherwise will break when
# there's devel/bullet port installed
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
CPPFLAGS+= -I${LOCALBASE}/include
CONFIGURE_ARGS= --with-irrlicht="${LOCALBASE}"
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
post-patch:
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|$$(datadir)/games|$$(datadir)|g; \
s|$$(prefix)/games|$$(prefix)/bin|g'
@${REINPLACE_CMD} -e 's|PREFIX/games|PREFIX/bin|' \
${WRKSRC}/data/supertuxkart_desktop.template
.if defined(NOPORTDOCS)
@${REINPLACE_CMD} -e '/^install-data-am:/ s|install-dist_pkgdataDATA||' \
${WRKSRC}/Makefile.in
.endif
.include <bsd.port.mk>