openbsd-ports/games/supertuxkart/Makefile
2010-11-26 07:20:11 +00:00

55 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.6 2010/11/26 07:20:12 espie Exp $
COMMENT = kart racing game with OSS mascots
BASENAME = supertuxkart-0.6.2a
DISTNAME = ${BASENAME}-src
PKGNAME = ${BASENAME}
REVISION = 1
CATEGORIES = games
HOMEPAGE = http://supertuxkart.sourceforge.net
MAINTAINER = Pascal Stumpf <ps_obsd@cubes.de>
# GPLv3
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB = GL GLU SDL X11 Xi Xmu c m ogg openal pthread \
stdc++ vorbis vorbisfile glut
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=supertuxkart/SuperTuxKart/}
EXTRACT_SUFX = .tar.bz2
MODULES = devel/gettext
BUILD_DEPENDS = devel/plib
RUN_DEPENDS = devel/desktop-file-utils
LIB_DEPENDS = devel/sdl \
graphics/freeglut \
audio/openal>=0.0.8p7 \
audio/libvorbis
USE_GMAKE = Yes
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --with-libintl-prefix=${LOCALBASE} \
--with-libiconv-prefix=${LOCALBASE}
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib -liconv \
-lGL -lGLU -lSDL -lXi -lXmu -lX11 -lglut \
-lm -logg -pthread -lvorbis -lvorbisfile"
WRKDIST = ${WRKDIR}/${BASENAME}
pre-configure:
find ${WRKSRC} -name Makefile.in | xargs perl -pi \
-e 's,\$\(datadir\)/games,\$\(datadir\),g;' \
-e 's,\$\(prefix\)/games,\$\(prefix\)/bin,g'
.include <bsd.port.mk>