Permalink
Fetching contributors…
Cannot retrieve contributors at this time
135 lines (118 sloc) 4.79 KB
PortSystem 1.0
name scummvm
platforms darwin
categories emulators games
maintainers {kencu @kencu} openmaintainer
license {GPL-2 BSD}
description cross-platform interpreter for several adventure engines
long_description \
ScummVM is a cross-platform interpreter for several point-and-click \
adventure engines. A current list of playable games is available at \
<https://www.scummvm.org/compatibility/>.
homepage https://scummvm.org/
subport ${name}-devel {}
if {${subport} eq ${name}} {
# release
conflicts ${name}-devel
long_description ${description}: \
This port follows the release version of ${name}, which is typically updated every \
6 months. If for some reason this port does not build or function as desired, try \
the ${name}-devel port.
version 2.0.0
revision 2
master_sites http://scummvm.org/frs/${name}/${version}
use_bzip2 yes
checksums sha256 46482e9f4eccd8590a86c70b024bdd0b319af8cbe8b7abaef592a9c52abbe1dc \
rmd160 669f1e8c342e874d2478593898cb6840531eff01
} else {
# devel
conflicts ${name}
long_description ${description}: \
This port follows the master version of ${name}, which is typically updated every few weeks.
PortGroup github 1.0
github.setup scummvm scummvm f99977255cf979568f0d57f977c10ac26f2ff4ac
version 20180719
revision 2
checksums rmd160 666bbae9f3276a39f025a20255dd4f72b278e995 \
sha256 d79078791e3c84ef76e36c0e94a2c6d5aff4645be90e1d850fccc7c2f41a26f9 \
size 32852665
}
patchfiles-append patch-scummvm-sdl2indet.diff
depends_lib-append port:libsdl2 \
port:libsdl2_net \
port:libmad \
port:libogg \
port:libvorbis \
port:libpng \
port:flac \
port:libtheora \
port:fluidsynth \
port:faad2 \
port:jpeg \
port:freetype \
port:bzip2 \
port:curl \
port:expat \
port:gettext \
path:lib/pkgconfig/glib-2.0.pc:glib2 \
port:libedit \
port:libffi \
port:libiconv \
port:libsndfile \
port:ncurses \
port:pcre \
port:portaudio \
port:readline \
port:zlib
configure.args-append \
--enable-release \
--enable-plugins \
--default-dynamic \
--enable-sdlnet \
--enable-cloud \
--enable-libcurl \
--enable-theoradec \
--enable-jpeg \
--enable-readline \
--enable-all-engines \
--enable-verbose-build
# libcurl needs --enable-cloud as well otherwise like errors
# also connected to --enable-sdlnet
variant cxx11 description {build with c++11} {
# scummvm builds fine without c++11
# I'm not sure if there is any advantage to enabling c++11 support at present
# but keep it here as a variant in case someone finds there is
PortGroup cxx11 1.1
configure.args-append \
--enable-c++11
}
variant mpeg2 description {add mpeg2 support - has many dependencies} {
# this builds fine, but libmpeg2 is old (2008) and pulls in a lot of deps
# and I'm not sure if any games actually use this - make it optional
configure.args-append \
--enable-mpeg2
depends_lib-append \
port:libmpeg2 \
port:db48 \
port:libsdl \
port:libxml2 \
path:lib/libssl.dylib:openssl \
port:python27 \
port:python2_select \
port:python_select \
port:sqlite3 \
port:xorg-xorgproto \
port:xorg-libX11 \
port:xorg-libXau \
port:xorg-libXdmcp \
port:xorg-libXext \
port:xorg-libXrandr \
port:xorg-libXv \
port:xorg-libice \
port:xorg-libpthread-stubs \
port:xorg-libsm \
port:xorg-libxcb \
port:xorg-xcb-proto \
port:xrender \
port:xz
}