freebsd-ports/games/spacejunk/Makefile
Jimmy Olgeni 5e38556079 Remove indefinite articles and trailing periods from COMMENT, plus
minor COMMENT typos and surrounding whitespace fixes. Categories G-I.

CR:		D201
Approved by:	portmgr (bapt)
2014-06-13 07:36:27 +00:00

53 lines
1.3 KiB
Makefile

# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
PORTNAME= spacejunk
PORTVERSION= 1.0.5
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Video game about traveling in 2D planetary systems
LICENSE= GPLv3
GNU_CONFIGURE= yes
USE_SDL= sdl mixer image
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
SUB_FILES= spacejunk
PLIST_FILES= bin/${PORTNAME} libexec/${PORTNAME}
PORTDOCS= *
PORTDATA= *
DESKTOP_ENTRIES="Spacejunk" \
"Collect garbage by navigating through the gravitational fields of planets and stars" \
"${DATADIR}/data/art/spacejunk_icon.png" \
"spacejunk" \
"Game;ArcadeGame;" \
false
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
.if ${ARCH} == "sparc64"
BROKEN= Doesn't compile on sparc64
.endif
post-patch:
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/src/gem-uta.c \
${WRKSRC}/libinfo/gem-uta.c
@${REINPLACE_CMD} -e 's|data/|${DATADIR}/&|' ${WRKSRC}/src/*.c*
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/spacejunk ${STAGEDIR}${PREFIX}/libexec/
cd ${WRKSRC} && ${COPYTREE_SHARE} 'data config.txt' ${STAGEDIR}${DATADIR}/
${INSTALL_SCRIPT} ${WRKDIR}/spacejunk ${STAGEDIR}${PREFIX}/bin/
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>