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
|
2009-04-22 00:13:30 +02:00
|
|
|
PORTVERSION= 0.5.1
|
2009-07-18 13:11:29 +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}/ \
|
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
|
|
|
|
|
2008-02-05 14:38:45 +01:00
|
|
|
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
|
2009-07-18 13:11:29 +02:00
|
|
|
jpeg.10:${PORTSDIR}/graphics/jpeg \
|
2009-01-23 16:43:14 +01:00
|
|
|
curl.5:${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
|
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
|
|
|
|
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
|
|
|
|
|
2008-12-01 23:02:45 +01:00
|
|
|
OPTIONS= ASIAN_TTF "Use asian TTF font" 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>
|
|
|
|
|
2008-12-01 23:02:45 +01:00
|
|
|
.if defined(WITH_ASIAN_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
|
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
|
|
|
|
|
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-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>
|