diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2015-03-09 23:47:56 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2015-03-09 23:47:56 +0800 |
commit | 514f25be07420e66ef27f9e7fd01dcd24ced626a (patch) | |
tree | 788c8fcc9e24f89ed193aacd23996b4d808ca9e3 | |
parent | 7e09699d3def356a7963bf92919a35c596a7180b (diff) | |
download | freebsd-ports-gnome-514f25be07420e66ef27f9e7fd01dcd24ced626a.tar.gz freebsd-ports-gnome-514f25be07420e66ef27f9e7fd01dcd24ced626a.tar.zst freebsd-ports-gnome-514f25be07420e66ef27f9e7fd01dcd24ced626a.zip |
FreeBlocks is a puzzle game with similar gameplay to Tetris Attack.
WWW: https://github.com/dorkster/freeblocks
-rw-r--r-- | games/Makefile | 1 | ||||
-rw-r--r-- | games/freeblocks/Makefile | 33 | ||||
-rw-r--r-- | games/freeblocks/distinfo | 2 | ||||
-rw-r--r-- | games/freeblocks/files/patch-CMakeLists.txt | 11 | ||||
-rw-r--r-- | games/freeblocks/pkg-descr | 3 | ||||
-rw-r--r-- | games/freeblocks/pkg-plist | 30 |
6 files changed, 80 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile index b02ee72d7ee7..3f09f993a7b8 100644 --- a/games/Makefile +++ b/games/Makefile @@ -273,6 +273,7 @@ SUBDIR += fortunate SUBDIR += fotaq SUBDIR += four-in-a-row + SUBDIR += freeblocks SUBDIR += freecell-solver SUBDIR += freeciv SUBDIR += freeciv-nox11 diff --git a/games/freeblocks/Makefile b/games/freeblocks/Makefile new file mode 100644 index 000000000000..e79f9dc28a67 --- /dev/null +++ b/games/freeblocks/Makefile @@ -0,0 +1,33 @@ +# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= freeblocks +PORTVERSION= 0.4.git20150308 +CATEGORIES= games + +MAINTAINER= amdmi3@FreeBSD.org +COMMENT= Puzzle game with similar gameplay to Tetris Attack + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/COPYING + +USE_GITHUB= yes +GH_ACCOUNT= dorkster +GH_TAGNAME= ${GH_COMMIT} +GH_COMMIT= 7ec9c36 + +USES= cmake +CMAKE_ARGS= -DDATADIR="${DATADIR_REL}" +USE_SDL= sdl mixer image ttf + +PORTDOCS= * + +OPTIONS_DEFINE= HALF_GFX +HALF_GFX_DESC= Use 320x240 graphics +HALF_GFX_CMAKE_ON= -DHALF_GFX=ON + +post-install: + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}/ + +.include <bsd.port.mk> diff --git a/games/freeblocks/distinfo b/games/freeblocks/distinfo new file mode 100644 index 000000000000..86e944286979 --- /dev/null +++ b/games/freeblocks/distinfo @@ -0,0 +1,2 @@ +SHA256 (freeblocks-0.4.git20150308.tar.gz) = b785e28a4bc0652cbefb3a6daa8b057992d1681972905818a8fc4d2daf7e8345 +SIZE (freeblocks-0.4.git20150308.tar.gz) = 7913107 diff --git a/games/freeblocks/files/patch-CMakeLists.txt b/games/freeblocks/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..207325d737a5 --- /dev/null +++ b/games/freeblocks/files/patch-CMakeLists.txt @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2015-03-08 13:57:11.000000000 +0300 ++++ CMakeLists.txt 2015-03-09 17:48:28.547228957 +0300 +@@ -126,7 +126,7 @@ + Target_Link_Libraries (freeblocks ${CMAKE_LD_FLAGS} ${SDL_LIBRARY} ${SDLIMAGE_LIBRARY} ${SDLMIXER_LIBRARY} ${SDLTTF_LIBRARY} ${SDLMAIN_LIBRARY} ${EXTRA_LIBRARIES}) + + # installing to the proper places +-install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/freeblocks DESTINATION ${BINDIR}) ++install(TARGETS freeblocks DESTINATION ${BINDIR}) + install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/res" DESTINATION ${DATADIR}) + install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/pkg/default.gcw0.desktop" DESTINATION ${APPDIR} RENAME freeblocks.desktop) + install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/pkg/freeblocks.png" DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/32x32/apps) diff --git a/games/freeblocks/pkg-descr b/games/freeblocks/pkg-descr new file mode 100644 index 000000000000..ca1c9bf99add --- /dev/null +++ b/games/freeblocks/pkg-descr @@ -0,0 +1,3 @@ +FreeBlocks is a puzzle game with similar gameplay to Tetris Attack. + +WWW: https://github.com/dorkster/freeblocks diff --git a/games/freeblocks/pkg-plist b/games/freeblocks/pkg-plist new file mode 100644 index 000000000000..322bdc8ab799 --- /dev/null +++ b/games/freeblocks/pkg-plist @@ -0,0 +1,30 @@ +bin/freeblocks +share/applications/freeblocks.desktop +%%DATADIR%%/res/fonts/Alegreya-Regular.ttf +%%DATADIR%%/res/graphics/320x240/background.png +%%DATADIR%%/res/graphics/320x240/background_jewels.png +%%DATADIR%%/res/graphics/320x240/bar.png +%%DATADIR%%/res/graphics/320x240/bar_inactive.png +%%DATADIR%%/res/graphics/320x240/blocks.png +%%DATADIR%%/res/graphics/320x240/clear.png +%%DATADIR%%/res/graphics/320x240/cursor.png +%%DATADIR%%/res/graphics/320x240/cursor_highlight.png +%%DATADIR%%/res/graphics/320x240/highscores.png +%%DATADIR%%/res/graphics/320x240/title.png +%%DATADIR%%/res/graphics/background.png +%%DATADIR%%/res/graphics/background_jewels.png +%%DATADIR%%/res/graphics/bar.png +%%DATADIR%%/res/graphics/bar_inactive.png +%%DATADIR%%/res/graphics/blocks.png +%%DATADIR%%/res/graphics/clear.png +%%DATADIR%%/res/graphics/cursor.png +%%DATADIR%%/res/graphics/cursor_highlight.png +%%DATADIR%%/res/graphics/highscores.png +%%DATADIR%%/res/graphics/title.png +%%DATADIR%%/res/sounds/drop.wav +%%DATADIR%%/res/sounds/match.wav +%%DATADIR%%/res/sounds/menu.wav +%%DATADIR%%/res/sounds/music.ogg +%%DATADIR%%/res/sounds/music_jewels.ogg +%%DATADIR%%/res/sounds/switch.wav +share/icons/hicolor/32x32/apps/freeblocks.png |