1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/games/xinvaders/Makefile
Pawel Pekala a75421eaf8 - Fix build with clang [1]
- Add desktop entry file [1]
- Support staging [1]
- Save highscores in /var/games

PR:		ports/184876 [1]
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2013-12-25 17:10:20 +00:00

40 lines
1.0 KiB
Makefile

# Created by: swallace
# $FreeBSD$
PORTNAME= xinvaders
PORTVERSION= 2.1.1
PORTREVISION= 9
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}${DATADIR}
.include <bsd.port.mk>