freebsd-ports/games/xmoto/Makefile

80 lines
1.8 KiB
Makefile
Raw Normal View History

# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$
PORTNAME= xmoto
PORTVERSION= 0.5.10
CATEGORIES= games
MASTER_SITES= http://download.tuxfamily.org/xmoto/xmoto/${PORTVERSION}/ \
http://mirror.amdmi3.ru/distfiles/
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Challenging 2D motocross platform game
2012-06-01 07:26:28 +02:00
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png \
2010-02-05 12:46:55 +01:00
jpeg.11:${PORTSDIR}/graphics/jpeg \
2010-05-12 01:27:24 +02:00
curl.6:${PORTSDIR}/ftp/curl \
xdg-basedir.2:${PORTSDIR}/x11/libxdg-basedir
BUILD_DEPENDS= ${LOCALBASE}/lib/libode.a:${PORTSDIR}/devel/ode
GNU_CONFIGURE= yes
USE_GMAKE= yes
2011-10-01 15:41:15 +02:00
USE_GNOME= pkgconfig libxml2
USE_LUA= 5.1
USE_SQLITE= 3
USE_SDL= sdl mixer ttf net
USE_GL= gl glu
USE_DOS2UNIX= src/*.cpp src/*.h
MAKE_JOBS_SAFE= yes
CPPFLAGS+= -I${LOCALBASE}/include -I${LUA_INCDIR}
LDFLAGS+= -L${LOCALBASE}/lib -L${LUA_LIBDIR}
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PORTDOCS= README ChangeLog
OPTIONS_DEFINE= ASIAN_TTF
ASIAN_TTF_DESC= Use asian TTF font
MAN6= xmoto.6
DESKTOP_ENTRIES="XMoto" \
"Motorcross game" \
"${DATADIR}/xmoto_icone_x.ico" \
"xmoto" \
"Game;SportsGame;ArcadeGame;" \
false
.include <bsd.port.pre.mk>
2011-05-16 15:20:35 +02:00
.if ${OSVERSION} < 800067
BROKEN= does not compile due to missing getline()
.endif
.if ${PORT_OPTIONS:MASIAN_TTF}
RUN_DEPENDS+= ${LOCALBASE}/lib/X11/fonts/TrueType/bkai00mp.ttf:${PORTSDIR}/chinese/arphicttf
CONFIGURE_ARGS+=--with-asian-ttf-file=${LOCALBASE}/lib/X11/fonts/TrueType/bsmi00lp.ttf
.else
CONFIGURE_ARGS+=--without-asian-ttf-file
.endif
.if ${PORT_OPTIONS:MNLS}
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
CONFIGURE_ENV+= LIBS="-lintl"
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
.if ${PORT_OPTIONS:MDOCS}
post-install:
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>