Update editors/libreoffice-sr_Latn to version 5.2.5
[dports.git] / games / netwalk / Makefile
1 # Created by: Rusmir Dusko <nemysis@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       netwalk
5 PORTVERSION=    0.4.11
6 PORTREVISION=   2
7 CATEGORIES=     games
8
9 MAINTAINER=     nemysis@FreeBSD.org
10 COMMENT=        Game where the object is to connect every terminal to the main server
11
12 LICENSE=        GPLv3+
13 LICENSE_FILE=   ${WRKSRC}/LICENSE
14
15 USE_GITHUB=     yes
16 GH_ACCOUNT=     blynn
17 GH_TAGNAME=     cb6b089
18
19 USES=           gmake iconv
20 USE_SDL=        sdl ttf
21 USE_XORG=       x11 xau xdmcp
22 MAKE_ARGS=      PREFIX=${STAGEDIR}${PREFIX}
23 ALL_TARGET=
24
25 PORTDOCS=       README
26 OPTIONS_DEFINE= DOCS
27
28 INSTALLS_ICONS= yes
29 ICON_SIZES=     32x32 48x48 64x64 96x96 128x128
30
31 DESKTOP_ENTRIES="NetWalk" "" "${PORTNAME}" \
32                 "${PORTNAME}" "Game;LogicGame;" ""
33
34 post-patch:
35         @${REINPLACE_CMD} -e \
36         's|CC = gcc|CC = ${CC}|; \
37          s|CFLAGS=-Wall -O2 -fomit-frame-pointer|CFLAGS+= -fomit-frame-pointer|; \
38          s|sdl-config|${SDL_CONFIG}|; \
39          s|PREFIX = /usr|PREFIX = ${PREFIX}|' \
40                 ${WRKSRC}/Makefile
41
42 post-install:
43         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
44
45 .for s in ${ICON_SIZES}
46         @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/
47         ${INSTALL_DATA} ${WRKSRC}/icons/${PORTNAME}_${s}.png \
48                 ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
49 .endfor
50         ${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
51                 ${STAGEDIR}${PREFIX}/share/pixmaps/
52
53         @${MKDIR} ${STAGEDIR}${DOCSDIR}
54         ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
55
56 .include <bsd.port.mk>