aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRusmir Dusko <nemysis@FreeBSD.org>2013-10-17 20:25:25 +0000
committerRusmir Dusko <nemysis@FreeBSD.org>2013-10-17 20:25:25 +0000
commitd72c155bfece47ff3bb05920c4c3a9c87ab7146b (patch)
treea3ae2abcb0ff501ecd15b5e40a3c66505ff19eb5
parentd8405967b34cc88e8fca1391f5b9bf351ed87d8c (diff)
downloadports-d72c155bfece47ff3bb05920c4c3a9c87ab7146b.tar.gz
ports-d72c155bfece47ff3bb05920c4c3a9c87ab7146b.zip
Notes
-rw-r--r--games/netwalk/Makefile52
-rw-r--r--games/netwalk/distinfo6
-rw-r--r--games/netwalk/pkg-descr1
-rw-r--r--games/netwalk/pkg-plist9
4 files changed, 34 insertions, 34 deletions
diff --git a/games/netwalk/Makefile b/games/netwalk/Makefile
index d8b56ba14277..c3f63f514e0d 100644
--- a/games/netwalk/Makefile
+++ b/games/netwalk/Makefile
@@ -1,17 +1,12 @@
+# Created by: nemysis <nemysis@gmx.ch>
# $FreeBSD$
PORTNAME= netwalk
PORTVERSION= 0.4.10
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= games
-MASTER_SITES= GITHUB \
- GOOGLE_CODE:icons
-DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
- screenshot-0.4.8.png:icons
-DIST_SUBDIR= ${PORTNAME}
-EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
-
-MAINTAINER= nemysis@gmx.ch
+
+MAINTAINER= nemysis@FreeBSD.org
COMMENT= Game where the object is to connect every terminal to the main server
LICENSE= GPLv3
@@ -20,43 +15,42 @@ USE_GITHUB= yes
GH_ACCOUNT= blynn
GH_PROJECT= ${PORTNAME}
GH_TAGNAME= ${GH_COMMIT}
-GH_COMMIT= 634e7c9
+GH_COMMIT= cb6b089
+USES= gmake iconv
USE_SDL= sdl ttf
-USE_GMAKE= yes
-USES= iconv
USE_XORG= x11 xau xdmcp
+MAKE_ARGS= PREFIX=${STAGEDIR}${PREFIX}
ALL_TARGET=
-CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
-
-PLIST_FILES= bin/${PORTNAME} \
- share/netwalk/Vera.ttf \
- share/pixmaps/${PORTNAME}.png
-PLIST_DIRSTRY= share/netwalk
-
PORTDOCS= README
+INSTALLS_ICONS= yes
+ICON_SIZES= 32x32 48x48 64x64 96x96 128x128
+
DESKTOP_ENTRIES="NetWalk" "${COMMENT}" "${PORTNAME}" \
"${PORTNAME}" "Game;LogicGame;" "false"
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} \
+ -e 's|CC = gcc|CC = ${CC}|' \
+ -e 's|CFLAGS=-Wall -O2 -fomit-frame-pointer|CFLAGS+= -fomit-frame-pointer|' \
-e 's|sdl-config|$(SDL_CONFIG)|' \
- -e 's|CC=gcc|CC?=g++|' \
- -e 's|CFLAGS=-Wall -O2 -fomit-frame-pointer|CFLAGS+=-Wall -O2 -fomit-frame-pointer|' \
-e 's|PREFIX = /usr|PREFIX = ${PREFIX}|' \
${WRKSRC}/Makefile
post-install:
- ${INSTALL_DATA} ${_DISTDIR}/screenshot-0.4.8.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
-
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
-.endif
+.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>
diff --git a/games/netwalk/distinfo b/games/netwalk/distinfo
index 155459f16786..36da28e78a4a 100644
--- a/games/netwalk/distinfo
+++ b/games/netwalk/distinfo
@@ -1,4 +1,2 @@
-SHA256 (netwalk/netwalk-0.4.10.tar.gz) = b7c5ad78e732e103a6ed820970f90dcf91612a8f0e5608dae58725445cda7df7
-SIZE (netwalk/netwalk-0.4.10.tar.gz) = 71244
-SHA256 (netwalk/screenshot-0.4.8.png) = 3a7c6364c77fbff203758eecb6648f876697d41c3b88e0d759af1ab3238fca22
-SIZE (netwalk/screenshot-0.4.8.png) = 1952
+SHA256 (netwalk-0.4.10.tar.gz) = 7665a282d71a4361ba1aacf40f068fe190d1d99540963cab2b3edff605d5f4b0
+SIZE (netwalk-0.4.10.tar.gz) = 91727
diff --git a/games/netwalk/pkg-descr b/games/netwalk/pkg-descr
index b6b304594243..109779498a49 100644
--- a/games/netwalk/pkg-descr
+++ b/games/netwalk/pkg-descr
@@ -5,5 +5,4 @@ also imagine them to be water mains, electricity cables, phone lines, etc.)
In this version, not only must every terminal be connected, but every piece of
cable must also be connected to the main server somehow.
-WWW: https://code.google.com/p/netwalk/
WWW: https://github.com/blynn/netwalk
diff --git a/games/netwalk/pkg-plist b/games/netwalk/pkg-plist
new file mode 100644
index 000000000000..86f318d7ad18
--- /dev/null
+++ b/games/netwalk/pkg-plist
@@ -0,0 +1,9 @@
+bin/netwalk
+share/icons/hicolor/128x128/apps/netwalk.png
+share/icons/hicolor/32x32/apps/netwalk.png
+share/icons/hicolor/48x48/apps/netwalk.png
+share/icons/hicolor/64x64/apps/netwalk.png
+share/icons/hicolor/96x96/apps/netwalk.png
+%%DATADIR%%/Vera.ttf
+share/pixmaps/netwalk.png
+@dirrm %%DATADIR%%