aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2016-01-25 05:35:03 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2016-01-25 05:35:03 +0800
commit51a2948d1061895dbf0cd15b8d3fb4ac3815b946 (patch)
treea411f02063507741a76d0c0f525065d0a0efa6eb
parent8d6752bb196294ba5eae0f3846f3df62214ee3f3 (diff)
downloadfreebsd-ports-gnome-51a2948d1061895dbf0cd15b8d3fb4ac3815b946.tar.gz
freebsd-ports-gnome-51a2948d1061895dbf0cd15b8d3fb4ac3815b946.tar.zst
freebsd-ports-gnome-51a2948d1061895dbf0cd15b8d3fb4ac3815b946.zip
Standalone version of xkcd 1608 "Hoverboard" game originally available
at http://xkcd.com/1608/ WWW: https://github.com/AMDmi3/hoverboard-sdl
-rw-r--r--games/Makefile1
-rw-r--r--games/hoverboard-sdl/Makefile35
-rw-r--r--games/hoverboard-sdl/distinfo2
-rw-r--r--games/hoverboard-sdl/files/patch-CMakeLists.txt27
-rw-r--r--games/hoverboard-sdl/pkg-descr4
5 files changed, 69 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index 5e0b5f16852d..99987496fcd1 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -408,6 +408,7 @@
SUBDIR += hohlin
SUBDIR += hoichess
SUBDIR += holotz-castle
+ SUBDIR += hoverboard-sdl
SUBDIR += hypatia_engine
SUBDIR += iagno
SUBDIR += icbm3d
diff --git a/games/hoverboard-sdl/Makefile b/games/hoverboard-sdl/Makefile
new file mode 100644
index 000000000000..e0b732741ee1
--- /dev/null
+++ b/games/hoverboard-sdl/Makefile
@@ -0,0 +1,35 @@
+# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= hoverboard
+PORTVERSION= 0.7.3
+CATEGORIES= games
+
+MAINTAINER= amdmi3@FreeBSD.org
+COMMENT= Standalone version of xkcd 1608 "Hoverboard" game
+
+LICENSE= GPLv3+ CCbyNC25
+LICENSE_COMB= multi
+LICENSE_NAME_CCbyNC25= Creative Commons Attribution-NonCommercial 2.5 License
+LICENSE_TEXT_CCbyNC25= http://creativecommons.org/licenses/by-nc/2.5/
+LICENSE_FILE_GPLv3= ${WRKSRC}/COPYING
+LICENSE_PERMS_CCbyNC25= no-dist-sell dist-mirror no-pkg-sell pkg-mirror auto-accept
+
+LIB_DEPENDS= libSDL2pp.so:${PORTSDIR}/devel/sdl2pp
+
+USE_GITHUB= yes
+GH_ACCOUNT= AMDmi3
+GH_PROJECT= ${PORTNAME}-sdl
+
+USES= cmake compiler:c++11-lib
+CMAKE_ARGS= -DSYSTEMWIDE=ON
+USE_SDL= sdl2 image2 ttf2
+
+PORTDATA= *
+PORTDOCS= *
+PLIST_FILES= bin/${PORTNAME} \
+ share/applications/${PORTNAME}.desktop
+
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.mk>
diff --git a/games/hoverboard-sdl/distinfo b/games/hoverboard-sdl/distinfo
new file mode 100644
index 000000000000..8186fc75eac2
--- /dev/null
+++ b/games/hoverboard-sdl/distinfo
@@ -0,0 +1,2 @@
+SHA256 (AMDmi3-hoverboard-sdl-0.7.3_GH0.tar.gz) = 59c51aea62d4a8771212986aef7cb9ed307802f995585a94100514eb16b7f1b4
+SIZE (AMDmi3-hoverboard-sdl-0.7.3_GH0.tar.gz) = 3833983
diff --git a/games/hoverboard-sdl/files/patch-CMakeLists.txt b/games/hoverboard-sdl/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..d0742614ed1c
--- /dev/null
+++ b/games/hoverboard-sdl/files/patch-CMakeLists.txt
@@ -0,0 +1,27 @@
+--- CMakeLists.txt.orig 2016-01-23 13:29:12 UTC
++++ CMakeLists.txt
+@@ -27,14 +27,7 @@ IF(NOT MSVC)
+ ENDIF(NOT MSVC)
+
+ # depends
+-IF(NOT EXISTS ${PROJECT_SOURCE_DIR}/extlibs/libSDL2pp/CMakeLists.txt)
+- MESSAGE(FATAL_ERROR "The source directory\n ${PROJECT_SOURCE_DIR}/extlibs/libSDL2pp\ndoes not contain a CMakeLists.txt file.\nIt is likely that you forgot to run\n git submodule init && git submodule update")
+-ENDIF(NOT EXISTS ${PROJECT_SOURCE_DIR}/extlibs/libSDL2pp/CMakeLists.txt)
+-
+-SET(SDL2PP_WITH_IMAGE TRUE)
+-SET(SDL2PP_WITH_TTF TRUE)
+-ADD_SUBDIRECTORY(extlibs/libSDL2pp)
+-
++FIND_PACKAGE(SDL2PP)
+ FIND_PACKAGE(Threads)
+
+ # definitions
+@@ -81,7 +74,7 @@ IF(SYSTEMWIDE OR STANDALONE)
+ INSTALL(TARGETS hoverboard RUNTIME DESTINATION ${BINDIR})
+ INSTALL(DIRECTORY data/ DESTINATION ${DATADIR})
+
+- INSTALL(FILES README.md COPYING COPYING.DATA DESTINATION ${DOCSDIR})
++ INSTALL(FILES README.md DESTINATION ${DOCSDIR})
+
+ IF(NOT WIN32)
+ CONFIGURE_FILE(misc/hoverboard.desktop.in misc/hoverboard.desktop)
diff --git a/games/hoverboard-sdl/pkg-descr b/games/hoverboard-sdl/pkg-descr
new file mode 100644
index 000000000000..0b6062c458cd
--- /dev/null
+++ b/games/hoverboard-sdl/pkg-descr
@@ -0,0 +1,4 @@
+Standalone version of xkcd 1608 "Hoverboard" game originally available
+at http://xkcd.com/1608/
+
+WWW: https://github.com/AMDmi3/hoverboard-sdl