2013-03-04 11:55:23 +01:00
|
|
|
# Created by: GreenDog <fiziologus@gmail.com>
|
2012-06-02 13:01:51 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= unknown-horizons
|
2013-05-08 20:34:47 +02:00
|
|
|
PORTVERSION= 2013.2
|
2012-06-02 13:01:51 +02:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= SF/unknownhorizons/Unknown%20Horizons/${PORTVERSION}/
|
|
|
|
|
|
|
|
MAINTAINER= fiziologus@gmail.com
|
|
|
|
COMMENT= Real time simulation game
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl \
|
|
|
|
${LOCALBASE}/bin/xsltproc:${PORTSDIR}/textproc/libxslt
|
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/fife/__init__.py:${PORTSDIR}/games/py-fife \
|
2013-03-04 11:55:23 +01:00
|
|
|
${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 \
|
2012-06-02 13:01:51 +02:00
|
|
|
${PYTHON_SITELIBDIR}/yaml/__init__.py:${PORTSDIR}/devel/py-yaml \
|
2013-03-04 11:55:23 +01:00
|
|
|
${PYTHON_PKGNAMEPREFIX}gdbm>0:${PORTSDIR}/databases/py-gdbm
|
2012-06-02 13:01:51 +02:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
|
|
|
|
USE_XZ= yes
|
|
|
|
USE_GNOME= intltool
|
2013-04-24 15:36:18 +02:00
|
|
|
USES= gettext:build
|
2014-01-13 22:00:02 +01:00
|
|
|
USE_PYTHON= 2
|
2012-06-02 13:01:51 +02:00
|
|
|
USE_PYDISTUTILS= yes
|
|
|
|
PYDISTUTILS_PKGNAME= UnknownHorizons
|
|
|
|
|
|
|
|
MAN6= unknown-horizons.6
|
|
|
|
|
2013-09-20 19:36:33 +02:00
|
|
|
NO_STAGE= yes
|
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:
|
|
|
|
${MKDIR} ${PYTHON_SITELIBDIR}/horizons/network/libs
|
|
|
|
${MKDIR} ${PYTHON_SITELIBDIR}/horizons/network/libs/freebsd-${ENET_DIR}
|
|
|
|
${INSTALL} ${WRKSRC}/horizons/network/libs/freebsd-${ENET_DIR}/enet.so \
|
|
|
|
${PYTHON_SITELIBDIR}/horizons/network/libs/freebsd-${ENET_DIR}/enet.so
|
|
|
|
|
2012-06-02 13:01:51 +02:00
|
|
|
.include <bsd.port.post.mk>
|