mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
b3c25d9937
- Bump PORTREVISION of all ports that depend of devel/ode [1] Approved by: thierry, Dmitry Marakasov <amdmi3__at__mail.ru> (maintainers) [1]
92 lines
2.2 KiB
Makefile
92 lines
2.2 KiB
Makefile
# New ports collection makefile for: xmoto
|
|
# Date created: 07 Oct 2005
|
|
# Whom: Dmitry Marakasov <amdmi3@mail.ru>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= xmoto
|
|
PORTVERSION= 0.2.2
|
|
PORTREVISION= 1
|
|
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
|
|
BUILD_DEPENDS= ${X11BASE}/lib/libode.a:${PORTSDIR}/devel/ode
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_GMAKE= yes
|
|
USE_GL= yes
|
|
USE_LUA= 5.1
|
|
USE_SDL= sdl mixer
|
|
USE_DOS2UNIX= src/*.cpp src/*.h
|
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
CONFIGURE_ARGS= --mandir="${PREFIX}/man"
|
|
CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include -I${LUA_INCDIR}
|
|
LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib -L${LUA_LIBDIR}
|
|
MANCOMPRESSED= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
PORTDOCS= README ChangeLog
|
|
|
|
OPTIONS= WWW "Online high-scores and new levels download support" on \
|
|
ZOOM "Enable zooming" off
|
|
|
|
MAN6= xmoto.6 xmoto-edit.6
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !defined(WITHOUT_WWW)
|
|
LIB_DEPENDS+= curl.3:${PORTSDIR}/ftp/curl
|
|
CONFIGURE_ARGS+= --with-enable-www=1
|
|
.else
|
|
CONFIGURE_ARGS+= --with-enable-www=0
|
|
.endif
|
|
|
|
.if defined(WITH_ZOOM)
|
|
CONFIGURE_ARGS+= --with-enable-zoom=1
|
|
.else
|
|
CONFIGURE_ARGS+= --with-enable-zoom=0
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_NLS)
|
|
USE_GETTEXT= yes
|
|
PLIST_SUB+= NLS=""
|
|
CONFIGURE_ENV+= LIBS="-lintl"
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
PLIST_SUB+= NLS="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|SDL/||; s|endian.h|sys/endian.h|' \
|
|
${WRKSRC}/src/VCommon.h
|
|
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' \
|
|
${WRKSRC}/src/image/tim_memory_crt.cpp
|
|
@${REINPLACE_CMD} -e \
|
|
'/LIBS/ s|\(-lSDL_mixer\)|`${SDL_CONFIG} --libs` \1| ; \
|
|
s|function displayRequirement|displayRequirement()|; \
|
|
/Locales/ s|libc|libintl|' \
|
|
${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e 's|/mang|/man6|' ${WRKSRC}/Makefile.in
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
post-install:
|
|
${MKDIR} ${DOCSDIR}
|
|
.for f in ${PORTDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|