1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00
freebsd-ports/games/netwalk/Makefile
Rusmir Dusko 202ad52f88 - Update to 0.4.11, Announce message:
Use intptr_t to stop compiler warnings.

 Making a release because of the icons by Rusmir Dusko

- Change patch, advice by upstream
2014-05-13 06:29:56 +00:00

57 lines
1.4 KiB
Makefile

# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$
PORTNAME= netwalk
PORTVERSION= 0.4.11
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
OPTIONS_DEFINE= DOCS
INSTALLS_ICONS= yes
ICON_SIZES= 32x32 48x48 64x64 96x96 128x128
DESKTOP_ENTRIES="NetWalk" "" "${PORTNAME}" \
"${PORTNAME}" "Game;LogicGame;" ""
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:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.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>