[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / games / unknown-horizons

File: [cvs.NetBSD.org] / pkgsrc / games / unknown-horizons / Makefile (download)

Revision 1.4, Fri Dec 4 20:45:20 2020 UTC (3 years, 2 months ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2020Q4-base, pkgsrc-2020Q4
Changes since 1.3: +2 -1 lines

Revbump packages with a runtime Python dep but no version prefix.

For the Python 3.8 default switch.

# $NetBSD: Makefile,v 1.4 2020/12/04 20:45:20 nia Exp $

DISTNAME=	unknown-horizons-2019.1
PKGREVISION=	1
CATEGORIES=	games
MASTER_SITES=	${MASTER_SITE_GITHUB:=unknown-horizons/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://unknown-horizons.org/
COMMENT=	2D RTS game with an emphasis on economy and city building
LICENSE=	gnu-gpl-v2

USE_TOOLS+=	intltool msgfmt

DEPENDS+=	${PYPKGPREFIX}-future-[0-9]*:../../devel/py-future
DEPENDS+=	${PYPKGPREFIX}-future-[0-9]*:../../devel/py-future
DEPENDS+=	${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3
DEPENDS+=	${PYPKGPREFIX}-Pillow-[0-9]*:../../graphics/py-Pillow
DEPENDS+=	${PYPKGPREFIX}-yaml-[0-9]*:../../textproc/py-yaml
DEPENDS+=	fifengine-[0-9]*:../../devel/fifengine

REPLACE_PYTHON+=	run_server.py
REPLACE_PYTHON+=	run_uh.py

SUBST_CLASSES+=		paths
SUBST_STAGE.paths=	pre-configure
SUBST_MESSAGE.paths=	Setting paths.
SUBST_FILES.paths+=	run_uh.py setup.py
SUBST_VARS.paths+=	PREFIX PKGMANDIR

# Misses generating these files sometimes somehow
post-build:
	cd ${WRKSRC} && ${PKGSRC_SETENV} ${MAKE_ENV} ${PYTHONBIN} horizons/engine/generate_atlases.py 2048

.include "../../lang/python/application.mk"
.include "../../lang/python/distutils.mk"
.include "../../mk/bsd.pkg.mk"