65 lines
1.5 KiB
Makefile
65 lines
1.5 KiB
Makefile
# $OpenBSD: Makefile,v 1.12 2012/05/15 18:21:12 jasper Exp $
|
|
|
|
COMMENT = challenging 2D motocross platform game
|
|
|
|
V = 0.5.9
|
|
DISTNAME = xmoto-${V}-src
|
|
PKGNAME = xmoto-${V}
|
|
REVISION= 1
|
|
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 += ${MODLUA_WANTLIB} m ode png pthread sqlite3 stdc++ xdg-basedir xml2 z
|
|
|
|
MODULES= devel/gettext \
|
|
lang/lua
|
|
BUILD_DEPENDS = ${MODGNU_AUTOCONF_DEPENDS} \
|
|
${MODGNU_AUTOMAKE_DEPENDS}
|
|
LIB_DEPENDS = archivers/bzip2 \
|
|
devel/ode \
|
|
devel/sdl-mixer \
|
|
devel/sdl-net \
|
|
devel/sdl-ttf \
|
|
graphics/jpeg \
|
|
graphics/png \
|
|
net/curl \
|
|
textproc/libxml \
|
|
x11/libxdg-basedir \
|
|
${MODLUA_LIB_DEPENDS}
|
|
|
|
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>
|