mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-06 01:57:40 +00:00
6f6fbe4bdf
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead PR: 157936 Submitted by: myself Exp-runs by: pav Approved by: pav
66 lines
1.6 KiB
Makefile
66 lines
1.6 KiB
Makefile
# New ports collection makefile for: spacejunk
|
|
# Date created: 21 Jan 2010
|
|
# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= spacejunk
|
|
PORTVERSION= 1.0.4
|
|
PORTREVISION= 1
|
|
CATEGORIES= games
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
COMMENT= A video game about traveling in 2D planetary systems
|
|
|
|
USE_SDL= sdl mixer image
|
|
USE_AUTOTOOLS= automake
|
|
AUTOMAKE_ARGS= -i --add-missing
|
|
GNU_CONFIGURE= yes
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
CONFIGURE_ENV= LIBS="${PTHREAD_LIBS}"
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
SUB_FILES= spacejunk
|
|
|
|
PORTDOCS= *
|
|
|
|
DESKTOP_ENTRIES= "Spacejunk" \
|
|
"Collect garbage by navigating through the gravitational fields of planets and stars" \
|
|
"" \
|
|
"spacejunk" \
|
|
"Game;ArcadeGame;" \
|
|
false
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "sparc64"
|
|
BROKEN= Doesn't compile on sparc64"
|
|
.endif
|
|
|
|
AUTOTOOLSFILES= aclocal.m4
|
|
|
|
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*
|
|
@${RM} -f ${WRKSRC}/config.guess
|
|
@${REINPLACE_CMD} -e 's|1.10.1|%%AUTOMAKE_APIVER%%|g' \
|
|
-e 's|1.10|%%AUTOMAKE_VERSION%%|g' \
|
|
${WRKSRC}/aclocal.m4
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/spacejunk ${PREFIX}/libexec/
|
|
${MKDIR} ${DATADIR}
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} 'data config.txt' ${DATADIR}/
|
|
${INSTALL_SCRIPT} ${WRKDIR}/spacejunk ${PREFIX}/bin/
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} '*' ${DOCSDIR}/
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|