mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
4376dbbb58
FLAVOR is the current port's flavor, it should not be used outside of this scope. Sponsored by: Absolight
51 lines
1.4 KiB
Makefile
51 lines
1.4 KiB
Makefile
# Created by: Patrick Li <pat@databits.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= glchess
|
|
PORTVERSION= 1.0.6
|
|
PORTREVISION= 11
|
|
CATEGORIES= games
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= 3D OpenGL based chess game
|
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/gdkgl/__init__.py:x11-toolkits/py-gtkglext@${PY_FLAVOR}
|
|
|
|
USES= desktop-file-utils python:2.7 shared-mime-info
|
|
USE_GNOME= gconf2
|
|
USE_PYTHON= distutils
|
|
GCONF_SCHEMAS= glchess.schemas
|
|
|
|
OPTIONS_DEFINE= DOCS NLS
|
|
OPTIONS_SUB= yes
|
|
NLS_USES= gettext
|
|
NLS_CONFIGURE_ENABLE= nls
|
|
|
|
post-patch:
|
|
@${GREP} -lR "/usr/share/games/glchess" ${WRKSRC} | ${XARGS} \
|
|
${REINPLACE_CMD} -e 's|/usr/share/games/glchess|${DATADIR}|g'
|
|
@${REINPLACE_CMD} -e 's|share/games/glchess|share/glchess|g ; \
|
|
s|share/gconf/schemas|etc/gconf/schemas|g' ${WRKSRC}/setup.py
|
|
|
|
post-build-NLS-on:
|
|
@(for lang in `${MAKE} -f ${WRKSRC}/Makefile -V LANGUAGES` ; do \
|
|
cd ${WRKSRC}/po ; \
|
|
${LOCALBASE}/bin/msgfmt $$lang.po -o $$lang.mo ; \
|
|
done)
|
|
|
|
post-install-NLS-on:
|
|
@(for lang in `${MAKE} -f ${WRKSRC}/Makefile -V LANGUAGES` ; do \
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/$$lang/LC_MESSAGES ; \
|
|
${INSTALL_DATA} ${WRKSRC}/po/$$lang.mo \
|
|
${STAGEDIR}${PREFIX}/share/locale/$$lang/LC_MESSAGES/glchess.mo ; \
|
|
done)
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for file in ChangeLog README TODO
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|