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
|
2014-05-09 20:39:50 +02:00
|
|
|
PORTVERSION= 0.5.11
|
2014-12-25 21:54:41 +01:00
|
|
|
PORTREVISION= 6
|
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
|
|
|
|
|
2013-10-04 03:57:47 +02:00
|
|
|
LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png \
|
|
|
|
libjpeg.so:${PORTSDIR}/graphics/jpeg \
|
|
|
|
libcurl.so:${PORTSDIR}/ftp/curl \
|
|
|
|
libxdg-basedir.so:${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
|
|
|
|
2014-12-03 22:39:05 +01:00
|
|
|
LICENSE= GPLv2 # or later
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2013-12-22 21:20:10 +01:00
|
|
|
|
2005-10-16 11:21:59 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2014-05-26 17:28:28 +02:00
|
|
|
USES= gmake dos2unix lua:51
|
2013-07-12 17:01:45 +02:00
|
|
|
USE_GNOME= libxml2
|
2008-12-01 23:02:45 +01:00
|
|
|
USE_SQLITE= 3
|
|
|
|
USE_SDL= sdl mixer ttf net
|
|
|
|
USE_GL= gl glu
|
2014-05-07 23:07:54 +02:00
|
|
|
DOS2UNIX_GLOB= *.cpp *.h
|
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
|
2013-10-04 03:57:47 +02:00
|
|
|
PORTDATA= *
|
2005-10-16 11:21:59 +02:00
|
|
|
|
2012-12-11 17:49:04 +01:00
|
|
|
OPTIONS_DEFINE= ASIAN_TTF DOCS NLS
|
2014-05-07 23:07:54 +02:00
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
2012-12-11 14:06:57 +01:00
|
|
|
ASIAN_TTF_DESC= Use asian TTF font
|
2006-09-22 02:40:04 +02:00
|
|
|
|
2014-05-07 23:07:54 +02:00
|
|
|
ASIAN_TTF_RUN_DEPENDS= ${LOCALBASE}/lib/X11/fonts/TrueType/bkai00mp.ttf:${PORTSDIR}/chinese/arphicttf
|
|
|
|
ASIAN_TTF_CONFIGURE_ON= --with-asian-ttf-file=${LOCALBASE}/lib/X11/fonts/TrueType/bsmi00lp.ttf
|
|
|
|
ASIAN_TTF_CONFIGURE_OFF=--without-asian-ttf-file
|
|
|
|
|
|
|
|
NLS_USES= gettext
|
|
|
|
NLS_CONFIGURE_ENABLE= nls
|
|
|
|
|
2009-09-11 23:57:40 +02:00
|
|
|
DESKTOP_ENTRIES="XMoto" \
|
|
|
|
"Motorcross game" \
|
|
|
|
"${DATADIR}/xmoto_icone_x.ico" \
|
|
|
|
"xmoto" \
|
|
|
|
"Game;SportsGame;ArcadeGame;" \
|
|
|
|
false
|
|
|
|
|
2014-11-25 00:46:54 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2014-12-03 22:39:05 +01:00
|
|
|
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000000
|
2014-11-25 00:46:54 +01:00
|
|
|
BROKEN= does not build
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@${RM} -rf ${WRKSRC}/src/ode
|
|
|
|
|
2014-05-27 13:54:56 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e "s/lua5.1/lua-${LUA_VER}/g" ${WRKSRC}/configure
|
|
|
|
|
2005-10-16 11:21:59 +02:00
|
|
|
post-install:
|
2013-10-04 03:57:47 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2005-10-16 11:21:59 +02:00
|
|
|
.for f in ${PORTDOCS}
|
2014-05-07 23:07:54 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
|
2005-10-16 11:21:59 +02:00
|
|
|
.endfor
|
|
|
|
|
2014-11-25 00:46:54 +01:00
|
|
|
.include <bsd.port.post.mk>
|