1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/games/glchess/Makefile
Vanilla I. Shu 2128177252 1: Stagify.
2: add INSTALLS_EGGINFO, bump version.
2014-07-09 12:59:43 +00:00

57 lines
1.5 KiB
Makefile

# Created by: Patrick Li <pat@databits.net>
# $FreeBSD$
PORTNAME= glchess
PORTVERSION= 1.0.6
PORTREVISION= 9
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:${PORTSDIR}/x11-toolkits/py-gtkglext
USES= desktop-file-utils shared-mime-info
USE_GNOME= gconf2
USE_PYTHON= yes
USE_PYDISTUTILS= yes
INSTALLS_EGGINFO= yes
GCONF_SCHEMAS= glchess.schemas
OPTIONS_DEFINE= DOCS NLS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
PLIST_SUB+= NLS=""
USES+= gettext
.else
PLIST_SUB+= NLS="@comment"
CONFIGURE_ARGS+= --disable-nls
.endif
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:
@(for lang in `${MAKE} -f ${WRKSRC}/Makefile -V LANGUAGES` ; do \
cd ${WRKSRC}/po ; \
${LOCALBASE}/bin/msgfmt $$lang.po -o $$lang.mo ; \
done)
post-install:
@(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)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in ChangeLog README TODO
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>