diff options
author | 2016-07-28 20:36:34 +0200 | |
---|---|---|
committer | 2016-07-28 20:38:58 +0200 | |
commit | 94d0a17ede90231b330822fec1ff369d63ea65b7 (patch) | |
tree | 857c59ede8486c8bf8cd8aba7f6fc7e5d60dea82 /games-roguelike | |
parent | dfhack-0.43.03.1 - bump (diff) | |
download | eroen-94d0a17ede90231b330822fec1ff369d63ea65b7.tar.gz eroen-94d0a17ede90231b330822fec1ff369d63ea65b7.tar.bz2 eroen-94d0a17ede90231b330822fec1ff369d63ea65b7.zip |
dwarf-fortress-0.43.05 from Hello71
X-Gentoo-bug: 589026
X-Gentoo-bug-url: https://bugs.gentoo.org/589026
Diffstat (limited to 'games-roguelike')
-rw-r--r-- | games-roguelike/dwarf-fortress/Manifest | 2 | ||||
-rw-r--r-- | games-roguelike/dwarf-fortress/dwarf-fortress-0.43.05.ebuild | 85 | ||||
-rw-r--r-- | games-roguelike/dwarf-fortress/files/Makefile.native | 28 |
3 files changed, 115 insertions, 0 deletions
diff --git a/games-roguelike/dwarf-fortress/Manifest b/games-roguelike/dwarf-fortress/Manifest index 96855c3..2e5a671 100644 --- a/games-roguelike/dwarf-fortress/Manifest +++ b/games-roguelike/dwarf-fortress/Manifest @@ -1,3 +1,5 @@ DIST df_40_24_linux.tar.bz2 12921246 SHA256 da37c6263a679123e6ac57fe0dd6def11f1d61efee3c5913de09495c88ce9234 SHA512 2242e471b7dbc996e819e2f74b2bbfda30a9a301755bc025ddcccdffdd3afe2e48bbedca31a332283ef829d023069398e57d6a87e26c582ddbce4a67ff7fd755 WHIRLPOOL 03cb652a2564d2b0c809be8252f7754d893f69ac1b95124ea108ed0fde9ac742c498d9e369339775695861e430a2ded0741b018f85551d48731730f98303dc69 DIST df_42_06_linux.tar.bz2 13857747 SHA256 03df8e73bf81e4f7bec9e789a83f8bd20b0b968d73131e4051e005db13fec99f SHA512 dfeb1406dcbd74091170eee4392c8eb876516d723b17e8aa291cab5b670be9fca4e22122788656e37afc03cd0e827e42b8cd27bc148d32639ebb7b8b7fa2bbf4 WHIRLPOOL d8fd93e9d90b4bee942c9a3751d1d03180157e4ecf406cf1cf31441946588990b2385a0b8d376f2a5386d7514d28b7ba5a6fbd2879e3a1e87124d902759909c3 DIST df_43_03_linux.tar.bz2 13970214 SHA256 8725cb00188b4282fd5a3c4be10c3255f837b951ca48af90fa3a351e3a818337 SHA512 3315f8022485200fbe860c9ac72e481274951a368ab3aa2becf597a6be73a7e26779e7ab5ae318af7fac411b0d60472fc6387a1a6f0640bf21ee1dc00fe4eb80 WHIRLPOOL fded49bcaddf449ec7d9cb9895e45cbc059ceb448884915231e9eb2be213f505a6649388b5f9689896881525c363f51886621f117cd01cb42bb63412f94149ea +DIST df_43_05_linux.tar.bz2 11580594 SHA256 856c13170e8beefb5419ae71ee26c85db9716b3ebd4c7348aa44b896bd490be4 SHA512 502e6bac0bdd5586fb6b4e1117caf144a0336a7eed3ed9350ec316e4a286e309a15e0738517c0dd7d32f182984c501c7a8756e942d3dde9fb87f72b153f38e7a WHIRLPOOL 2ba6091c575eb7e2ca282e2192c0ca30ee48bfea473a0537acabfe33b2b7e848d1057f65409f9cc4aa2ec42f3c2dc7fef22139d3b2a788a84e71338a2c767ba1 +DIST df_43_05_linux32.tar.bz2 12158550 SHA256 0334e6b35ecc36949f5c60ffc1eb46fade3365b55a44f2e11fd4ae799ba7819a SHA512 d0446ddb5c37ee45ade36b18b815595e8d7bfd9749af4ecd2f25b45859d797a9da70f2344e2c58544feafc7df06882ade8a10534c37754359747c0d37f084b7c WHIRLPOOL 899d8739847cb37cb636453e7a728a0ae9765958fd77828e7f099b1f4b7a4bdaae0fee93121ddc81a0f2bf5ab4292380c9edb405dc5ed64d3d3cecf26f5f23c7 diff --git a/games-roguelike/dwarf-fortress/dwarf-fortress-0.43.05.ebuild b/games-roguelike/dwarf-fortress/dwarf-fortress-0.43.05.ebuild new file mode 100644 index 0000000..9a47165 --- /dev/null +++ b/games-roguelike/dwarf-fortress/dwarf-fortress-0.43.05.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit versionator + +MY_PV=$(replace_all_version_separators _ "$(get_version_component_range 2-)") +MY_PN=df +MY_P=${MY_PN}_${MY_PV} + +DESCRIPTION="A single-player fantasy game" +HOMEPAGE="http://www.bay12games.com/dwarves" +SRC_URI="amd64? ( http://www.bay12games.com/dwarves/${MY_P}_linux.tar.bz2 ) + x86? ( http://www.bay12games.com/dwarves/${MY_P}_linux32.tar.bz2 )" + +LICENSE="free-noncomm BSD BitstreamVera" +SLOT="0" +KEYWORDS="~amd64 ~x86 -*" +IUSE="debug" + +RDEPEND="media-libs/glew + media-libs/libsdl[joystick,video] + media-libs/sdl-image[png] + media-libs/sdl-ttf + sys-libs/zlib + virtual/glu + x11-libs/gtk+:2" +# Yup, libsndfile, openal and ncurses are only needed at compile-time; the code +# dlopens them at runtime if requested. +DEPEND="${RDEPEND} + media-libs/libsndfile + media-libs/openal + sys-libs/ncurses[unicode] + virtual/pkgconfig" + +S=${WORKDIR}/${MY_PN}_linux + +gamesdir="/opt/${PN}" +QA_PREBUILT="${gamesdir#/}/libs/Dwarf_Fortress" +RESTRICT="strip" + +src_prepare() { + rm -f libs/*.so* || die + sed -i -e '1i#include <cmath>' g_src/ttf_manager.cpp || die + default +} + +src_configure() { + tc-export CXX PKG_CONFIG + CXXFLAGS+=" -D$(use debug || echo N)DEBUG" +} + +src_compile() { + emake -f "${FILESDIR}/Makefile.native" + sed -e "s:^gamesdir=.*:gamesdir=${gamesdir}:" "${FILESDIR}/dwarf-fortress" > dwarf-fortress || die +} + +src_install() { + # install data-files and libs + insinto "${gamesdir}" + doins -r raw data libs + + # install our wrapper + dobin dwarf-fortress + + # install docs + dodoc README.linux *.txt + + fperms 755 "${gamesdir}"/libs/Dwarf_Fortress +} + +pkg_postinst() { + elog "System-wide Dwarf Fortress has been installed to ${gamesdir}. This is" + elog "symlinked to ~/.dwarf-fortress when dwarf-fortress is run." + elog "For more information on what exactly is replaced, see /usr/bin/dwarf-fortress." + elog "Note: This means that the primary entry point is /usr/bin/dwarf-fortress." + elog "Do not run ${gamesdir}/libs/Dwarf_Fortress." + elog + elog "Optional runtime dependencies:" + elog "Install sys-libs/ncurses[unicode] for [PRINT_MODE:TEXT]" + elog "Install media-libs/openal and media-libs/libsndfile for audio output" + elog "Install media-libs/libsdl[opengl] for the OpenGL PRINT_MODE settings" +} diff --git a/games-roguelike/dwarf-fortress/files/Makefile.native b/games-roguelike/dwarf-fortress/files/Makefile.native new file mode 100644 index 0000000..85383e5 --- /dev/null +++ b/games-roguelike/dwarf-fortress/files/Makefile.native @@ -0,0 +1,28 @@ +# Copyright 2014-2016 Alex Xu (Hello71) +# Distributed under the terms of the GNU General Public License v2 + +SRCS := g_src/basics.cpp g_src/command_line.cpp g_src/enabler.cpp \ + g_src/files.cpp g_src/find_files_posix.cpp g_src/graphics.cpp \ + g_src/init.cpp g_src/interface.cpp g_src/keybindings.cpp \ + g_src/music_and_sound_openal.cpp g_src/random.cpp g_src/textlines.cpp \ + g_src/enabler_input.cpp g_src/KeybindingScreen.cpp \ + g_src/win32_compat.cpp g_src/textures.cpp g_src/resize++.cpp \ + g_src/renderer_offscreen.cpp g_src/ttf_manager.cpp g_src/ViewBase.cpp +OBJS := $(SRCS:.cpp=.o) + +BLIBS := ncursesw openal sndfile +LIBS := glew glu gtk+-2.0 sdl SDL_image SDL_ttf zlib +CXXFLAGS ?= -O2 -pipe -Wall -Wextra +CXXFLAGS += $(shell $(PKG_CONFIG) --cflags $(BLIBS) $(LIBS)) -Dunix -Dlinux -fPIC -std=c++11 -D_GLIBCXX_USE_CXX11_ABI=0 +LDLIBS := $(shell $(PKG_CONFIG) --libs $(LIBS)) + +LG := libs/libgraphics.so + +all: $(LG) +$(LG): $(OBJS) + $(LINK.cpp) -shared $^ $(LDLIBS) -o $@ + +clean: + $(RM) $(LG) $(OBJS) + +.PHONY: clean |