# Created by: Dmitry Marakasov # $FreeBSD$ PORTNAME= spacejunk PORTVERSION= 1.0.5 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 LICENSE= GPLv3 GNU_CONFIGURE= yes USE_SDL= sdl mixer image 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 NO_STAGE= yes .include .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 ${PREFIX}/libexec/ ${MKDIR} ${DATADIR} cd ${WRKSRC} && ${COPYTREE_SHARE} 'data config.txt' ${DATADIR}/ ${INSTALL_SCRIPT} ${WRKDIR}/spacejunk ${PREFIX}/bin/ .if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} cd ${WRKSRC}/doc && ${COPYTREE_SHARE} '*' ${DOCSDIR}/ .endif .include