diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2010-02-13 17:35:12 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2010-02-13 17:35:12 +0000 |
commit | ef76f9c4e336efd674a27a6de163eef41bda8459 (patch) | |
tree | 07ed631ad36d3334639602b8f4f56f0c3df1d315 /games/spacejunk/Makefile | |
parent | 3b28dc46b4ffb2ecc6dc680e1cc6d77069a657fd (diff) | |
download | ports-ef76f9c4e336efd674a27a6de163eef41bda8459.tar.gz ports-ef76f9c4e336efd674a27a6de163eef41bda8459.zip |
Notes
Diffstat (limited to 'games/spacejunk/Makefile')
-rw-r--r-- | games/spacejunk/Makefile | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/games/spacejunk/Makefile b/games/spacejunk/Makefile new file mode 100644 index 000000000000..0351cd0563dd --- /dev/null +++ b/games/spacejunk/Makefile @@ -0,0 +1,42 @@ +# New ports collection makefile for: spacejunk +# Date created: 21 Jan 2010 +# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= spacejunk +PORTVERSION= 1.0.3 +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 +GNU_CONFIGURE= yes +MAKE_JOBS_SAFE= yes + +CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" CPPFLAGS="-I${LOCALBASE}/include" \ + LIBS="${PTHREAD_LIBS}" + +SUB_FILES= spacejunk + +PORTDOCS= * + +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 !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + cd ${WRKSRC}/doc && ${COPYTREE_SHARE} '*' ${DOCSDIR}/ +.endif + +.include <bsd.port.mk> |