summaryrefslogtreecommitdiff
path: root/games/quantumminigolf
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2007-09-23 06:54:54 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2007-09-23 06:54:54 +0000
commit212716d09a3131a6968c83846fc13f76e077beac (patch)
treec3356caf079955e794f7f35a3687908717b9ca23 /games/quantumminigolf
parentmaintainer update: math/qtiplot (diff)
[NEW PORT] games/quantumminigolf: A computer game visualizing quantum mechanics
The game quantum minigolf is nearly the same as the game minigolf - except that the ball obeys the laws of quantum mechanics. Such a ball can be at several places at once. It can diffract around obstacles and interfere with itself. Apart from that, the rules are the same: You can play on various tracks involving various obstacles. You hit the ball with a club and try to kick it into a hole on the other side of the track. WWW: http://quantumminigolf.sourceforge.net PR: ports/116501 Submitted by: Dmitry Marakasov <amdmi3@amdmi3.ru>
Notes
Notes: svn path=/head/; revision=199958
Diffstat (limited to 'games/quantumminigolf')
-rw-r--r--games/quantumminigolf/Makefile56
-rw-r--r--games/quantumminigolf/Makefile.bak55
-rw-r--r--games/quantumminigolf/distinfo3
-rw-r--r--games/quantumminigolf/files/patch-Makefile30
-rw-r--r--games/quantumminigolf/pkg-descr10
-rw-r--r--games/quantumminigolf/pkg-plist37
6 files changed, 191 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
diff --git a/games/quantumminigolf/Makefile.bak b/games/quantumminigolf/Makefile.bak
new file mode 100644
index 000000000000..5352d792b71d
--- /dev/null
+++ b/games/quantumminigolf/Makefile.bak
@@ -0,0 +1,55 @@
+# 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>
diff --git a/games/quantumminigolf/distinfo b/games/quantumminigolf/distinfo
new file mode 100644
index 000000000000..1cc569f0d577
--- /dev/null
+++ b/games/quantumminigolf/distinfo
@@ -0,0 +1,3 @@
+MD5 (quantumminigolf-1.1.0.src.tar.gz) = 96689f94b4519bc8487c26c9941bf225
+SHA256 (quantumminigolf-1.1.0.src.tar.gz) = 31cbf1a4a024986b99fe928d0fd95e4e774e127cd4ba285438add7df03f6cc68
+SIZE (quantumminigolf-1.1.0.src.tar.gz) = 465432
diff --git a/games/quantumminigolf/files/patch-Makefile b/games/quantumminigolf/files/patch-Makefile
new file mode 100644
index 000000000000..c3cf7a969770
--- /dev/null
+++ b/games/quantumminigolf/files/patch-Makefile
@@ -0,0 +1,30 @@
+--- Makefile.orig Mon Aug 6 22:54:58 2007
++++ Makefile Thu Sep 13 20:51:10 2007
+@@ -7,9 +7,9 @@
+ SRCDIR = .
+
+ CC = cc
+-LDFLAGS = -L/usr/lib -L/usr/local/lib -lm -lSDL -lSDL_ttf -lfftw3f
+-INCFLAGS = -I/usr/include/SDL
+-CFLAGS = -O3 -fomit-frame-pointer -finline-functions -Wall -Wno-unused -malign-double -funroll-all-loops -DLINUX
++LDFLAGS = -L${LOCALBASE}/lib -lm `${SDL_CONFIG} --libs` -lSDL_ttf -lfftw3f
++INCFLAGS = -I${LOCALBASE}/include -I${LOCALBASE}/include/SDL
++CXXFLAGS += -Wall -Wno-unused -DLINUX
+ LDSOFLAGS = -Wl
+
+ OBJS = quantumminigolf.o Renderer.o ClassicSimulator.o QuantumSimulator.o SoftwareTracker.o Tracker.o TrackSelector.o
+@@ -18,12 +18,12 @@
+ # pattern rule to compile object files from C files
+ # might not work with make programs other than GNU make
+ %.o : %.cpp Makefile
+- $(CC) $(INCFLAGS) $(CFLAGS) -c $< -o $@
++ $(CXX) $(INCFLAGS) $(CXXFLAGS) -c $< -o $@
+
+ all: $(EXE)
+
+ $(EXE): $(OBJS) Makefile
+- $(CC) -o $(EXE) $(OBJS) $(LDFLAGS) $(CFLAGS)
++ $(CXX) -o $(EXE) $(OBJS) $(LDFLAGS) $(CXXFLAGS)
+
+ .PHONY : clean
+ clean:
diff --git a/games/quantumminigolf/pkg-descr b/games/quantumminigolf/pkg-descr
new file mode 100644
index 000000000000..11608a38f64d
--- /dev/null
+++ b/games/quantumminigolf/pkg-descr
@@ -0,0 +1,10 @@
+The game quantum minigolf is nearly the same as the game minigolf
+- except that the ball obeys the laws of quantum mechanics.
+
+Such a ball can be at several places at once. It can diffract around
+obstacles and interfere with itself. Apart from that, the rules are
+the same: You can play on various tracks involving various obstacles.
+You hit the ball with a club and try to kick it into a hole on the
+other side of the track.
+
+WWW: http://quantumminigolf.sourceforge.net
diff --git a/games/quantumminigolf/pkg-plist b/games/quantumminigolf/pkg-plist
new file mode 100644
index 000000000000..15f02ed5fa01
--- /dev/null
+++ b/games/quantumminigolf/pkg-plist
@@ -0,0 +1,37 @@
+bin/quantumminigolf
+%%DATADIR%%/fonts/default.ttf
+%%DATADIR%%/gfx/cmap.bmp
+%%DATADIR%%/gfx/cmap_mono.bmp
+%%DATADIR%%/gfx/icon.bmp
+%%DATADIR%%/gfx/lose.bmp
+%%DATADIR%%/gfx/win.bmp
+%%DATADIR%%/tracks/babinet.bmp
+%%DATADIR%%/tracks/babinet_hard.bmp
+%%DATADIR%%/tracks/babinet_soft.bmp
+%%DATADIR%%/tracks/bragg.bmp
+%%DATADIR%%/tracks/bump.bmp
+%%DATADIR%%/tracks/bump_hard.bmp
+%%DATADIR%%/tracks/bump_soft.bmp
+%%DATADIR%%/tracks/crystal.bmp
+%%DATADIR%%/tracks/crystal_hard.bmp
+%%DATADIR%%/tracks/crystal_soft.bmp
+%%DATADIR%%/tracks/doubleslit.bmp
+%%DATADIR%%/tracks/doubleslit_hard.bmp
+%%DATADIR%%/tracks/doubleslit_soft.bmp
+%%DATADIR%%/tracks/empty.bmp
+%%DATADIR%%/tracks/empty_hard.bmp
+%%DATADIR%%/tracks/empty_soft.bmp
+%%DATADIR%%/tracks/hill.bmp
+%%DATADIR%%/tracks/hill_hard.bmp
+%%DATADIR%%/tracks/hill_soft.bmp
+%%DATADIR%%/tracks/stadium.bmp
+%%DATADIR%%/tracks/stadium_hard.bmp
+%%DATADIR%%/tracks/stadium_soft.bmp
+%%DATADIR%%/tracks/tracks.cfg
+%%DATADIR%%/tracks/tunnel.bmp
+%%DATADIR%%/tracks/tunnel_hard.bmp
+%%DATADIR%%/tracks/tunnel_soft.bmp
+@dirrm %%DATADIR%%/tracks
+@dirrm %%DATADIR%%/gfx
+@dirrm %%DATADIR%%/fonts
+@dirrm %%DATADIR%%