aboutsummaryrefslogtreecommitdiff
path: root/games/xemeraldia/Makefile
diff options
context:
space:
mode:
authorRusmir Dusko <nemysis@FreeBSD.org>2014-03-30 23:53:34 +0000
committerRusmir Dusko <nemysis@FreeBSD.org>2014-03-30 23:53:34 +0000
commita589fad3dc9d149937fc8f03d33bd1fe10deb108 (patch)
tree5c5929a4a1354693c5d8bef282241350dcd3780e /games/xemeraldia/Makefile
parent83ce4cb0c18114493ee7ada914f88b757326da39 (diff)
Notes
Diffstat (limited to 'games/xemeraldia/Makefile')
-rw-r--r--games/xemeraldia/Makefile51
1 files changed, 51 insertions, 0 deletions
diff --git a/games/xemeraldia/Makefile b/games/xemeraldia/Makefile
new file mode 100644
index 000000000000..213b00fb6559
--- /dev/null
+++ b/games/xemeraldia/Makefile
@@ -0,0 +1,51 @@
+# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= xemeraldia
+PORTVERSION= 0.4.3
+CATEGORIES= games
+MASTER_SITES= http://www.reloco.com.ar/xemeraldia/ \
+ SUNSITE/games/tetris \
+ SF/nemysisfreebsdp/${CATEGORIES}/:icons
+DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
+ ${PORTNAME}.png:icons
+EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
+
+MAINTAINER= nemysis@FreeBSD.org
+COMMENT= Falling blocks game
+
+USES= pkgconfig
+USE_GNOME= cairo gtk20
+GNU_CONFIGURE= yes
+
+PLIST_FILES= bin/${PORTNAME} \
+ ${DESKTOPDIR}/${PORTNAME}.desktop \
+ %%NLS%%share/locale/es/LC_MESSAGES/${PORTNAME}.mo \
+ %%NLS%%share/locale/gl/LC_MESSAGES/${PORTNAME}.mo \
+ share/pixmaps/${PORTNAME}.png \
+ share/pixmaps/${PORTNAME}.xpm
+
+PORTDOCS= NEWS README
+OPTIONS_DEFINE= DOCS NLS
+OPTIONS_SUB= yes
+
+NLS_CONFIGURE_ENABLE= nls
+NLS_USES= gettext
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|$${prefix}/games|$${prefix}/bin|; \
+ s|/var/games/x|.x|; \
+ s|) install-data-hook|)|' \
+ ${WRKSRC}/Makefile.in
+ @${REINPLACE_CMD} -e 's|@prefix@/games/||; \
+ s|^Icon.*|Icon=${PORTNAME}|' \
+ ${WRKSRC}/xemeraldia.desktop.in
+
+post-install:
+ ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
+ ${STAGEDIR}${PREFIX}/share/pixmaps/
+
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>