blob: e57cb2a64b64f55e2b081f060fd2710ce2f0b882 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# 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.pre.mk>
.if ${ARCH} == "powerpc"
BROKEN= Does not configure on powerpc
.endif
.include <bsd.port.post.mk>
|