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