2007-09-23 08:54:54 +02:00
|
|
|
# New ports collection makefile for: quantumminigolf
|
|
|
|
# Date created: 13 Sep 2007
|
|
|
|
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= quantumminigolf
|
2010-09-01 18:03:13 +02:00
|
|
|
PORTVERSION= 1.1.1
|
2007-09-23 08:54:54 +02:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= SF
|
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}.src
|
|
|
|
|
2008-06-19 19:28:24 +02:00
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
2007-09-23 08:54:54 +02:00
|
|
|
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
|
|
|
|
|
2010-09-01 18:03:13 +02:00
|
|
|
DESKTOP_ENTRIES="Quantum Minigolf" \
|
|
|
|
"A game of minigolf where the ball obeys the laws of quantum mechanics" \
|
|
|
|
"${DATADIR}/gfx/icon.bmp" \
|
|
|
|
"quantumminigolf" \
|
|
|
|
"Game;ArcadeGame;" \
|
|
|
|
false
|
|
|
|
|
2007-09-23 08:54:54 +02:00
|
|
|
OPTIONS= OCFLAGS "Use optimized compiler flags" on
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_OCFLAGS)
|
2007-09-25 13:22:58 +02:00
|
|
|
CXXFLAGS+= -O3 -fomit-frame-pointer -finline-functions -funroll-all-loops
|
|
|
|
. if ${ARCH} == "i386"
|
|
|
|
CXXFLAGS+= -malign-double
|
|
|
|
. endif
|
2007-09-23 08:54:54 +02:00
|
|
|
.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>
|