2012-12-11 04:14:14 +01:00
|
|
|
# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
|
2005-10-16 11:21:59 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= xmoto
|
2012-12-11 04:14:14 +01:00
|
|
|
PORTVERSION= 0.5.10
|
2005-10-16 11:21:59 +02:00
|
|
|
CATEGORIES= games
|
2007-04-10 08:08:47 +02:00
|
|
|
MASTER_SITES= http://download.tuxfamily.org/xmoto/xmoto/${PORTVERSION}/ \
|
2009-07-28 18:34:36 +02:00
|
|
|
http://mirror.amdmi3.ru/distfiles/
|
2005-10-16 11:21:59 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
|
|
|
|
2008-06-19 19:28:24 +02:00
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
2005-10-16 11:21:59 +02:00
|
|
|
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 \
|
2011-12-15 10:26:00 +01:00
|
|
|
xdg-basedir.2:${PORTSDIR}/x11/libxdg-basedir
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libode.a:${PORTSDIR}/devel/ode
|
2005-10-16 11:21:59 +02:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
2011-10-01 15:41:15 +02:00
|
|
|
USE_GNOME= pkgconfig libxml2
|
2006-09-15 10:17:11 +02:00
|
|
|
USE_LUA= 5.1
|
2008-12-01 23:02:45 +01:00
|
|
|
USE_SQLITE= 3
|
|
|
|
USE_SDL= sdl mixer ttf net
|
|
|
|
USE_GL= gl glu
|
2006-02-07 14:21:18 +01:00
|
|
|
USE_DOS2UNIX= src/*.cpp src/*.h
|
2009-03-31 19:05:17 +02:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2005-10-16 11:21:59 +02:00
|
|
|
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include -I${LUA_INCDIR}
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib -L${LUA_LIBDIR}
|
2005-10-16 11:21:59 +02:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
|
|
|
|
PORTDOCS= README ChangeLog
|
|
|
|
|
2012-12-11 04:14:14 +01:00
|
|
|
OPTIONS_DEFINE= ASIAN_TTF
|
2012-12-11 14:06:57 +01:00
|
|
|
ASIAN_TTF_DESC= Use asian TTF font
|
2006-09-22 02:40:04 +02:00
|
|
|
|
2006-12-27 14:59:17 +01:00
|
|
|
MAN6= xmoto.6
|
2006-05-22 16:31:42 +02:00
|
|
|
|
2009-09-11 23:57:40 +02:00
|
|
|
DESKTOP_ENTRIES="XMoto" \
|
|
|
|
"Motorcross game" \
|
|
|
|
"${DATADIR}/xmoto_icone_x.ico" \
|
|
|
|
"xmoto" \
|
|
|
|
"Game;SportsGame;ArcadeGame;" \
|
|
|
|
false
|
|
|
|
|
2006-05-22 16:31:42 +02:00
|
|
|
.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
|
|
|
|
|
2012-12-11 04:14:14 +01:00
|
|
|
.if ${PORT_OPTIONS:MASIAN_TTF}
|
2008-12-01 23:02:45 +01:00
|
|
|
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
|
2006-09-22 02:40:04 +02:00
|
|
|
.else
|
2008-12-01 23:02:45 +01:00
|
|
|
CONFIGURE_ARGS+=--without-asian-ttf-file
|
2007-04-10 08:08:47 +02:00
|
|
|
.endif
|
|
|
|
|
2012-12-11 04:14:14 +01:00
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2006-09-22 02:40:04 +02:00
|
|
|
USE_GETTEXT= yes
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
CONFIGURE_ENV+= LIBS="-lintl"
|
2007-09-07 00:20:34 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
2006-05-22 16:31:42 +02:00
|
|
|
|
2012-12-11 04:14:14 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2005-10-16 11:21:59 +02:00
|
|
|
post-install:
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
.for f in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2006-05-22 16:31:42 +02:00
|
|
|
.include <bsd.port.post.mk>
|