blob: 8d191ca8fa3878af836149d9ac8b558322043335 (
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
57
58
59
60
61
|
# $FreeBSD$
PORTNAME= netwalk
PORTVERSION= 0.4.10
PORTREVISION= 2
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
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= 634e7c9
USE_SDL= sdl ttf
USE_GMAKE= yes
USES= iconv
USE_XORG= x11 xau xdmcp
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
DESKTOP_ENTRIES="NetWalk" "${COMMENT}" "${PORTNAME}" \
"${PORTNAME}" "Game;LogicGame;" "false"
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} \
-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
.include <bsd.port.mk>
|