2016-02-16 14:02:13 +00:00
|
|
|
# Copyright 2016 Julian Ospald <hasufell@posteo.de>
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Id$
|
|
|
|
|
2016-04-23 02:22:08 +00:00
|
|
|
require cmake [ api=2 ] gtk-icon-cache
|
2016-04-22 15:42:34 +00:00
|
|
|
require github [ user=minetest ]
|
2016-02-16 14:02:13 +00:00
|
|
|
|
|
|
|
SUMMARY="An InfiniMiner/Minecraft inspired game"
|
|
|
|
HOMEPAGE="http://minetest.net/"
|
2016-04-22 15:42:34 +00:00
|
|
|
DOWNLOADS+=" http://github.com/minetest/minetest_game/tarball/${PV} -> minetest_game-${PV}.tar.gz"
|
2016-02-16 14:02:13 +00:00
|
|
|
|
2016-02-17 01:53:28 +00:00
|
|
|
LICENCES="|| ( LGPL-2.1 LGPL-3 ) CCPL-Attribution-ShareAlike-3.0"
|
2016-02-16 14:02:13 +00:00
|
|
|
SLOT="0"
|
|
|
|
PLATFORMS="~amd64 ~x86"
|
|
|
|
MYOPTIONS="
|
|
|
|
( providers: ijg-jpeg jpeg-turbo ) [[ number-selected = exactly-one ]]
|
|
|
|
"
|
|
|
|
|
|
|
|
DEPENDENCIES="
|
2016-02-28 23:05:15 +00:00
|
|
|
build:
|
|
|
|
sys-devel/gettext
|
2016-02-16 14:02:13 +00:00
|
|
|
build+run:
|
|
|
|
app-arch/bzip2
|
|
|
|
dev-db/leveldb
|
|
|
|
dev-db/sqlite:3
|
|
|
|
dev-games/irrlicht[>=1.8]
|
|
|
|
dev-libs/gmp:0
|
|
|
|
dev-libs/hiredis
|
|
|
|
media-libs/freetype:2
|
|
|
|
media-libs/libogg
|
|
|
|
media-libs/libpng:=
|
|
|
|
media-libs/libvorbis
|
|
|
|
media-libs/openal
|
|
|
|
net-misc/curl
|
2016-05-16 23:11:38 +00:00
|
|
|
sys-libs/ncurses
|
2016-02-16 14:02:13 +00:00
|
|
|
sys-libs/zlib
|
|
|
|
x11-dri/mesa
|
|
|
|
x11-libs/libX11
|
|
|
|
x11-libs/libXxf86vm
|
2016-02-28 23:05:15 +00:00
|
|
|
providers:ijg-jpeg? ( media-libs/jpeg:= )
|
|
|
|
providers:jpeg-turbo? ( media-libs/libjpeg-turbo )
|
|
|
|
run:
|
|
|
|
user/minetest
|
|
|
|
group/minetest
|
2016-02-16 14:02:13 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
CMAKE_SRC_CONFIGURE_PARAMS=(
|
|
|
|
-DBUILD_SERVER=ON
|
|
|
|
-DBUILD_CLIENT=ON
|
2016-05-16 23:11:38 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX="/usr"
|
2016-02-16 14:02:13 +00:00
|
|
|
-DCUSTOM_BINDIR="/usr/$(exhost --target)/bin"
|
|
|
|
-DCUSTOM_DOCDIR="/usr/share/doc/${PNVR}"
|
|
|
|
-DCUSTOM_LOCALEDIR="/usr/share/locale"
|
|
|
|
-DCUSTOM_SHAREDIR="/usr/share/${PN}"
|
|
|
|
-DENABLE_CURL=ON
|
|
|
|
-DENABLE_FREETYPE=ON
|
|
|
|
-DENABLE_GETTEXT=ON
|
|
|
|
-DENABLE_GLES=0
|
|
|
|
-DENABLE_LEVELDB=ON
|
2016-12-30 21:27:30 +00:00
|
|
|
-DENABLE_POSTGRESQL=OFF
|
2016-02-16 14:02:13 +00:00
|
|
|
-DENABLE_REDIS=ON
|
|
|
|
-DENABLE_SPATIAL=OFF
|
|
|
|
-DENABLE_SOUND=ON
|
|
|
|
-DENABLE_LUAJIT=OFF
|
|
|
|
-DRUN_IN_PLACE=0
|
|
|
|
-DIRRLICHT_INCLUDE_DIR=/usr/$(exhost --target)/include/irrlicht
|
|
|
|
-DCUSTOM_EXAMPLE_CONF_DIR=/usr/share/doc/${PNVR}
|
|
|
|
)
|
|
|
|
|
|
|
|
src_unpack() {
|
|
|
|
default
|
|
|
|
edo mv minetest-minetest_game-* minetest_game-${PV}
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
cmake_src_install
|
|
|
|
|
|
|
|
edo cd "${WORKBASE}"/minetest_game-${PV}
|
2016-02-17 01:53:28 +00:00
|
|
|
insinto /usr/share/minetest/games/${PN}
|
|
|
|
doins -r mods menu
|
|
|
|
doins game.conf minetest.conf
|
2016-02-16 14:02:13 +00:00
|
|
|
}
|
2016-02-28 23:05:15 +00:00
|
|
|
|