summaryrefslogtreecommitdiff
path: root/package/sdl2
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2024-01-21 16:09:47 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2024-01-21 16:21:25 +0100
commitfc6cbda8bc99732c882bebfbcb70c56a9dbaa6b6 (patch)
tree29e01c0b5858a5b0e31b8240e0b18c1374b9cf39 /package/sdl2
parent6242087c99b37f06756fd921411538889199f5ae (diff)
chocolate-doom: add new package, add all dependencies and updates required to build
Diffstat (limited to 'package/sdl2')
-rw-r--r--package/sdl2/Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/package/sdl2/Makefile b/package/sdl2/Makefile
new file mode 100644
index 000000000..2133ba867
--- /dev/null
+++ b/package/sdl2/Makefile
@@ -0,0 +1,29 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk
+
+PKG_NAME:= sdl2
+PKG_VERSION:= 2.28.5
+PKG_RELEASE:= 1
+PKG_HASH:= 9f0556e4a24ef5b267010038ad9e9948b62f236d5bcc4b22179f95ef62d84023
+PKG_DESCR:= simple directmedia layer 2
+PKG_SECTION:= libs/misc
+PKG_URL:= http://www.libsdl.org/
+PKG_SITES:= https://github.com/libsdl-org/SDL/archive/refs/tags/
+PKG_LIBNAME:= libsdl2
+PKG_OPTS:= dev
+
+DISTFILES:= release-$(PKG_VERSION).tar.gz
+WRKDIST= ${WRKDIR}/SDL-release-$(PKG_VERSION)
+
+include $(ADK_TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,LIBSDL2,libsdl2,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
+
+libsdl2-install:
+ $(INSTALL_DIR) $(IDIR_LIBSDL2)/usr/lib
+ $(CP) $(WRKINST)/usr/lib/libSDL2*.so* \
+ $(IDIR_LIBSDL2)/usr/lib
+
+include $(ADK_TOPDIR)/mk/pkg-bottom.mk