openbsd-ports/games/xmoto/Makefile
kirby 36c03ec4bd - Update to 0.5.9 from Antti Harri, thanks.
- Switch MAINTAINER, requested by previous maintainer.

ok armani@ (old maintainer)
2012-04-15 08:49:05 +00:00

64 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.10 2012/04/15 08:49:05 kirby Exp $
COMMENT = challenging 2D motocross platform game
V = 0.5.9
DISTNAME = xmoto-${V}-src
PKGNAME = xmoto-${V}
CATEGORIES = games
MAINTAINER = Antti Harri <iku@openbsd.fi>
HOMEPAGE = http://xmoto.tuxfamily.org/
MASTER_SITES = http://download.tuxfamily.org/xmoto/xmoto/${V}/
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB += GL GLU SDL SDL_mixer SDL_net SDL_ttf X11 bz2 c curl jpeg
WANTLIB += lua m ode png pthread sqlite3 stdc++ xdg-basedir xml2 z
MODULES= devel/gettext
BUILD_DEPENDS = ${MODGNU_AUTOCONF_DEPENDS} \
${MODGNU_AUTOMAKE_DEPENDS}
LIB_DEPENDS = archivers/bzip2 \
databases/sqlite3 \
devel/ode \
devel/sdl-mixer \
devel/sdl-net \
devel/sdl-ttf \
graphics/jpeg \
graphics/png \
lang/lua \
net/curl \
textproc/libxml \
x11/libxdg-basedir
SEPARATE_BUILD = Yes
USE_GROFF = Yes
CONFIGURE_STYLE = gnu
CONFIGURE_ENV = CPPFLAGS="`pkg-config --cflags libpng sqlite3 sdl` -DSVN_REV='\"${V}\"'" \
LDFLAGS="`pkg-config --libs libpng sdl` -lGL"
AUTOMAKE_VERSION = 1.11
AUTOCONF_VERSION = 2.68
NO_REGRESS = Yes
WRKDIST = ${WRKDIR}/${DISTNAME:S/-src//}
pre-configure:
cd ${WRKSRC} && \
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
AUTOCONF_VERSION=${AUTOCONF_VERSION} \
autoreconf -fi
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/xmoto/
${INSTALL_DATA} ${WRKSRC}/{COPYING,README} ${PREFIX}/share/doc/xmoto/
.include <bsd.port.mk>