diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2007-09-23 06:54:54 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2007-09-23 06:54:54 +0000 |
commit | 212716d09a3131a6968c83846fc13f76e077beac (patch) | |
tree | c3356caf079955e794f7f35a3687908717b9ca23 /games/quantumminigolf/Makefile | |
parent | a783654994ff55b4094c7312a715f2f06548bee9 (diff) | |
download | ports-212716d09a3131a6968c83846fc13f76e077beac.tar.gz ports-212716d09a3131a6968c83846fc13f76e077beac.zip |
Notes
Diffstat (limited to 'games/quantumminigolf/Makefile')
-rw-r--r-- | games/quantumminigolf/Makefile | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/games/quantumminigolf/Makefile b/games/quantumminigolf/Makefile new file mode 100644 index 000000000000..8267118a0c08 --- /dev/null +++ b/games/quantumminigolf/Makefile @@ -0,0 +1,56 @@ +# New ports collection makefile for: quantumminigolf +# Date created: 13 Sep 2007 +# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru> +# +# $FreeBSD$ +# + +PORTNAME= quantumminigolf +PORTVERSION= 1.1.0 +CATEGORIES= games +MASTER_SITES= SF +DISTNAME= ${PORTNAME}-${PORTVERSION}.src + +MAINTAINER= amdmi3@amdmi3.ru +COMMENT= A computer game visualizing quantum mechanics + +LIB_DEPENDS= fftw3f:${PORTSDIR}/math/fftw3-float \ + fftw3:${PORTSDIR}/math/fftw3 + +USE_GMAKE= yes +USE_SDL= sdl ttf +MAKE_ARGS= CXX=${CXX} + +PORTDOCS= README THANKS + +OPTIONS= OCFLAGS "Use optimized compiler flags" on + +.include <bsd.port.pre.mk> + +.if !defined(WITHOUT_OCFLAGS) +CXXFLAGS+= -O3 -fomit-frame-pointer -finline-functions -malign-double -funroll-all-loops +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|gfx/|${DATADIR}/&|' ${WRKSRC}/Renderer.cpp + @${REINPLACE_CMD} -e 's|fonts/|${DATADIR}/&|' ${WRKSRC}/Renderer.cpp + @${REINPLACE_CMD} -e 's|tracks/|${DATADIR}/&|' ${WRKSRC}/TrackSelector.cpp + @${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/QuantumSimulator.h + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/quantumminigolf ${PREFIX}/bin + ${MKDIR} ${DATADIR}/gfx ${DATADIR}/fonts ${DATADIR}/tracks + ${INSTALL_DATA} ${WRKSRC}/gfx/*.bmp ${DATADIR}/gfx + ${INSTALL_DATA} ${WRKSRC}/fonts/*.ttf ${DATADIR}/fonts + ${INSTALL_DATA} ${WRKSRC}/tracks/*.bmp ${WRKSRC}/tracks/*.cfg \ + ${DATADIR}/tracks + +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} +.for f in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} +.endfor +.endif + +.include <bsd.port.post.mk> +# DO NOT DELETE |