2013-03-04 11:55:23 +01:00
|
|
|
# Created by: GreenDog <fiziologus@gmail.com>
|
2012-06-02 13:01:51 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2014-07-16 09:23:52 +02:00
|
|
|
PORTNAME= unknown-horizons
|
2014-07-22 20:21:34 +02:00
|
|
|
PORTVERSION= 2013.3
|
2014-09-10 22:50:31 +02:00
|
|
|
PORTREVISION= 1
|
2014-07-16 09:23:52 +02:00
|
|
|
CATEGORIES= games
|
2012-06-02 13:01:51 +02:00
|
|
|
|
2014-07-16 09:23:52 +02:00
|
|
|
MAINTAINER= fiziologus@gmail.com
|
|
|
|
COMMENT= Real time simulation game
|
2012-06-02 13:01:51 +02:00
|
|
|
|
2017-04-08 13:05:02 +02:00
|
|
|
LICENSE= GPLv2+
|
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:textproc/docbook-xsl \
|
|
|
|
${LOCALBASE}/bin/xsltproc:textproc/libxslt
|
2017-11-30 16:50:30 +01:00
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/fife/__init__.py:games/py-fife@${FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${FLAVOR} \
|
|
|
|
${PYTHON_SITELIBDIR}/yaml/__init__.py:devel/py-yaml@${FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}gdbm>0:databases/py-gdbm@${FLAVOR}
|
2012-06-02 13:01:51 +02:00
|
|
|
|
2014-07-16 09:23:52 +02:00
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
2012-06-02 13:01:51 +02:00
|
|
|
|
2014-07-22 20:21:34 +02:00
|
|
|
USE_GITHUB= yes
|
|
|
|
|
2014-07-16 09:23:52 +02:00
|
|
|
USE_GNOME= intltool
|
2014-11-29 19:22:32 +01:00
|
|
|
USES= gettext-tools python:2 tar:xz
|
2014-09-28 20:40:48 +02:00
|
|
|
USE_PYTHON= distutils
|
2012-06-02 13:01:51 +02:00
|
|
|
PYDISTUTILS_PKGNAME= UnknownHorizons
|
2014-09-28 20:40:48 +02:00
|
|
|
|
2012-06-02 13:01:51 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == i386
|
2013-03-07 08:47:55 +01:00
|
|
|
ENET_DIR= x86
|
2012-08-18 12:30:18 +02:00
|
|
|
PLIST_SUB+= X86_ONLY=""
|
2012-06-02 13:01:51 +02:00
|
|
|
.else
|
2012-08-18 12:30:18 +02:00
|
|
|
PLIST_SUB+= X86_ONLY="@comment "
|
2012-06-02 13:01:51 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${ARCH} == amd64
|
2013-03-07 08:47:55 +01:00
|
|
|
ENET_DIR= x64
|
2012-08-18 12:30:18 +02:00
|
|
|
PLIST_SUB+= X64_ONLY=""
|
2012-06-02 13:01:51 +02:00
|
|
|
.else
|
2012-08-18 12:30:18 +02:00
|
|
|
PLIST_SUB+= X64_ONLY="@comment "
|
2012-06-02 13:01:51 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e "s|http://docbook.sourceforge.net/release/xsl/current|${LOCALBASE}/share/xsl/docbook|" \
|
|
|
|
-e "s|share/man/man6|man/man6|" ${WRKSRC}/setup.py
|
|
|
|
|
2013-03-07 08:47:55 +01:00
|
|
|
# Install multiplayer lib (enet+pyenet)
|
|
|
|
post-install:
|
2017-04-08 13:05:02 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/horizons/network/libs/freebsd-${ENET_DIR}
|
|
|
|
${INSTALL_LIB} ${WRKSRC}/horizons/network/libs/freebsd-${ENET_DIR}/enet.so \
|
2014-07-16 09:23:52 +02:00
|
|
|
${STAGEDIR}${PYTHON_SITELIBDIR}/horizons/network/libs/freebsd-${ENET_DIR}/enet.so
|
2014-07-22 20:21:34 +02:00
|
|
|
# (rene) prune unwanted files to pass 'make check-plist'
|
|
|
|
${RM} -r ${STAGEDIR}${PYTHON_SITELIBDIR}/UnknownHorizons-_unknown_-py${PYTHON_VER}.egg-info
|
2013-03-07 08:47:55 +01:00
|
|
|
|
2012-06-02 13:01:51 +02:00
|
|
|
.include <bsd.port.post.mk>
|