2005-10-16 11:21:59 +02:00
|
|
|
# New ports collection makefile for: xmoto
|
|
|
|
# Date created: 07 Oct 2005
|
2006-12-21 21:41:33 +01:00
|
|
|
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
|
2005-10-16 11:21:59 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= xmoto
|
2008-03-30 00:25:10 +01:00
|
|
|
PORTVERSION= 0.4.2
|
2008-06-06 16:17:21 +02:00
|
|
|
PORTREVISION= 1
|
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}/ \
|
|
|
|
http://www.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
|
|
|
|
|
2008-02-05 14:38:45 +01:00
|
|
|
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
|
2007-08-12 13:14:43 +02:00
|
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg \
|
2007-09-07 00:20:34 +02:00
|
|
|
curl.4:${PORTSDIR}/ftp/curl
|
- 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
|
2008-04-07 05:26:09 +02:00
|
|
|
USE_GNOME= pkgconfig
|
2006-09-15 10:17:11 +02:00
|
|
|
USE_LUA= 5.1
|
2007-09-07 00:20:34 +02:00
|
|
|
USE_SQLITE= yes
|
2007-08-12 13:14:43 +02:00
|
|
|
USE_SDL= sdl mixer ttf
|
2006-02-07 14:21:18 +01:00
|
|
|
USE_DOS2UNIX= src/*.cpp src/*.h
|
2005-10-16 11:21:59 +02:00
|
|
|
|
2006-09-15 10:17:11 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
- 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
|
|
|
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
|
|
|
|
|
2007-08-12 13:14:43 +02:00
|
|
|
OPTIONS= ZOOM "Enable zooming" on \
|
2007-09-07 00:20:34 +02:00
|
|
|
SDL_GFX "Use sdl_gfx rendering instead of OpenGL (broken)" off
|
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
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-09-22 02:40:04 +02:00
|
|
|
.if defined(WITH_ZOOM)
|
|
|
|
CONFIGURE_ARGS+= --with-enable-zoom=1
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-enable-zoom=0
|
|
|
|
.endif
|
|
|
|
|
2007-04-10 08:08:47 +02:00
|
|
|
.if defined(WITH_SDL_GFX)
|
|
|
|
USE_SDL+= gfx
|
|
|
|
CONFIGURE_ARGS+=--with-renderer-sdlGfx=1 --with-renderer-openGl=0
|
|
|
|
.else
|
|
|
|
USE_GL= yes
|
|
|
|
CONFIGURE_ARGS+=--with-renderer-sdlGfx=0 --with-renderer-openGl=1
|
|
|
|
.endif
|
|
|
|
|
2007-09-07 00:20:34 +02:00
|
|
|
.if !defined(WITHOUT_NLS)
|
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
|
|
|
|
2005-12-04 02:20:10 +01:00
|
|
|
post-patch:
|
2007-10-28 00:04:06 +02:00
|
|
|
@${REINPLACE_CMD} -e '/LIBS/ s|-lSDL_mixer|`${SDL_CONFIG} --libs` &|' \
|
2006-09-15 10:17:11 +02:00
|
|
|
${WRKSRC}/configure
|
2006-09-22 02:40:04 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|/mang|/man6|' ${WRKSRC}/Makefile.in
|
2005-10-16 11:21:59 +02:00
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
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>
|