2016-02-28 23:05:15 +00:00
|
|
|
# Copyright 2016 Julian Ospald <hasufell@posteo.de>
|
2016-02-15 23:55:13 +00:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2016-04-22 15:42:34 +00:00
|
|
|
MY_PNV=MyGUI${PV}
|
2016-02-28 23:05:15 +00:00
|
|
|
WORK="${WORKBASE}/${PN}-${MY_PNV}"
|
2016-02-15 23:55:13 +00:00
|
|
|
|
|
|
|
require cmake [ api=2 ]
|
2016-04-22 15:42:34 +00:00
|
|
|
require github [ user=MyGUI tag=${MY_PNV} ]
|
2016-02-15 23:55:13 +00:00
|
|
|
|
|
|
|
SUMMARY="A library for creating GUIs for games"
|
|
|
|
HOMEPAGE="http://mygui.info/"
|
|
|
|
|
|
|
|
LICENCES="MIT"
|
|
|
|
SLOT="0"
|
|
|
|
PLATFORMS="~amd64 ~x86"
|
|
|
|
|
|
|
|
DEPENDENCIES="
|
2016-03-04 15:56:23 +00:00
|
|
|
build:
|
|
|
|
virtual/pkg-config
|
2016-02-15 23:55:13 +00:00
|
|
|
build+run:
|
|
|
|
media-libs/freetype:2
|
|
|
|
media-libs/glew
|
|
|
|
x11-dri/mesa
|
|
|
|
"
|
|
|
|
|
2016-04-22 15:42:34 +00:00
|
|
|
|
2016-02-15 23:55:13 +00:00
|
|
|
DEFAULT_SRC_PREPARE_PATCHES=(
|
|
|
|
-p0 "${FILES}"/${PNV}-underlinking.patch
|
2016-02-17 01:53:28 +00:00
|
|
|
-p1 "${FILES}"/${PNV}-build.patch
|
|
|
|
-p1 "${FILES}"/${PNV}-FHS.patch
|
2016-02-15 23:55:13 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
CMAKE_SRC_CONFIGURE_PARAMS=(
|
|
|
|
-DMYGUI_BUILD_DEMOS=OFF
|
|
|
|
-DMYGUI_BUILD_DOCS=OFF
|
|
|
|
-DMYGUI_BUILD_PLUGINS=ON
|
|
|
|
-DMYGUI_BUILD_TOOLS=OFF
|
|
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
|
|
-DMYGUI_BUILD_WRAPPER=OFF
|
|
|
|
-DMYGUI_INSTALL_DOCS=OFF
|
|
|
|
-DMYGUI_INSTALL_MEDIA=ON
|
|
|
|
-DMYGUI_INSTALL_SAMPLES=OFF
|
|
|
|
-DMYGUI_INSTALL_TOOLS=OFF
|
|
|
|
-DMYGUI_RENDERSYSTEM=4
|
|
|
|
-DMYGUI_STATIC=OFF
|
|
|
|
-DMYGUI_USE_FREETYPE=ON
|
|
|
|
-DMYGUI_USE_SYSTEM_GLEW=ON
|
|
|
|
)
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
cmake_src_install
|
|
|
|
|
2016-02-17 01:53:28 +00:00
|
|
|
keepdir /etc/MYGUI
|
2016-02-15 23:55:13 +00:00
|
|
|
|
2016-02-17 01:53:28 +00:00
|
|
|
# test media not needed at runtime
|
|
|
|
edo rm -rf "${IMAGE}"/usr/share/MYGUI/Media/UnitTests
|
|
|
|
# wrapper not available for linux, remove related media
|
|
|
|
edo rm -rf "${IMAGE}"/usr/share/MYGUI/Media/Wrapper
|
2016-02-15 23:55:13 +00:00
|
|
|
}
|
2016-02-28 23:05:15 +00:00
|
|
|
|