- Update to 94.0

This commit is contained in:
Dmitry Marakasov 2019-02-21 13:55:08 +00:00
parent 352fcc4279
commit c9a2fc6e80
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=493502
6 changed files with 62 additions and 17 deletions

View File

@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= powder-toy
PORTVERSION= 93.3
PORTREVISION= 1
PORTVERSION= 94.0
DISTVERSIONPREFIX= v
CATEGORIES= games
@ -20,9 +19,8 @@ USE_GITHUB= yes
GH_ACCOUNT= ThePowderToy
GH_PROJECT= The-Powder-Toy
USES= compiler:c++11-lang scons localbase:ldflags lua:51 pkgconfig
USE_SDL= sdl
USE_XORG= x11
USES= compiler:c++11-lang scons sdl localbase:ldflags lua:51 pkgconfig
USE_SDL= sdl2
MAKE_ENV= LINKFLAGS="${LINKFLAGS}"
@ -30,13 +28,6 @@ SUB_FILES= ${PORTNAME}.sh
PORTDOCS= README.md TODO
DESKTOP_ENTRIES="The Powder Toy" \
"" \
"${PREFIX}/share/pixmaps/${PORTNAME}.ico" \
"${PORTNAME}" \
"Game;Simulation;" \
""
OPTIONS_DEFINE= DOCS OPTIMIZED_CFLAGS SSE SSE3 OPENGL
OPTIONS_DEFAULT= OPTIMIZED_CFLAGS
OPTIONS_DEFAULT_amd64= SSE
@ -56,7 +47,16 @@ post-patch:
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${INSTALL_PROGRAM} ${WRKSRC}/build/powder* ${STAGEDIR}${PREFIX}/libexec/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/resources/powder.ico ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.ico
${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
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1525264085
SHA256 (ThePowderToy-The-Powder-Toy-v93.3_GH0.tar.gz) = 6c5f5914e4ae0ac8500c7203ec69517a2fd4380dece6b33247ed719aa12e074e
SIZE (ThePowderToy-The-Powder-Toy-v93.3_GH0.tar.gz) = 996138
TIMESTAMP = 1550501901
SHA256 (ThePowderToy-The-Powder-Toy-v94.0_GH0.tar.gz) = 01bb365caa584e454aaad813a75a2db49478ae410075f27f79a3df931e8d9301
SIZE (ThePowderToy-The-Powder-Toy-v94.0_GH0.tar.gz) = 1253460

View File

@ -0,0 +1,15 @@
--- SConscript.orig 2019-02-17 19:08:04 UTC
+++ SConscript
@@ -364,11 +364,7 @@ def findLibs(env, conf):
FatalError("OpenGL framework not found or not installed")
if platform == "Linux" or platform == "FreeBSD":
- if not conf.CheckLib('X11'):
- FatalError("X11 development library not found or not installed")
-
- if not conf.CheckLib('rt'):
- FatalError("librt not found or not installed")
+ pass
elif platform == "Windows":
#These need to go last
if not conf.CheckLib('gdi32') or not conf.CheckLib('winmm') or (not msvc and not conf.CheckLib('dxguid')):

View File

@ -0,0 +1,10 @@
--- resources/powder.appdata.xml.orig 2019-02-17 19:08:04 UTC
+++ resources/powder.appdata.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop">
- <id>powder.desktop</id>
+ <id>powder-toy.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0</project_license>
<name>Powder Toy</name>

View File

@ -0,0 +1,12 @@
--- resources/powder.desktop.orig 2019-02-17 19:08:04 UTC
+++ resources/powder.desktop
@@ -3,7 +3,7 @@ Version=1.0
Encoding=UTF-8
Name=Powder Toy
Comment=Physics sandbox game
-Exec=powder
-Icon=powder
+Exec=powder-toy
+Icon=powder-toy
Type=Application
Categories=Game;Simulation;

View File

@ -1,3 +1,11 @@
bin/powder-toy
libexec/powder-toy
share/pixmaps/powder-toy.ico
share/appdata/powder-toy.appdata.xml
share/applications/powder-toy.desktop
share/icons/hicolor/128x128/apps/powder-toy.png
share/icons/hicolor/16x16/apps/powder-toy.png
share/icons/hicolor/24x24/apps/powder-toy.png
share/icons/hicolor/256x256/apps/powder-toy.png
share/icons/hicolor/32x32/apps/powder-toy.png
share/icons/hicolor/48x48/apps/powder-toy.png
share/pixmaps/powder-toy.png