aboutsummaryrefslogtreecommitdiff
path: root/games/icebreaker/Makefile
blob: 2fba3562315dae1432fdd2fadb2702550a374097 (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
# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
# $FreeBSD$

PORTNAME=	icebreaker
PORTVERSION=	1.9.8
PORTREVISION=	1 
CATEGORIES=	games
MASTER_SITES=	http://mattdm.org/icebreaker/1.9.x/ \
		SF/nemysisfreebsdp/games/${PORTNAME}/:icons
DISTFILES=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
		${PORTNAME}.png:icons
EXTRACT_ONLY=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}

MAINTAINER=	games@FreeBSD.org
COMMENT=	Game similar to Jezzball or Barrack

LICENSE=	GPLv2

USES=		gmake tar:tgz
USE_SDL=	mixer sdl

PORTDOCS=	ChangeLog README README.SDL README.ifyoumakechanges \
		README.themes

OPTIONS_DEFINE=	DOCS

SUB_FILES=	pkg-message

post-patch:
	@${REINPLACE_CMD} -e \
	's|CC=gcc|CC?=gcc|; \
	 s|sdl-config|$(SDL_CONFIG)|; \
	 s|prefix=/usr/local|prefix=${STAGEDIR}${PREFIX}|; \
	 s|datadir=$$(prefix)/share|datadir=${STAGEDIR}${PREFIX}/share|; \
	 s|mandir=$$(prefix)/share/man|mandir=${STAGEDIR}${PREFIX}/man|; \
	 s|highscoredir=/var/local/lib/games|highscoredir=/var/games|; \
	 s|CFLAGS=|CFLAGS+=|; \
	 s|OPTIMIZE=-O3|OPTIMIZE=|; \
	 s|$$(CC) $$(CFLAGS)|$$(CC) $$(LDFLAGS) $$(CFLAGS)|; \
	 s|install -s -g games|install -g games|; \
	 s|install -s -m 755|install -m 755|; \
	 s|chown -f games:games|chown -f root:games|; \
	 s|$$(SRC:.c=.d)|$$(SRC:.c)|' \
		${WRKSRC}/Makefile

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
	${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
		${STAGEDIR}${PREFIX}/share/pixmaps/
	${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}

	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>