ports/opt (3.6): [notify] libsdl2: fix build options
commit 1476785a8004e480b91a1e32dee8ece2a217f0fc Author: Danny Rawlins <contact@romster.me> Date: Sun Dec 12 18:51:59 2021 +1100 [notify] libsdl2: fix build options diff --git a/libsdl2/.signature b/libsdl2/.signature index 44cc20eff..01b2d0e7e 100644 --- a/libsdl2/.signature +++ b/libsdl2/.signature @@ -1,5 +1,5 @@ untrusted comment: verify with /etc/ports/opt.pub -RWSE3ohX2g5d/YVw6s2pT803ECPUr83idvPNACQqorXJNd8fPHLeK/SynT3B2gn2ZJXpu3mBaAEmqReLPIYnYlq+ExVn7ZPz7wo= -SHA256 (Pkgfile) = 22d2d521882a61a2d256e5a31118e97353205c4af12acd275b199b0160cef655 +RWSE3ohX2g5d/SwiObi8cZ98jD3XlWpAeDTK4fUdyfkB9ZwDaXSKhFnQ57gKtRs8TKzqOSWytXa5ZFRxnQAAJsgVE52qMZ4DowA= +SHA256 (Pkgfile) = 699de3d7888748f6bfa78ed0a9187cdef09538eaec5e9ab9f1c2c32b4fc8b046 SHA256 (.footprint) = 35fddd68b42b5d279cf8ad85cdf6334d76a68cbf13fc9492804d31234ba790bc SHA256 (SDL2-2.0.18.tar.gz) = 94d40cd73dbfa10bb6eadfbc28f355992bb2d6ef6761ad9d4074eff95ee5711c diff --git a/libsdl2/Pkgfile b/libsdl2/Pkgfile index 34e213591..7f39c73dc 100644 --- a/libsdl2/Pkgfile +++ b/libsdl2/Pkgfile @@ -2,21 +2,21 @@ # URL: https://www.libsdl.org # Maintainer: Juergen Daubert, jue at crux dot nu # Depends on: mesa cmake -# Optional: alsa-lib jack ninja pipewire pulseaudio wayland-protocols +# Optional: alsa-lib ibus jack ninja pipewire pulseaudio wayland-protocols name=libsdl2 version=2.0.18 -release=1 +release=2 source=(https://www.libsdl.org/release/SDL2-$version.tar.gz) build() { - prt-get isinst alsa-lib && PKGMK_SDL2+=' -D ALSA=ON' prt-get isinst ninja && PKGMK_SDL2+=' -G Ninja' + prt-get isinst alsa-lib && PKGMK_SDL2+=' -D SDL_ALSA_SHARED=ON' prt-get isinst ibus && PKGMK_SDL2+=' -D SDL_USE_IME=ON' - prt-get isinst jack && PKGMK_SDL2+=' -D JACK_SHARED=ON' - prt-get isinst pipewire && PKGMK_SDL2+=' -D PIPEWIRE=ON -D PIPEWIRE_SHARED=ON' - prt-get isinst pulseaudio && PKGMK_SDL2+=' -D PULSEAUDIO_SHARED=ON' - prt-get isinst wayland-protocols && PKGMK_SDL2+=' -D VIDEO_WAYLAND=ON' + prt-get isinst jack && PKGMK_SDL2+=' -D SDL_JACK_SHARED=ON' + prt-get isinst pipewire && PKGMK_SDL2+=' -D SDL_PIPEWIRE_SHARED=ON' + prt-get isinst pulseaudio && PKGMK_SDL2+=' -D SDL_PULSEAUDIO_SHARED=ON' + prt-get isinst wayland-protocols && PKGMK_SDL2+=' -D SDL_WAYLAND_SHARED=ON' cmake -S SDL2-$version -B build $PKGMK_SDL2 \ -D CMAKE_INSTALL_PREFIX=/usr \ @@ -24,8 +24,8 @@ build() { -D CMAKE_BUILD_TYPE=Release \ -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \ -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \ - -D CLOCK_GETTIME=ON \ - -D RPATH=OFF \ + -D SDL_CLOCK_GETTIME=ON \ + -D SDL_RPATH=OFF \ -D SDL_DLOPEN=ON cmake --build build -j ${JOBS:-1} DESTDIR=$PKG cmake --install build
participants (1)
-
crux@crux.nu