2018-09-10 00:42:26 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.libsdl.org
|
|
|
|
TERMUX_PKG_DESCRIPTION="A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (version 2)"
|
2021-12-31 11:49:21 +01:00
|
|
|
TERMUX_PKG_LICENSE="ZLIB"
|
2021-08-25 12:47:33 +02:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2022-03-03 20:25:54 +01:00
|
|
|
TERMUX_PKG_VERSION=2.0.20
|
2022-03-16 08:58:46 +01:00
|
|
|
TERMUX_PKG_REVISION=2
|
2018-09-10 00:42:26 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://www.libsdl.org/release/SDL2-${TERMUX_PKG_VERSION}.tar.gz
|
2022-03-03 20:25:54 +01:00
|
|
|
TERMUX_PKG_SHA256=c56aba1d7b5b0e7e999e4a7698c70b63a3394ff9704b5f6e1c57e0c16f04dd06
|
2019-10-08 15:07:08 +02:00
|
|
|
TERMUX_PKG_DEPENDS="libandroid-glob, libflac, libogg, libsndfile, libvorbis, libx11, libxau, libxcb, libxcursor, libxdmcp, libxext, libxfixes, libxi, libxinerama, libxrandr, libxrender, libxss, libxxf86vm, pulseaudio"
|
2022-03-16 08:58:46 +01:00
|
|
|
TERMUX_PKG_BUILD_DEPENDS="mesa"
|
|
|
|
TERMUX_PKG_RECOMMENDS="mesa"
|
fix names for more packages
Now x11-packages repository will use original names for
packages. For example, libgtk2 now will be provided as
gtk2, libgtk3 will be available as gtk3, libsdl - as sdl.
List of changed packages:
libatk --> atk
libglu --> glu
libgtk2 --> gtk2
libgtk3 --> gtk3
libmesa --> mesa
libsdl --> sdl
libsdl2 --> sdl2
libsdl-net --> sdl-net
riscvemu-sdl --> riscvemu
xorg-xvfb --> xorg-server-xvfb
List of dependent packages (should be rebuilt with new deps):
dosbox, emacs-x, galculator, geany, libepoxy, mtpaint,
qemu-system-x86_64, the-powder-toy, tigervnc, wireshark-gtk,
xarchiver.
Note: depending on which packages are installed, it may be
necessary to upgrade with 'apt dist-upgrade'.
2018-10-03 20:02:25 +02:00
|
|
|
TERMUX_PKG_CONFLICTS="libsdl2"
|
|
|
|
TERMUX_PKG_REPLACES="libsdl2"
|
2018-09-10 00:42:26 +02:00
|
|
|
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
--x-includes=${TERMUX_PREFIX}/include
|
|
|
|
--x-libraries=${TERMUX_PREFIX}/lib
|
|
|
|
--disable-assembly
|
|
|
|
--disable-mmx
|
|
|
|
--disable-3dnow
|
|
|
|
--disable-oss
|
|
|
|
--disable-alsa
|
|
|
|
--disable-esd
|
|
|
|
--disable-video-wayland
|
|
|
|
--disable-video-rpi
|
|
|
|
--enable-video-x11-xcursor
|
|
|
|
--enable-video-x11-xinerama
|
|
|
|
--enable-video-x11-xinput
|
|
|
|
--enable-video-x11-xrandr
|
|
|
|
--enable-video-x11-scrnsaver
|
|
|
|
--enable-video-x11-xshape
|
|
|
|
--enable-video-x11-vm
|
|
|
|
--disable-video-vivante
|
|
|
|
--disable-video-cocoa
|
|
|
|
--disable-render-metal
|
2022-03-16 08:58:46 +01:00
|
|
|
--enable-video-opengl
|
2018-09-10 00:42:26 +02:00
|
|
|
--disable-video-opengles
|
|
|
|
--disable-video-opengles2
|
|
|
|
--disable-video-vulkan
|
|
|
|
--disable-libudev
|
|
|
|
--disable-dbus
|
|
|
|
--disable-ime
|
|
|
|
--disable-ibus
|
|
|
|
--disable-fcitx
|
|
|
|
--enable-pthreads
|
|
|
|
--disable-pthread-sem
|
|
|
|
--disable-directx
|
|
|
|
--disable-render-d3d
|
|
|
|
"
|
2021-12-31 11:36:01 +01:00
|
|
|
|
|
|
|
termux_step_pre_configure() {
|
|
|
|
rm -rf "$TERMUX_PKG_SRCDIR"/Xcode-iOS
|
|
|
|
find "$TERMUX_PKG_SRCDIR" -type f | \
|
|
|
|
xargs -n 1 sed -i \
|
|
|
|
-e 's/\([^A-Za-z0-9_]__ANDROID\)\(__[^A-Za-z0-9_]\)/\1_NO_TERMUX\2/g' \
|
|
|
|
-e 's/\([^A-Za-z0-9_]__ANDROID\)__$/\1_NO_TERMUX__/g'
|
|
|
|
}
|
2022-03-13 05:35:51 +01:00
|
|
|
|
2022-03-17 15:20:30 +01:00
|
|
|
termux_step_post_massage() {
|
|
|
|
cd ${TERMUX_PKG_MASSAGEDIR}/${TERMUX_PREFIX}/lib || exit 1
|
|
|
|
if [ ! -e "./libSDL2.so" ]; then
|
|
|
|
ln -sf libSDL2-2.0.so libSDL2.so
|
|
|
|
fi
|
|
|
|
if [ ! -e "./libSDL2-2.0.so.0" ]; then
|
|
|
|
ln -sf libSDL2-2.0.so libSDL2-2.0.so.0
|
|
|
|
fi
|
2022-03-13 05:35:51 +01:00
|
|
|
}
|