2013-04-30 00:27:05 +02:00
|
|
|
# Created by: Patrick Li <pat@databits.net>
|
2001-07-30 01:33:22 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= glchess
|
2007-08-17 13:56:55 +02:00
|
|
|
PORTVERSION= 1.0.6
|
2014-09-10 22:50:31 +02:00
|
|
|
PORTREVISION= 10
|
2001-07-30 01:33:22 +02:00
|
|
|
CATEGORIES= games
|
2009-08-22 02:23:13 +02:00
|
|
|
MASTER_SITES= SF
|
2001-07-30 01:33:22 +02:00
|
|
|
|
2014-06-11 20:55:29 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2014-06-13 09:36:27 +02:00
|
|
|
COMMENT= 3D OpenGL based chess game
|
2001-07-30 01:33:22 +02:00
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/gdkgl/__init__.py:x11-toolkits/py-gtkglext
|
2001-07-30 01:33:22 +02:00
|
|
|
|
2014-10-20 19:36:02 +02:00
|
|
|
USES= desktop-file-utils python shared-mime-info
|
2007-01-17 21:44:32 +01:00
|
|
|
USE_GNOME= gconf2
|
2014-10-20 19:36:02 +02:00
|
|
|
USE_PYTHON= distutils
|
2007-01-17 21:44:32 +01:00
|
|
|
GCONF_SCHEMAS= glchess.schemas
|
2014-10-31 15:44:13 +01:00
|
|
|
|
2014-02-21 14:36:56 +01:00
|
|
|
OPTIONS_DEFINE= DOCS NLS
|
2014-10-31 15:44:13 +01:00
|
|
|
OPTIONS_SUB= yes
|
|
|
|
NLS_USES= gettext
|
|
|
|
NLS_CONFIGURE_ENABLE= nls
|
2014-02-10 14:54:26 +01:00
|
|
|
|
2013-04-30 00:27:05 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2006-04-20 07:34:37 +02:00
|
|
|
post-patch:
|
2006-07-19 22:41:09 +02:00
|
|
|
@${GREP} -lR "/usr/share/games/glchess" ${WRKSRC} | ${XARGS} \
|
|
|
|
${REINPLACE_CMD} -e 's|/usr/share/games/glchess|${DATADIR}|g'
|
2007-01-17 21:44:32 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|share/games/glchess|share/glchess|g ; \
|
|
|
|
s|share/gconf/schemas|etc/gconf/schemas|g' ${WRKSRC}/setup.py
|
2006-06-11 21:22:10 +02:00
|
|
|
|
2006-07-19 22:41:09 +02:00
|
|
|
post-build:
|
2014-10-31 15:44:13 +01:00
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2006-12-21 23:33:50 +01:00
|
|
|
@(for lang in `${MAKE} -f ${WRKSRC}/Makefile -V LANGUAGES` ; do \
|
|
|
|
cd ${WRKSRC}/po ; \
|
|
|
|
${LOCALBASE}/bin/msgfmt $$lang.po -o $$lang.mo ; \
|
|
|
|
done)
|
2014-10-31 15:44:13 +01:00
|
|
|
.endif
|
2006-06-25 18:25:23 +02:00
|
|
|
|
2006-07-19 22:41:09 +02:00
|
|
|
post-install:
|
2014-10-31 15:44:13 +01:00
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2006-12-21 23:33:50 +01:00
|
|
|
@(for lang in `${MAKE} -f ${WRKSRC}/Makefile -V LANGUAGES` ; do \
|
2014-07-09 14:59:43 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/$$lang/LC_MESSAGES ; \
|
2006-12-21 23:33:50 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/po/$$lang.mo \
|
2014-07-09 14:59:43 +02:00
|
|
|
${STAGEDIR}${PREFIX}/share/locale/$$lang/LC_MESSAGES/glchess.mo ; \
|
2006-12-21 23:33:50 +01:00
|
|
|
done)
|
2014-10-31 15:44:13 +01:00
|
|
|
.endif
|
2014-07-09 14:59:43 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2001-07-30 01:33:22 +02:00
|
|
|
.for file in ChangeLog README TODO
|
2014-07-09 14:59:43 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
|
2001-07-30 01:33:22 +02:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|