2016-04-21 12:34:54 +00:00
|
|
|
# Copyright 2016 Julian Ospald
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2016-12-03 23:48:43 +00:00
|
|
|
require github [ user=solarus-games tag=v${PV} ] \
|
2016-04-21 12:34:54 +00:00
|
|
|
cmake [ api=2 ] \
|
|
|
|
lua [ whitelist="5.1" multibuild=false ] \
|
|
|
|
gtk-icon-cache
|
|
|
|
|
|
|
|
SUMMARY="GUI to edit quests for the Solarus engine"
|
|
|
|
|
|
|
|
LICENCES="
|
|
|
|
GPL-3 [[ note = [ original source code ] ]]
|
|
|
|
CCPL-Attribution-ShareAlike-3.0 [[ note = [ images in the editor ] ]]
|
|
|
|
"
|
|
|
|
SLOT="0"
|
|
|
|
PLATFORMS="~amd64 ~x86"
|
|
|
|
MYOPTIONS=""
|
|
|
|
|
|
|
|
DEPENDENCIES="
|
2016-04-21 12:36:21 +00:00
|
|
|
build:
|
|
|
|
x11-libs/qttools:5
|
2016-04-21 12:34:54 +00:00
|
|
|
build+run:
|
|
|
|
dev-games/physfs
|
|
|
|
games-engines/solarus[~${PV}]
|
|
|
|
media-libs/SDL:2
|
|
|
|
media-libs/SDL_image:2
|
|
|
|
media-libs/SDL_ttf:2
|
|
|
|
media-libs/libmodplug[>=0.8.8.4]
|
|
|
|
media-libs/libvorbis
|
|
|
|
media-libs/openal
|
|
|
|
x11-libs/qtbase:5
|
|
|
|
"
|
|
|
|
|
|
|
|
BUGS_TO="hasufell@posteo.de"
|
|
|
|
|
|
|
|
CMAKE_SRC_CONFIGURE_PARAMS=(
|
|
|
|
-DSOLARUS_USE_LUAJIT=OFF
|
|
|
|
-DSOLARUS_INCLUDE_DIR="/usr/$(exhost --target)/include/solarus"
|
|
|
|
-DSOLARUS_LIBRARY="/usr/$(exhost --target)/lib/libsolarus.so"
|
|
|
|
)
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
cmake_src_prepare
|
|
|
|
|
|
|
|
edo sed -i \
|
|
|
|
-e "s#^Exec=.*#Exec=${PN}#" \
|
|
|
|
-e "s#^Icon=.*#Icon=${PN}#" \
|
|
|
|
"${CMAKE_SOURCE}"/resources/solarus-quest-editor.desktop
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
dobin solarus-quest-editor
|
|
|
|
|
|
|
|
insinto /usr/share/applications
|
|
|
|
doins "${CMAKE_SOURCE}"/resources/solarus-quest-editor.desktop
|
|
|
|
|
|
|
|
insinto /usr/share/icons/hicolor/128x128/apps
|
|
|
|
newins "${CMAKE_SOURCE}"/images/icon/sqe-icon-png-128px.png ${PN}.png
|
|
|
|
}
|
|
|
|
|