1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00
freebsd-ports/games/unknown-horizons/Makefile
Po-Chuan Hsieh 1a80ec7c22
devel/py-pyyaml: Move devel/py-yaml to devel/py-pyyaml
- Bump PORTREVISION of dependent ports for dependency change
2024-07-07 16:05:33 +08:00

45 lines
1.3 KiB
Makefile

PORTNAME= unknown-horizons
PORTVERSION= 2019.1
PORTREVISION= 2
CATEGORIES= games
MAINTAINER= fiziologus@gmail.com
COMMENT= Real time simulation game
WWW= https://www.unknown-horizons.org/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/doc/licenses/GPL
BUILD_DEPENDS= ${PY_PILLOW} \
${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}fife>0:games/py-fife@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyyaml>=0:devel/py-pyyaml@${PY_FLAVOR}
USES= gettext-tools gnome python shebangfix
USE_GITHUB= yes
USE_GNOME= intltool
USE_PYTHON= autoplist distutils noflavors
SHEBANG_FILES= run_uh.py
NO_ARCH= yes
OPTIONS_DEFINE= ENET NLS
OPTIONS_DEFAULT= ENET
ENET_DESC= Multipliplayer support through pyenet
ENET_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyenet>0:net/py-pyenet@${PY_FLAVOR}
post-patch-ENET-off:
@${REINPLACE_CMD} -e 's|import enet|return None|' ${WRKSRC}/horizons/network/__init__.py
post-patch-NLS-off:
@${REINPLACE_CMD} -e '/build.sub_commands.append.*build_i18n/ d' ${WRKSRC}/setup.py
do-build:
cd ${WRKSRC} && ${SETENV} UH_USER_DIR=${WRKSRC} ${PYTHON_CMD} horizons/engine/generate_atlases.py 2048
post-install-NLS-off:
@${RM} -r ${STAGEDIR}${PREFIX}/share/locale
.include <bsd.port.mk>