openbsd-ports/games/widelands/Makefile

61 lines
1.3 KiB
Makefile
Raw Normal View History

2007-11-02 09:12:53 -04:00
# $OpenBSD: Makefile,v 1.3 2007/11/02 13:12:53 sturm Exp $
COMMENT= economic and military simulation game
DISTNAME= widelands-build-11-source
2007-11-02 09:12:53 -04:00
PKGNAME= widelands-0.11p1
CATEGORIES= games
EXTRACT_SUFX= .tar.bz2
HOMEPAGE= http://widelands.org/
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=widelands/}
MAINTAINER= Simon Bertrang <simon@openbsd.org>
# GPLv2
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
2007-11-02 09:12:53 -04:00
WANTLIB= SDL c m png pthread stdc++ z
LIB_DEPENDS= SDL_gfx::devel/sdl-gfx \
SDL_image::devel/sdl-image \
SDL_mixer::devel/sdl-mixer \
SDL_net::devel/sdl-net \
SDL_ttf::devel/sdl-ttf
BUILD_DEPENDS= ::devel/scons
MODULES= devel/gettext
2007-11-02 09:12:53 -04:00
PYTHON_VER= 2.5
WRKDIST= ${WRKDIR}/widelands
USE_X11= Yes
NO_REGRESS= Yes
SCONS_OPTS= \
install_prefix=${PREFIX} \
bindir=${PREFIX}/bin \
datadir=${PREFIX}/share/widelands \
localedir=${PREFIX}/share \
extra_compile_flags="-I${LOCALBASE}/include/libpng ${CXXFLAGS}" \
extra_include_path=${LOCALBASE}/include \
extra_lib_path="${LOCALBASE}/lib"
pre-configure:
perl -pi -e 's,^#!/usr/bin/python,#!${LOCALBASE}/bin/python${PYTHON_VER},' \
${WRKSRC}/utils/buildlocale.py
do-build:
@${SETENV} ${MAKE_ENV} scons -C ${WRKSRC} ${SCONS_OPTS}
do-install:
@${SETENV} ${MAKE_ENV} scons -C ${WRKSRC} install ${SCONS_OPTS}
.include <bsd.port.mk>