freebsd-ports/games/supertuxkart/Makefile
Dmitry Marakasov 6722de0ca5 - Update to 0.7
PR:		153378
Submitted by:	Pascal Stumpf <Pascal.Stumpf@cubes.de>
2010-12-26 22:49:14 +00:00

54 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>