Update games/hexalate to version 1.1.6
[dports.git] / games / xemeraldia / Makefile
1 # Created by: Steven Wallace <swallace@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       xemeraldia
5 PORTVERSION=    0.4.3
6 PORTREVISION=   1
7 CATEGORIES=     games
8 MASTER_SITES=   http://www.reloco.com.ar/xemeraldia/ \
9                 SUNSITE/games/tetris \
10                 SF/nemysisfreebsdp/${CATEGORIES}/:icons
11 DISTFILES=      ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
12                 ${PORTNAME}.png:icons
13 EXTRACT_ONLY=   ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
14
15 MAINTAINER=     ports@FreeBSD.org
16 COMMENT=        Falling blocks game
17
18 USES=           gnome pkgconfig
19 USE_GNOME=      cairo gtk20
20 GNU_CONFIGURE=  yes
21
22 PLIST_FILES=    bin/${PORTNAME} \
23                 ${DESKTOPDIR}/${PORTNAME}.desktop \
24                 %%NLS%%share/locale/es/LC_MESSAGES/${PORTNAME}.mo \
25                 %%NLS%%share/locale/gl/LC_MESSAGES/${PORTNAME}.mo \
26                 share/pixmaps/${PORTNAME}.png \
27                 share/pixmaps/${PORTNAME}.xpm
28
29 PORTDOCS=       NEWS README
30 OPTIONS_DEFINE= DOCS NLS
31 OPTIONS_SUB=    yes
32
33 NLS_CONFIGURE_ENABLE=   nls
34 NLS_USES=       gettext
35
36 post-patch:
37         @${REINPLACE_CMD} -e 's|$${prefix}/games|$${prefix}/bin|; \
38                 s|/var/games/x|.x|; \
39                 s|) install-data-hook|)|' \
40                 ${WRKSRC}/Makefile.in
41         @${REINPLACE_CMD} -e 's|@prefix@/games/||; \
42                 s|^Icon.*|Icon=${PORTNAME}|' \
43                 ${WRKSRC}/xemeraldia.desktop.in
44
45 post-install:
46         ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
47                 ${STAGEDIR}${PREFIX}/share/pixmaps/
48
49         @${MKDIR} ${STAGEDIR}${DOCSDIR}
50         ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
51
52 .include <bsd.port.mk>