blob: fab1e33c92b7ce026c3cff58fdca2701e47bf2dd (
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
|
# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$
PORTNAME= supertuxkart
PORTVERSION= 0.8
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= SF/supertuxkart/SuperTuxKart/${PORTVERSION}
EXTRACT_SUFX= -src.tar.bz2
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Free 3D kart racing game
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= vorbisfile:${PORTSDIR}/audio/libvorbis \
ogg:${PORTSDIR}/audio/libogg \
fribidi:${PORTSDIR}/converters/fribidi \
curl:${PORTSDIR}/ftp/curl \
jpeg:${PORTSDIR}/graphics/jpeg \
png15:${PORTSDIR}/graphics/png
USE_BZIP2= yes
USE_GL= gl glu glut
USE_OPENAL= al alut
USES= cmake gettext
USE_GMAKE= yes
USE_SDL= sdl
USE_DOS2UNIX= lib/irrlicht/source/Irrlicht/Makefile
MAKE_JOBS_SAFE= yes
WRKSRC= ${WRKDIR}/SuperTuxKart-${PORTVERSION}
PORTDOCS= *
IRR_CPPFLAGS= -DNO_IRR_USE_NON_SYSTEM_JPEG_LIB_ \
-DNO_IRR_USE_NON_SYSTEM_LIB_PNG_ \
-DNO_IRR_USE_NON_SYSTEM_ZLIB_ \
-DNO_IRR_COMPILE_WITH_BZIP2_ \
-DNO_IRR_COMPILE_WITH_JOYSTICK_EVENTS_
post-patch:
@${REINPLACE_CMD} -e 's|libIrrlicht.a|& -L${LOCALBASE}/lib -lpng -ljpeg|' ${WRKSRC}/CMakeLists.txt
pre-build:
cd ${WRKSRC}/lib/irrlicht/source/Irrlicht/ && \
${SETENV} ${MAKE_ENV} CPPFLAGS="${CPPFLAGS} ${IRR_CPPFLAGS}" \
${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS}
.include <bsd.port.pre.mk>
.if ${ARCH} == "powerpc"
BROKEN= Does not configure on powerpc
.endif
.include <bsd.port.post.mk>
|