diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2017-03-01 22:50:03 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2017-03-01 22:50:03 +0800 |
commit | f56caa025951eb21837e0fd7f860e85086c533bc (patch) | |
tree | ee69064b57b421d412d6b0e4346adccfe8ad00b9 /games/endless-sky | |
parent | a6301f23f2767db720291f6dd24afe7dcfd641dd (diff) | |
download | freebsd-ports-gnome-f56caa025951eb21837e0fd7f860e85086c533bc.tar.gz freebsd-ports-gnome-f56caa025951eb21837e0fd7f860e85086c533bc.tar.zst freebsd-ports-gnome-f56caa025951eb21837e0fd7f860e85086c533bc.zip |
- Update to 0.9.6
Diffstat (limited to 'games/endless-sky')
-rw-r--r-- | games/endless-sky/Makefile | 6 | ||||
-rw-r--r-- | games/endless-sky/distinfo | 6 | ||||
-rw-r--r-- | games/endless-sky/files/patch-source_CollisionSet.cpp | 21 | ||||
-rw-r--r-- | games/endless-sky/pkg-plist | 1 |
4 files changed, 29 insertions, 5 deletions
diff --git a/games/endless-sky/Makefile b/games/endless-sky/Makefile index 701d8be218af..a563de459bf8 100644 --- a/games/endless-sky/Makefile +++ b/games/endless-sky/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= endless-sky -PORTVERSION= 0.9.4 +PORTVERSION= 0.9.6 DISTVERSIONPREFIX= v CATEGORIES= games @@ -13,7 +13,8 @@ LICENSE= GPLv3+ CC-BY-4.0 CC-BY-SA-3.0 CC-BY-SA-4.0 PD LICENSE_COMB= multi LICENSE_FILE_GPLv3+ = ${WRKSRC}/license.txt -LIB_DEPENDS= libpng.so:graphics/png +LIB_DEPENDS= libpng.so:graphics/png \ + libmad.so:audio/libmad USE_GITHUB= yes @@ -30,5 +31,6 @@ post-build: post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + @${LN} -s ../icons/hicolor/32x32/apps/endless-sky.png ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png .include <bsd.port.mk> diff --git a/games/endless-sky/distinfo b/games/endless-sky/distinfo index feaceac90259..a1949fb1c516 100644 --- a/games/endless-sky/distinfo +++ b/games/endless-sky/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1476278581 -SHA256 (endless-sky-endless-sky-v0.9.4_GH0.tar.gz) = 8e25b9c387736d10034396940974cd442b8a7c6e9647a12c6d08fbeed9d32eeb -SIZE (endless-sky-endless-sky-v0.9.4_GH0.tar.gz) = 57953492 +TIMESTAMP = 1487772910 +SHA256 (endless-sky-endless-sky-v0.9.6_GH0.tar.gz) = 41699dabb72a276c96019d0714e54492866e29661f161052a1caf334332be1e4 +SIZE (endless-sky-endless-sky-v0.9.6_GH0.tar.gz) = 71119557 diff --git a/games/endless-sky/files/patch-source_CollisionSet.cpp b/games/endless-sky/files/patch-source_CollisionSet.cpp new file mode 100644 index 000000000000..5ec1dea45546 --- /dev/null +++ b/games/endless-sky/files/patch-source_CollisionSet.cpp @@ -0,0 +1,21 @@ +--- source/CollisionSet.cpp.orig 2017-01-18 02:04:49 UTC ++++ source/CollisionSet.cpp +@@ -22,6 +22,7 @@ PARTICULAR PURPOSE. See the GNU General + #include <algorithm> + #include <numeric> + #include <set> ++#include <cstdlib> + + using namespace std; + +@@ -179,8 +180,8 @@ Body *CollisionSet::Line(const Projectil + int stepX = (x <= endX ? 1 : -1); + int stepY = (y <= endY ? 1 : -1); + // Calculate the slope of the line, shifted so it is positive in both axes. +- int mx = abs(endX - x); +- int my = abs(endY - y); ++ int mx = std::abs(endX - x); ++ int my = std::abs(endY - y); + // Behave as if each grid cell has this width and height. This guarantees + // that we only need to work with integer coordinates. + int scale = max(mx, 1) * max(my, 1); diff --git a/games/endless-sky/pkg-plist b/games/endless-sky/pkg-plist index bbeb025af054..235cc0fb6fca 100644 --- a/games/endless-sky/pkg-plist +++ b/games/endless-sky/pkg-plist @@ -8,3 +8,4 @@ share/icons/hicolor/24x24/apps/endless-sky.png share/icons/hicolor/256x256/apps/endless-sky.png share/icons/hicolor/32x32/apps/endless-sky.png share/icons/hicolor/48x48/apps/endless-sky.png +share/pixmaps/endless-sky.png |