hasufell-repository/packages/games-arcade/opensonic/opensonic-0.1.4.exheres-0

54 lines
1.2 KiB
Bash
Raw Permalink Normal View History

# Copyright 2016 Julian Ospald <hasufell@posteo.de>
# Distributed under the terms of the GNU General Public License v2
MY_PN=opensnc
MY_PNV=${MY_PN}-src-${PV}
2016-04-23 02:22:08 +00:00
WORK=${WORKBASE}/${MY_PNV}
require cmake [ api=2 ]
require sourceforge [ project=opensnc pnv=${MY_PNV} suffix=tar.gz ]
SUMMARY="A free open-source game based on the Sonic the Hedgehog universe"
LICENCES="GPL-2"
SLOT="0"
PLATFORMS="~amd64 ~x86"
MYOPTIONS="
( providers: ijg-jpeg jpeg-turbo ) [[ number-selected = exactly-one ]]
"
DEPENDENCIES="
build+run:
media-libs/allegro:0[ogg]
media-libs/libogg
media-libs/libpng:=
media-libs/libvorbis
sys-libs/zlib
providers:ijg-jpeg? ( media-libs/jpeg:= )
providers:jpeg-turbo? ( media-libs/libjpeg-turbo )
"
DEFAULT_SRC_PREPARE_PATCHES=(
-p0 "${FILES}"/${PNV}-cmake.patch
)
CMAKE_SRC_CONFIGURE_PARAMS=(
-DGAME_INSTALL_DIR=/opt/${PN}
-DGAME_FINAL_DIR="/usr/$(exhost --target)/bin"
-DGAME_LIBDIR="/opt/${PN}"
-DCMAKE_INSTALL_PREFIX="/usr"
)
pkg_setup() {
exdirectory --allow /opt
}
src_install() {
2016-02-28 23:43:54 +00:00
cmake_src_install
# rm misplaced docs
edo rm "${IMAGE}"/usr/share/doc/${PNVR}/*.html
}