summaryrefslogtreecommitdiff
path: root/games-strategy/freesynd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-strategy/freesynd
reinit the tree, so we can have metadata
Diffstat (limited to 'games-strategy/freesynd')
-rw-r--r--games-strategy/freesynd/Manifest6
-rw-r--r--games-strategy/freesynd/files/freesynd-0.7.1-cmake.patch28
-rw-r--r--games-strategy/freesynd/freesynd-0.7.1.ebuild78
-rw-r--r--games-strategy/freesynd/metadata.xml14
4 files changed, 126 insertions, 0 deletions
diff --git a/games-strategy/freesynd/Manifest b/games-strategy/freesynd/Manifest
new file mode 100644
index 000000000000..7f387825c6bd
--- /dev/null
+++ b/games-strategy/freesynd/Manifest
@@ -0,0 +1,6 @@
+AUX freesynd-0.7.1-cmake.patch 931 SHA256 e5c058dc4a4c3633c45eed4f0de4f33230236fe3231cd2f35a1896a9ba329b4c SHA512 994d12a2f079582bda03a600888c2d7ed2043468d69ce752e64deb45d156de5a7556edabd00d2635acc2c39882a8074193dc559e423e8e0181e9d4ea9d8b8b6f WHIRLPOOL 7fcb80febf70b6d238a94ea2c00a7922393be7df764f48edca8c2bd08b40b6772def67543b7ceed789ddd07f3cac88d508c3fe98f841f17a54444606682251ee
+DIST freesynd-0.7.1.tar.gz 2576695 SHA256 e55b0b3386cdace81fdcd8e33943535abf19ba0797b78c404689bcdd2c55f7de SHA512 b87e6adaf71206532b4f90cd230ca6be00438fe26f000c5a0bfebf2839fea80d78d98ddc27331a2224874338c3e14ffbfa58b8c5bdbdc53c93bba8d6a9e6b7b4 WHIRLPOOL c6b49b4971a4b6404006e3579fba23342cdb98119836f0db489d05db10ed8b45f8d4282f16b9cd726a810ec9eb6d06be95d3e0f67985e993a4010d97c715cf14
+EBUILD freesynd-0.7.1.ebuild 1665 SHA256 b0484dbfe776ecda97e9efe014ea35b3ca6e8277c6ae55f94e0ab66f8d85ce56 SHA512 912f6ba3b63c4f814f2faef18dd1b9fb7b89db250280406524352c8f4a4602f14fbbadeeddfd8206931729136de8af340fe391b30658755b27d922ddd6fde72d WHIRLPOOL afb611b7e0cf9e2c1c7ca00e0ae89a3a2a4c18fb5f129a0225615c1150d36ca4d487378814c697275d05f5447189f8f129bac6f722b10d1612134cf276af1f89
+MISC ChangeLog 2471 SHA256 c66126aac4d3379bca181fcf1c0d4c7691eb93d3f31db5d711f7c3522a4d83b7 SHA512 1b37516b7f9ac9cfb68ed03a43a78d215d4843798ff0766204e1a00f7dba4c8c47d24998ec2ee9ba7d4d5a7a17048052e9727805eabda92c757bb91f000bf4a3 WHIRLPOOL 1a5d517cb21d8d87d81ff06501f9c5bc85aff61d2678426e5517d9acb37b30b75260226f83648637bbd6a433137d8aba13e64ffe92c4f5aced4cb2f65115f987
+MISC ChangeLog-2015 1257 SHA256 9a5b2a63f8dac922a90d30252aa9f229ca74d3b8ce5ab38c14a988866d0286a2 SHA512 e86ce06474cd29fcdbe30c4e553b293a6bcf66da63d5f1fa7c63eebe0fd815a11d01e26d697abf1b207a7a391843211f8b2c56e7aadc8397d196b0eb3cf082f2 WHIRLPOOL b5101eb249d3cc47d7f6c6d00827b3f8618584bdeca089891cfc3e2cda3526a66693a6e009accb4c3b4ea01807398a4bd7fbde77bc85b0ec3318782fa2a89080
+MISC metadata.xml 401 SHA256 377a15b5363d584c8b8b26925f566e4a76f4395e7966e89f437dba3c34f20751 SHA512 5750ad5bed978d8a906a3cea47f3602257b5390bb87096c1e005d0c2bd1921b9033bdfb87f14506e88e8929268a9c9bb0003c9b343d0a0040b30df2058726152 WHIRLPOOL 900a0e3d0a9f9c6015357cd6d4fb0dfa811677d3d13f15f3acce94fb542f3f1c9f964d55f957bcd5e654359b3f6cb1807991942f5b7d683528e07c224a2295d9
diff --git a/games-strategy/freesynd/files/freesynd-0.7.1-cmake.patch b/games-strategy/freesynd/files/freesynd-0.7.1-cmake.patch
new file mode 100644
index 000000000000..817cd39dcb4f
--- /dev/null
+++ b/games-strategy/freesynd/files/freesynd-0.7.1-cmake.patch
@@ -0,0 +1,28 @@
+--- freesynd-0.7.1/CMakeLists.txt
++++ freesynd-0.7.1/CMakeLists.txt
+@@ -34,6 +34,13 @@
+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_C_FLAGS}")
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CXX_FLAGS}")
+
++option(BUILD_DEV_TOOLS "Build development tools")
++option(WITH_DEBUG "Enable debug definitions")
++
++if(WITH_DEBUG)
++ add_definitions (-D_DEBUG)
++endif()
++
+ # Set standard definitions for all platforms.
+ add_definitions (-DSYSTEM_SDL)
+ add_definitions (-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\")
+@@ -59,10 +66,7 @@
+ message (FATAL_ERROR "Unable to locate PNG")
+ endif ()
+
+-if (NOT CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE STREQUAL "debug")
+- set (BUILD_DEV_TOOLS TRUE)
+-else ()
+- set (BUILD_DEV_TOOLS FALSE)
++if (CMAKE_BUILD_TYPE AND NOT CMAKE_BUILD_TYPE STREQUAL "debug")
+ # We only define an install target if we're doing a release build.
+ # Furthermore, on Mac, the data folder is a part of the app bundle.
+ if (NOT APPLE)
diff --git a/games-strategy/freesynd/freesynd-0.7.1.ebuild b/games-strategy/freesynd/freesynd-0.7.1.ebuild
new file mode 100644
index 000000000000..ca97959a7212
--- /dev/null
+++ b/games-strategy/freesynd/freesynd-0.7.1.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils cmake-utils gnome2-utils games
+
+DESCRIPTION="A cross-platform reimplementation of engine for the classic Bullfrog game, Syndicate"
+HOMEPAGE="http://freesynd.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="debug devtools"
+
+RDEPEND="media-libs/libogg
+ media-libs/libpng:0
+ media-libs/libsdl[X,sound,video]
+ media-libs/libvorbis
+ media-libs/sdl-mixer[mp3,vorbis]
+ media-libs/sdl-image[png]"
+DEPEND=${RDEPEND}
+
+CMAKE_IN_SOURCE_BUILD=1
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-cmake.patch
+
+ sed \
+ -e "s:#freesynd_data_dir = /usr/share/freesynd/data:freesynd_data_dir = ${GAMES_DATADIR}/${PN}/data:" \
+ -i ${PN}.ini || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_with debug DEBUG)
+ $(cmake-utils_use_build devtools DEV_TOOLS)
+ )
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ dogamesbin src/${PN}
+ use devtools && newgamesbin src/dump ${PN}-dump
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r data
+ newicon -s 128 icon/sword.png ${PN}.png
+ make_desktop_entry ${PN}
+ dodoc NEWS README INSTALL AUTHORS
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ elog "You have to set \"data_dir = /my/path/to/synd-data\""
+ elog "in \"~/.${PN}/${PN}.ini\"."
+
+ if use debug ; then
+ ewarn "Debug build is not meant for regular playing,"
+ ewarn "game speed is higher."
+ fi
+
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-strategy/freesynd/metadata.xml b/games-strategy/freesynd/metadata.xml
new file mode 100644
index 000000000000..2ba784f8d996
--- /dev/null
+++ b/games-strategy/freesynd/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <use>
+ <flag name="devtools">Build development tools</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">freesynd</remote-id>
+ </upstream>
+</pkgmetadata>