2016-02-27 16:59:31 +00:00
|
|
|
# Copyright 1999-2015 Gentoo Foundation
|
|
|
|
# Copyright 2016 Julian Ospald <hasufell@posteo.de>
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2016-05-26 13:12:46 +00:00
|
|
|
require desktop-utils
|
2016-04-23 02:22:08 +00:00
|
|
|
require cmake [ api=2 out_of_source=false ]
|
2016-04-22 14:10:55 +00:00
|
|
|
require sourceforge [ project=alleg suffix=tar.gz ]
|
2016-02-27 16:59:31 +00:00
|
|
|
|
|
|
|
SUMMARY="cross-platform multimedia library"
|
|
|
|
|
|
|
|
LICENCES="Allegro MIT GPL-2 ZLIB"
|
|
|
|
SLOT="0"
|
|
|
|
PLATFORMS="amd64 ~mips ppc ppc64 x86"
|
|
|
|
MYOPTIONS="
|
|
|
|
alsa
|
|
|
|
fbcon [[ description = [ Add framebuffer support for the console,
|
|
|
|
via the kernel ] ]]
|
|
|
|
jack
|
|
|
|
opengl
|
|
|
|
oss
|
|
|
|
ogg
|
|
|
|
( providers: ijg-jpeg jpeg-turbo ) [[ number-selected = exactly-one ]]
|
|
|
|
"
|
|
|
|
|
|
|
|
DEPENDENCIES="
|
|
|
|
build:
|
|
|
|
virtual/pkg-config
|
2018-02-25 16:36:47 +00:00
|
|
|
x11-proto/xorgproto
|
2016-02-27 16:59:31 +00:00
|
|
|
build+run:
|
|
|
|
media-libs/libpng:=
|
|
|
|
x11-libs/libX11
|
|
|
|
x11-libs/libXcursor
|
|
|
|
x11-libs/libXext
|
|
|
|
x11-libs/libXpm
|
|
|
|
x11-libs/libXt
|
|
|
|
x11-libs/libXxf86dga
|
|
|
|
x11-libs/libXxf86vm
|
|
|
|
alsa? ( sys-sound/alsa-lib )
|
|
|
|
jack? ( media-sound/jack-audio-connection-kit )
|
|
|
|
ogg? ( media-libs/libvorbis )
|
|
|
|
opengl? (
|
|
|
|
x11-dri/glu
|
|
|
|
x11-dri/mesa
|
|
|
|
)
|
|
|
|
providers:ijg-jpeg? ( media-libs/jpeg:= )
|
|
|
|
providers:jpeg-turbo? ( media-libs/libjpeg-turbo )
|
|
|
|
"
|
|
|
|
|
|
|
|
DEFAULT_SRC_PREPARE_PATCHES=(
|
2016-02-27 17:07:57 +00:00
|
|
|
-p0 "${FILES}"/${PNV}-underlink.patch
|
2016-02-27 16:59:31 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
CMAKE_SRC_CONFIGURE_PARAMS=(
|
2016-02-27 17:07:57 +00:00
|
|
|
"-DCMAKE_SKIP_BUILD_RPATH=TRUE"
|
2016-05-24 16:54:35 +00:00
|
|
|
"-DDOCDIR=/usr/share/doc"
|
|
|
|
"-DINFODIR=/usr/share/info"
|
|
|
|
"-DMANDIR=/usr/share/man"
|
2016-02-27 16:59:31 +00:00
|
|
|
"-DWANT_EXAMPLES=OFF"
|
|
|
|
"-DWANT_JPGALLEG=ON"
|
|
|
|
"-DWANT_LINUX_CONSOLE=OFF"
|
|
|
|
"-DWANT_LINUX_SVGALIB=OFF"
|
|
|
|
"-DWANT_LINUX_VGA=ON"
|
|
|
|
"-DWANT_LOADPNG=ON"
|
|
|
|
"-DWANT_TOOLS=ON"
|
|
|
|
"-DWANT_X11=ON"
|
|
|
|
)
|
|
|
|
|
|
|
|
CMAKE_SRC_CONFIGURE_OPTION_WANTS=(
|
|
|
|
"alsa ALSA"
|
|
|
|
"fbcon LINUX_FBCON"
|
|
|
|
"jack JACK"
|
|
|
|
"ogg LOGG"
|
|
|
|
"opengl ALLEGROGL"
|
|
|
|
"oss OSS"
|
|
|
|
)
|
|
|
|
|
|
|
|
CMAKE_SRC_CONFIGURE_TESTS=(
|
|
|
|
"-DWANT_TESTS=ON"
|
|
|
|
)
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
default
|
|
|
|
|
|
|
|
edo sed -i \
|
2016-02-27 17:07:57 +00:00
|
|
|
-e 's#ADDON_LINKAGE STATIC#ADDON_LINKAGE SHARED#' \
|
|
|
|
CMakeLists.txt
|
2016-02-27 16:59:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
cmake_src_install
|
|
|
|
|
|
|
|
newbin setup/setup ${PN}-setup
|
|
|
|
insinto /usr/share/${PN}
|
|
|
|
doins {keyboard,language,setup/setup}.dat
|
|
|
|
insinto /usr/share/pixmaps
|
|
|
|
newins misc/icon.png ${PN}.png
|
2016-05-26 13:12:46 +00:00
|
|
|
|
|
|
|
install_desktop_entry "Name=Allegro Setup" \
|
|
|
|
"Exec=allegro-setup" "Categories=Settings;"
|
2016-02-27 16:59:31 +00:00
|
|
|
}
|
|
|
|
|