Have you ever wanted to blow something up? Or maybe you always
dreamt of operating an atomic power plant? Do you have a will to
develop your own CPU? The Powder Toy lets you to do all of these,
and even more!
The Powder Toy is a free physics sandbox game, which simulates air
pressure and velocity, heat, gravity and a countless number of
interactions between different substances! The game provides you
with various building materials, liquids, gases and electronic
components which can be used to construct complex machines, guns,
bombs, realistic terrains and almost anything else. You can then
mine them and watch cool explosions, add intricate wirings, play
with little stickmen or operate your machine. You can browse and
play thousands of different saves made by the community or upload
your own - we welcome your creations!
WWW: http://powdertoy.co.uk/
2017-03-28 13:49:55 +00:00
|
|
|
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= powder-toy
|
2020-03-29 14:57:46 +00:00
|
|
|
PORTVERSION= 95.0
|
Have you ever wanted to blow something up? Or maybe you always
dreamt of operating an atomic power plant? Do you have a will to
develop your own CPU? The Powder Toy lets you to do all of these,
and even more!
The Powder Toy is a free physics sandbox game, which simulates air
pressure and velocity, heat, gravity and a countless number of
interactions between different substances! The game provides you
with various building materials, liquids, gases and electronic
components which can be used to construct complex machines, guns,
bombs, realistic terrains and almost anything else. You can then
mine them and watch cool explosions, add intricate wirings, play
with little stickmen or operate your machine. You can browse and
play thousands of different saves made by the community or upload
your own - we welcome your creations!
WWW: http://powdertoy.co.uk/
2017-03-28 13:49:55 +00:00
|
|
|
DISTVERSIONPREFIX= v
|
|
|
|
CATEGORIES= games
|
|
|
|
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
|
|
COMMENT= 'Falling sand' physics sandbox with air pressure and velocity support
|
|
|
|
|
|
|
|
LICENSE= GPLv3
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
|
|
|
LIB_DEPENDS= libfftw3f.so:math/fftw3-float \
|
|
|
|
libfftw3.so:math/fftw3
|
|
|
|
|
|
|
|
USE_GITHUB= yes
|
2017-09-26 18:05:38 +00:00
|
|
|
GH_ACCOUNT= ThePowderToy
|
Have you ever wanted to blow something up? Or maybe you always
dreamt of operating an atomic power plant? Do you have a will to
develop your own CPU? The Powder Toy lets you to do all of these,
and even more!
The Powder Toy is a free physics sandbox game, which simulates air
pressure and velocity, heat, gravity and a countless number of
interactions between different substances! The game provides you
with various building materials, liquids, gases and electronic
components which can be used to construct complex machines, guns,
bombs, realistic terrains and almost anything else. You can then
mine them and watch cool explosions, add intricate wirings, play
with little stickmen or operate your machine. You can browse and
play thousands of different saves made by the community or upload
your own - we welcome your creations!
WWW: http://powdertoy.co.uk/
2017-03-28 13:49:55 +00:00
|
|
|
GH_PROJECT= The-Powder-Toy
|
|
|
|
|
2019-02-21 13:55:08 +00:00
|
|
|
USES= compiler:c++11-lang scons sdl localbase:ldflags lua:51 pkgconfig
|
|
|
|
USE_SDL= sdl2
|
Have you ever wanted to blow something up? Or maybe you always
dreamt of operating an atomic power plant? Do you have a will to
develop your own CPU? The Powder Toy lets you to do all of these,
and even more!
The Powder Toy is a free physics sandbox game, which simulates air
pressure and velocity, heat, gravity and a countless number of
interactions between different substances! The game provides you
with various building materials, liquids, gases and electronic
components which can be used to construct complex machines, guns,
bombs, realistic terrains and almost anything else. You can then
mine them and watch cool explosions, add intricate wirings, play
with little stickmen or operate your machine. You can browse and
play thousands of different saves made by the community or upload
your own - we welcome your creations!
WWW: http://powdertoy.co.uk/
2017-03-28 13:49:55 +00:00
|
|
|
|
|
|
|
MAKE_ENV= LINKFLAGS="${LINKFLAGS}"
|
|
|
|
|
|
|
|
SUB_FILES= ${PORTNAME}.sh
|
|
|
|
|
2017-07-27 09:58:57 +00:00
|
|
|
PORTDOCS= README.md TODO
|
Have you ever wanted to blow something up? Or maybe you always
dreamt of operating an atomic power plant? Do you have a will to
develop your own CPU? The Powder Toy lets you to do all of these,
and even more!
The Powder Toy is a free physics sandbox game, which simulates air
pressure and velocity, heat, gravity and a countless number of
interactions between different substances! The game provides you
with various building materials, liquids, gases and electronic
components which can be used to construct complex machines, guns,
bombs, realistic terrains and almost anything else. You can then
mine them and watch cool explosions, add intricate wirings, play
with little stickmen or operate your machine. You can browse and
play thousands of different saves made by the community or upload
your own - we welcome your creations!
WWW: http://powdertoy.co.uk/
2017-03-28 13:49:55 +00:00
|
|
|
|
2020-03-29 14:57:46 +00:00
|
|
|
OPTIONS_DEFINE= DOCS OPTIMIZED_CFLAGS SSE SSE3 OPENGL HTTP
|
|
|
|
OPTIONS_DEFAULT= OPTIMIZED_CFLAGS HTTP
|
Have you ever wanted to blow something up? Or maybe you always
dreamt of operating an atomic power plant? Do you have a will to
develop your own CPU? The Powder Toy lets you to do all of these,
and even more!
The Powder Toy is a free physics sandbox game, which simulates air
pressure and velocity, heat, gravity and a countless number of
interactions between different substances! The game provides you
with various building materials, liquids, gases and electronic
components which can be used to construct complex machines, guns,
bombs, realistic terrains and almost anything else. You can then
mine them and watch cool explosions, add intricate wirings, play
with little stickmen or operate your machine. You can browse and
play thousands of different saves made by the community or upload
your own - we welcome your creations!
WWW: http://powdertoy.co.uk/
2017-03-28 13:49:55 +00:00
|
|
|
OPTIONS_DEFAULT_amd64= SSE
|
2017-07-27 09:58:57 +00:00
|
|
|
# upstream also uses -funsafe-loop-optimizations, but it's not supported by clang
|
Have you ever wanted to blow something up? Or maybe you always
dreamt of operating an atomic power plant? Do you have a will to
develop your own CPU? The Powder Toy lets you to do all of these,
and even more!
The Powder Toy is a free physics sandbox game, which simulates air
pressure and velocity, heat, gravity and a countless number of
interactions between different substances! The game provides you
with various building materials, liquids, gases and electronic
components which can be used to construct complex machines, guns,
bombs, realistic terrains and almost anything else. You can then
mine them and watch cool explosions, add intricate wirings, play
with little stickmen or operate your machine. You can browse and
play thousands of different saves made by the community or upload
your own - we welcome your creations!
WWW: http://powdertoy.co.uk/
2017-03-28 13:49:55 +00:00
|
|
|
OPTIMIZED_CFLAGS_CXXFLAGS= -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer
|
|
|
|
SSE_MAKE_ARGS_OFF= --no-sse
|
2018-05-03 19:52:47 +00:00
|
|
|
SSE3_DESC= Enable SSE3 optimizations
|
|
|
|
SSE3_MAKE_ARGS= --sse3
|
|
|
|
SSE3_IMPLIES= SSE
|
2019-11-05 22:21:16 +00:00
|
|
|
OPENGL_USES= gl
|
2018-05-03 19:52:47 +00:00
|
|
|
OPENGL_USE= GL=gl,glu,glew
|
|
|
|
OPENGL_MAKE_ARGS= --opengl --opengl-renderer
|
|
|
|
OPENGL_BROKEN= Application dies with SIGBUS at startup
|
2020-03-29 14:57:46 +00:00
|
|
|
HTTP_DESC= Enable HTTP requests support
|
|
|
|
HTTP_LIB_DEPENDS= libcurl.so:ftp/curl
|
|
|
|
HTTP_MAKE_ARGS_OFF= --nohttp
|
Have you ever wanted to blow something up? Or maybe you always
dreamt of operating an atomic power plant? Do you have a will to
develop your own CPU? The Powder Toy lets you to do all of these,
and even more!
The Powder Toy is a free physics sandbox game, which simulates air
pressure and velocity, heat, gravity and a countless number of
interactions between different substances! The game provides you
with various building materials, liquids, gases and electronic
components which can be used to construct complex machines, guns,
bombs, realistic terrains and almost anything else. You can then
mine them and watch cool explosions, add intricate wirings, play
with little stickmen or operate your machine. You can browse and
play thousands of different saves made by the community or upload
your own - we welcome your creations!
WWW: http://powdertoy.co.uk/
2017-03-28 13:49:55 +00:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e '/#include/ s|lua5.1/|lua51/|' ${WRKSRC}/src/lua/LuaCompat.h
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/build/powder* ${STAGEDIR}${PREFIX}/libexec/${PORTNAME}
|
2019-02-21 13:55:08 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/resources/powder.desktop ${STAGEDIR}${PREFIX}/share/applications/powder-toy.desktop
|
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/appdata
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/resources/powder.appdata.xml ${STAGEDIR}${PREFIX}/share/appdata/powder-toy.appdata.xml
|
|
|
|
.for s in 16 24 32 48 128 256
|
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/resources/icon/powder-${s}.png \
|
|
|
|
${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps/powder-toy.png
|
|
|
|
.endfor
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/resources/icon/powder-32.png \
|
|
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/powder-toy.png
|
Have you ever wanted to blow something up? Or maybe you always
dreamt of operating an atomic power plant? Do you have a will to
develop your own CPU? The Powder Toy lets you to do all of these,
and even more!
The Powder Toy is a free physics sandbox game, which simulates air
pressure and velocity, heat, gravity and a countless number of
interactions between different substances! The game provides you
with various building materials, liquids, gases and electronic
components which can be used to construct complex machines, guns,
bombs, realistic terrains and almost anything else. You can then
mine them and watch cool explosions, add intricate wirings, play
with little stickmen or operate your machine. You can browse and
play thousands of different saves made by the community or upload
your own - we welcome your creations!
WWW: http://powdertoy.co.uk/
2017-03-28 13:49:55 +00:00
|
|
|
|
|
|
|
do-install-DOCS-on:
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.for f in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|