summaryrefslogtreecommitdiffstats
path: root/games/xinvaders/Makefile
blob: 1a094f4430760d62e55139414b051d57f679c124 (plain)
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
# Created by: swallace
# $FreeBSD$

PORTNAME=	xinvaders
PORTVERSION=	2.1.1
PORTREVISION=	10
CATEGORIES=	games
MASTER_SITES=	SUNSITE/games/arcade/invaders

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Shoot-em-up them nasty little bugs

NO_CDROM=	don't sell for profit

USES=		gettext
USE_XORG=	x11 xmu xaw xt
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--enable-scorefile=/var/games/xinvaders.scores

CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib -lintl

DESKTOP_ENTRIES="XInvaders" "Space Invaders game for X" \
		"${PREFIX}/share/pixmaps/${PORTNAME}.xpm" "${PORTNAME}" "" ""

post-patch:
	@${REINPLACE_CMD} -e \
		's|$$(prefix)/games|$$(prefix)/bin| ; \
		 /install-exec-am:/s|install-exec-local|| ; \
		 /install-data-am:/s|install-data-local||' ${WRKSRC}/Makefile.in

post-install:
	(cd ${FILESDIR} && ${INSTALL_DATA} Vaders.ad \
		${STAGEDIR}${PREFIX}/lib/X11/app-defaults/Vaders)
	(cd ${WRKSRC} && ${INSTALL_DATA} icon.xpm \
		${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.xpm)
	${MKDIR} ${STAGEDIR}/var/games
	${ECHO_CMD} "0" > ${STAGEDIR}/var/games/xinvaders.scores.sample

.include <bsd.port.mk>
OpenPOWER on IntegriCloud