banana-pro: bring it in shape
[openadk.git] / package / sdl2 / Makefile
blob3e3b3e091fd189c216a7ce8f85269e94e91c63be
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= sdl2
7 PKG_VERSION:= 2.28.5
8 PKG_RELEASE:= 1
9 PKG_HASH:= 9f0556e4a24ef5b267010038ad9e9948b62f236d5bcc4b22179f95ef62d84023
10 PKG_DESCR:= simple directmedia layer 2
11 PKG_SECTION:= libs/misc
12 PKG_URL:= http://www.libsdl.org/
13 PKG_SITES:= https://github.com/libsdl-org/SDL/archive/refs/tags/
14 PKG_BUILDDEP:= mesa libdrm alsa-lib DirectFB
15 PKG_DEPENDS:= mesa libdrm alsa-lib directfb
16 PKG_LIBNAME:= libsdl2
17 PKG_OPTS:= dev
19 DISTFILES:= release-$(PKG_VERSION).tar.gz
20 WRKDIST= ${WRKDIR}/SDL-release-$(PKG_VERSION)
22 include $(ADK_TOPDIR)/mk/package.mk
24 $(eval $(call PKG_template,LIBSDL2,libsdl2,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
26 CONFIGURE_ARGS+= --enable-video-directfb
28 libsdl2-install:
29 $(INSTALL_DIR) $(IDIR_LIBSDL2)/usr/lib
30 $(CP) $(WRKINST)/usr/lib/libSDL2*.so* \
31 $(IDIR_LIBSDL2)/usr/lib
33 include $(ADK_TOPDIR)/mk/pkg-bottom.mk