2013-09-20 17:36:33 +00:00
|
|
|
# Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
|
2005-10-09 00:46:39 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= slune
|
2009-04-27 01:23:46 +00:00
|
|
|
PORTVERSION= 1.0.15
|
2014-12-08 16:48:38 +00:00
|
|
|
PORTREVISION= 7
|
2005-10-09 00:46:39 +00:00
|
|
|
CATEGORIES= games python
|
|
|
|
MASTER_SITES= http://download.gna.org/slune/
|
|
|
|
DISTNAME= Slune-${PORTVERSION}
|
|
|
|
|
2014-07-02 18:22:39 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2005-10-10 17:46:45 +00:00
|
|
|
COMMENT= 3D game. includes racing, car-crashing, and lots of action
|
2005-10-09 00:46:39 +00:00
|
|
|
|
2014-08-28 02:56:29 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2014-05-26 08:44:34 +00:00
|
|
|
LIB_DEPENDS= libcal3d.so:${PORTSDIR}/graphics/cal3d
|
2014-08-28 02:56:29 +00:00
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}openal>0:${PORTSDIR}/audio/py-openal \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}vorbis>0:${PORTSDIR}/audio/py-vorbis \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}soya3d>0:${PORTSDIR}/graphics/py-soya3d \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}py2play>0:${PORTSDIR}/net-p2p/py-py2play
|
2005-10-09 00:46:39 +00:00
|
|
|
|
2014-08-28 02:56:29 +00:00
|
|
|
USES= dos2unix gettext python tar:bzip2
|
2014-05-26 08:44:34 +00:00
|
|
|
DOS2UNIX_GLOB= *.po *.mo
|
2010-04-27 21:58:27 +00:00
|
|
|
USE_GL= glew
|
2005-10-09 00:46:39 +00:00
|
|
|
USE_SDL= sdl mixer
|
2014-08-28 02:56:29 +00:00
|
|
|
USE_PYTHON= autoplist distutils
|
2005-10-09 00:46:39 +00:00
|
|
|
|
2007-07-30 09:42:28 +00:00
|
|
|
PYDISTUTILS_PKGNAME= Slune
|
2007-11-13 00:49:07 +00:00
|
|
|
PYDISTUTILS_EGGINFODIR= ${PREFIX}/share
|
2007-07-30 09:42:28 +00:00
|
|
|
|
2014-08-28 02:56:29 +00:00
|
|
|
PORTDOCS= README
|
|
|
|
|
2010-03-12 19:47:43 +00:00
|
|
|
DESKTOP_ENTRIES= "Slune" \
|
|
|
|
"3D racing game" \
|
|
|
|
"${DATADIR}/images/slune.48.png" \
|
|
|
|
"slune" \
|
|
|
|
"Game;ArcadeGame;" \
|
|
|
|
false
|
|
|
|
|
2014-08-28 02:56:29 +00:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2009-04-27 01:23:46 +00:00
|
|
|
post-extract:
|
|
|
|
.for FILE in slune.po.orig slune.po.rej
|
|
|
|
@${RM} ${WRKSRC}/locale/es/LC_MESSAGES/${FILE}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.for FILE in slune.po-0 slune.sl.mo slune.sl.po slune2.mo slune2.po
|
|
|
|
@${RM} ${WRKSRC}/locale/sl/LC_MESSAGES/${FILE}
|
|
|
|
.endfor
|
|
|
|
|
2006-09-01 19:48:56 +00:00
|
|
|
post-patch:
|
2014-08-28 02:56:29 +00:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
'/install-purelib/s|=.*|= ${PREFIX}/share| ; \
|
|
|
|
/install-scripts/s|=.*|= ${PREFIX}/lib| ; \
|
|
|
|
/install-data/s|=.*|= ${PREFIX}/share|' ${WRKSRC}/setup.cfg
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
'/LC_MESSAGES/s|".",||' ${WRKSRC}/setup.py
|
2006-09-01 19:48:56 +00:00
|
|
|
|
2005-10-09 00:46:39 +00:00
|
|
|
post-install:
|
2014-08-28 02:56:29 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
|
2005-10-09 00:46:39 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|