diff options
author | Emanuel Haupt <ehaupt@FreeBSD.org> | 2005-10-16 09:21:59 +0000 |
---|---|---|
committer | Emanuel Haupt <ehaupt@FreeBSD.org> | 2005-10-16 09:21:59 +0000 |
commit | 7d35098aec4454eb19f5da4b1519b08a3e0b451b (patch) | |
tree | 39a57be12b1fa1888fef5f853ac06742b8663e8d /games/xmoto/Makefile | |
parent | 729bc13ec15726315475d5f60859c7f1d4eced69 (diff) | |
download | ports-7d35098aec4454eb19f5da4b1519b08a3e0b451b.tar.gz ports-7d35098aec4454eb19f5da4b1519b08a3e0b451b.zip |
Notes
Diffstat (limited to 'games/xmoto/Makefile')
-rw-r--r-- | games/xmoto/Makefile | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/games/xmoto/Makefile b/games/xmoto/Makefile new file mode 100644 index 000000000000..6e7f76b58bbd --- /dev/null +++ b/games/xmoto/Makefile @@ -0,0 +1,55 @@ +# New ports collection makefile for: xmoto +# Date created: 07 Oct 2005 +# Whom: Dmitry Marakasov <amdmi3@mail.ru> +# +# $FreeBSD$ +# + +PORTNAME= xmoto +PORTVERSION= 0.1.6 +CATEGORIES= games +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} +DISTNAME= ${PORTNAME}-${PORTVERSION}-src + +MAINTAINER= amdmi3@mail.ru +COMMENT= Challenging 2D motocross platform game + +LIB_DEPENDS= vorbis.3:${PORTSDIR}/audio/libvorbis \ + png.5:${PORTSDIR}/graphics/png \ + jpeg.9:${PORTSDIR}/graphics/jpeg + +GNU_CONFIGURE= yes +USE_GMAKE= yes +USE_GL= yes +USE_REINPLACE= yes +USE_SDL= sdl + +CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} +CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \ + CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \ + SDL_CONFIG="${SDL_CONFIG}" + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} + +PORTDOCS= README ChangeLog + +# game is still in alpha state, other archs are untested +ONLY_FOR_ARCHS= i386 + +post-patch: + @${FIND} ${WRKSRC}/src -name "*.cpp" -o -name "*.h" | \ + ${XARGS} ${REINPLACE_CMD} -e "s|$$(${PRINTF} '\r')||g" + @${REINPLACE_CMD} -e 's|SDL/|SDL11/|' ${WRKSRC}/src/VCommon.h + @${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/src/ode/config.h \ + ${WRKSRC}/src/image/tim_memory_crt.cpp + +.if !defined(NOPORTDOCS) +post-install: + ${MKDIR} ${DOCSDIR} +.for f in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} +.endfor +.endif + +.include <bsd.port.mk> |