mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH 0/6] sdl2: add support for new packages
@ 2018-07-12 17:30 Michael Grzeschik
  2018-07-12 17:30 ` [ptxdist] [PATCH 1/6] sdl2: add new package Michael Grzeschik
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: Michael Grzeschik @ 2018-07-12 17:30 UTC (permalink / raw)
  To: ptxdist

This series adds support for new packages from the sdl2 project.

Michael Grzeschik (6):
  sdl2: add new package
  sdl2-test: add new package
  sdl2-image: add new package
  sdl2-net: add new package
  sdl2-ttf: add new package
  sdl2-mixer: add new package

 rules/sdl2-image.in   |  52 +++++++++++
 rules/sdl2-image.make |  78 ++++++++++++++++
 rules/sdl2-mixer.in   |  11 +++
 rules/sdl2-mixer.make |  58 ++++++++++++
 rules/sdl2-net.in     |  10 +++
 rules/sdl2-net.make   |  58 ++++++++++++
 rules/sdl2-test.in    |  12 +++
 rules/sdl2-test.make  | 165 ++++++++++++++++++++++++++++++++++
 rules/sdl2-ttf.in     |  12 +++
 rules/sdl2-ttf.make   |  58 ++++++++++++
 rules/sdl2.in         | 203 ++++++++++++++++++++++++++++++++++++++++++
 rules/sdl2.make       | 153 +++++++++++++++++++++++++++++++
 12 files changed, 870 insertions(+)
 create mode 100644 rules/sdl2-image.in
 create mode 100644 rules/sdl2-image.make
 create mode 100644 rules/sdl2-mixer.in
 create mode 100644 rules/sdl2-mixer.make
 create mode 100644 rules/sdl2-net.in
 create mode 100644 rules/sdl2-net.make
 create mode 100644 rules/sdl2-test.in
 create mode 100644 rules/sdl2-test.make
 create mode 100644 rules/sdl2-ttf.in
 create mode 100644 rules/sdl2-ttf.make
 create mode 100644 rules/sdl2.in
 create mode 100644 rules/sdl2.make

-- 
2.18.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ptxdist] [PATCH 1/6] sdl2: add new package
  2018-07-12 17:30 [ptxdist] [PATCH 0/6] sdl2: add support for new packages Michael Grzeschik
@ 2018-07-12 17:30 ` Michael Grzeschik
  2018-07-12 17:30 ` [ptxdist] [PATCH 2/6] sdl2-test: " Michael Grzeschik
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 11+ messages in thread
From: Michael Grzeschik @ 2018-07-12 17:30 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
---
 rules/sdl2.in   | 203 ++++++++++++++++++++++++++++++++++++++++++++++++
 rules/sdl2.make | 153 ++++++++++++++++++++++++++++++++++++
 2 files changed, 356 insertions(+)
 create mode 100644 rules/sdl2.in
 create mode 100644 rules/sdl2.make

diff --git a/rules/sdl2.in b/rules/sdl2.in
new file mode 100644
index 000000000..813613918
--- /dev/null
+++ b/rules/sdl2.in
@@ -0,0 +1,203 @@
+## SECTION=multimedia_sdl
+
+menuconfig SDL2
+	tristate
+	prompt "SDL2"
+	select LIBC_M
+	select LIBC_DL
+	select LIBC_PTHREAD
+	select GCCLIBS_GCC_S
+	select LIBUNWIND
+	select CROSS_NASM		if SDL2_VIDEO
+	select ALSA_LIB			if SDL2_ALSA
+	select XORG_LIB_X11		if SDL2_XORG
+	select XORG_LIB_XT		if SDL2_XORG
+	select XORG_LIB_XVMC		if SDL2_XORG && SDL2_VIDEO
+	select DIRECTFB			if SDL2_DIRECTFB
+	select TSLIB			if SDL2_TSLIB
+	select DBUS			if SDL2_DBUS
+	select LIBDRM			if SDL2_WAYLAND
+	select MESALIB			if SDL2_WAYLAND
+	select MESALIB_GBM		if SDL2_WAYLAND
+	select MESALIB_EGL		if SDL2_WAYLAND
+	select MESALIB_EGL_DRM		if SDL2_WAYLAND
+	select MESALIB_EGL_WAYLAND	if SDL2_WAYLAND
+	select LIBXKBCOMMON		if SDL2_WAYLAND
+	select UDEV			if SDL2_UDEV
+	select UDEV_LIBUDEV		if SDL2_UDEV
+	select PULSEAUDIO		if SDL2_PULSEAUDIO
+	select WAYLAND			if SDL2_WAYLAND
+	select WAYLAND_PROTOCOLS	if SDL2_WAYLAND
+	help
+	  Simple DirectMedia Layer is a cross-platform multimedia
+	  library designed to provide low level access to audio,
+	  keyboard, mouse, joystick, 3D hardware via OpenGL, and
+	  2D video framebuffer.
+
+if SDL2
+
+config SDL2_TIMERS
+	bool
+	prompt "SDL2 Timers Support"
+	default y
+	help
+	  FIXME
+
+config SDL2_FILE
+	bool
+	prompt "SDL2 File Support"
+	default y
+	help
+	  FIXME
+
+config SDL2_CPUINFO
+	bool
+	prompt "SDL2 CPU Info Support"
+	default y
+	help
+	  FIXME
+
+menuconfig SDL2_AUDIO
+	bool
+	prompt "SDL2 Audio Support             "
+	default y
+	help
+	  FIXME
+
+if SDL2_AUDIO
+
+config SDL2_OSS
+	bool
+	prompt "SDL2 OSS Support"
+	help
+	  Open Sound System (OSS) is the first attempt in
+	  unifying the digital audio architecture for UNIX.
+	  OSS is a set of device drivers that provide a
+	  uniform API across all the major UNIX architectures.
+
+config SDL2_ALSA
+	bool
+	prompt "SDL2 ALSA Support"
+	default y
+	help
+	  The Advanced Linux Sound Architecture (ALSA)
+	  provides audio and MIDI functionality to the
+	  Linux operating system.
+
+config SDL2_PULSEAUDIO
+	bool
+	prompt "SDL2 Pulseaudio Support"
+	default y
+	help
+	  pulseaudio
+
+endif
+
+menuconfig SDL2_VIDEO
+	bool
+	prompt "SDL2 Video Support             "
+	default y
+	help
+	  FIXME
+
+if SDL2_VIDEO
+
+config SDL2_KMS
+	bool
+	prompt "KMS Support                "
+	help
+	  kms video support
+
+config SDL2_XORG
+	bool
+	prompt "Xorg Support                "
+	help
+	  X.Org provides an open source implementation of the
+	  X Window System.
+
+config SDL2_WAYLAND
+	bool
+	prompt "Wayland Support                "
+	help
+	  Wayland Window System.
+
+config SDL2_DIRECTFB
+	bool
+	depends on STAGING
+	prompt "DirectFB Support"
+	default y
+	help
+	  DirectFB is a thin library that provides hardware
+	  graphics acceleration, input device handling and
+	  abstraction, integrated windowing system with support
+	  for translucent windows and multiple display layers,
+	  not only on top of the Linux Framebuffer Device.
+
+config SDL2_OPENGL
+	bool
+	prompt "OpenGL Support"
+	help
+	  OpenGL is a multi-platform software interface to
+	  graphics hardware, supporting rendering and imaging
+	  operations.
+
+config SDL2_OPENGLES
+	bool
+	prompt "OpenGLES Support"
+	help
+	  OpenGL ES graphics support
+
+config SDL2_OPENGLES1
+	bool
+	prompt "OpenGLES1 Support"
+	help
+	  OpenGL ES1 graphics support
+
+config SDL2_OPENGLES2
+	bool
+	prompt "OpenGLES2 Support"
+	help
+	  OpenGL ES2 graphics support
+
+endif
+
+config SDL2_EVENT
+	bool
+	prompt "SDL2 Event Support"
+	default y
+	help
+	  FIXME
+
+config SDL2_JOYSTICK
+	bool
+	prompt "SDL2 Joystick Support"
+	help
+	  FIXME
+
+config SDL2_THREADS
+	bool
+	prompt "SDL2 Thread Support            "
+	default y
+	help
+	  Turn on multithreading support
+
+config SDL2_TSLIB
+	bool
+	prompt "tslib Support"
+	help
+	  Turn on support for the touchscreen library 'tslib'
+
+config SDL2_UDEV
+	bool
+	prompt "udev Support"
+	help
+	  Turn on support for the udev library
+
+config SDL2_DBUS
+	bool
+	prompt "dbus Support"
+
+	help
+	  Turn on support for the dbus library
+
+endif
diff --git a/rules/sdl2.make b/rules/sdl2.make
new file mode 100644
index 000000000..aa0d21f6d
--- /dev/null
+++ b/rules/sdl2.make
@@ -0,0 +1,153 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2018 by Michael Grzeschik <mgr@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_SDL2) += sdl2
+
+#
+# Paths and names
+#
+SDL2_VERSION	:= 2.0.8
+SDL2_MD5		:= 3800d705cef742c6a634f202c37f263f
+SDL2		:= SDL2-$(SDL2_VERSION)
+SDL2_SUFFIX	:= tar.gz
+SDL2_URL		:= https://www.libsdl.org/release/$(SDL2).$(SDL2_SUFFIX)
+SDL2_SOURCE	:= $(SRCDIR)/$(SDL2).$(SDL2_SUFFIX)
+SDL2_DIR		:= $(BUILDDIR)/$(SDL2)
+SDL2_LICENSE	:= zlib
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+SDL2_CONF_TOOL	:= autoconf
+SDL2_CONF_OPT	:= \
+	$(CROSS_AUTOCONF_USR) \
+	--enable-shared \
+	--disable-static \
+	--enable-libtool-lock \
+	--enable-assertions=auto \
+	--enable-dependency-tracking \
+	--enable-libc \
+	--enable-gcc-atomics \
+	--enable-atomic \
+	--$(call ptx/endis,PTXCONF_SDL2_AUDIO)-audio \
+	--$(call ptx/endis,PTXCONF_SDL2_VIDEO)-video \
+	--disable-render \
+	--$(call ptx/endis,PTXCONF_SDL2_EVENT)-events \
+	--$(call ptx/endis,PTXCONF_SDL2_JOYSTICK)-joystick \
+	--disable-haptic \
+	--disable-power \
+	--disable-filesystem \
+	--$(call ptx/endis,PTXCONF_SDL2_THREADS)-threads \
+	--$(call ptx/endis,PTXCONF_SDL2_TIMERS)-timers \
+	--$(call ptx/endis,PTXCONF_SDL2_FILE)-file \
+	--enable-loadso \
+	--$(call ptx/endis,PTXCONF_SDL2_CPUINFO)-cpuinfo \
+	--enable-assembly \
+	--disable-ssemath \
+	--disable-mmx \
+	--disable-3dnow \
+	--disable-sse \
+	--disable-sse2 \
+	--disable-sse3 \
+	--disable-jack \
+	--disable-jack-shared \
+	--disable-sndio \
+	--disable-sndio-shared \
+	--disable-fusionsound \
+	--disable-fusionsound-shared \
+	--$(call ptx/endis,PTXCONF_SDL2_OSS)-oss \
+	--$(call ptx/endis,PTXCONF_SDL2_ALSA)-alsa \
+	--disable-alsatest \
+	--disable-alsa-shared \
+	--disable-esd \
+	--disable-esdtest \
+	--disable-esd-shared \
+	--$(call ptx/endis,PTXCONF_SDL2_PULSEAUDIO)-pulseaudio \
+	--$(call ptx/endis,PTXCONF_SDL2_PULSEAUDIO)-pulseaudio-shared \
+	--disable-arts \
+	--disable-arts-shared \
+	--disable-nas \
+	--disable-nas-shared \
+	--disable-diskaudio \
+	--disable-dummyaudio \
+	--disable-libsamplerate \
+	--disable-libsamplerate-shared \
+	--$(call ptx/endis,PTXCONF_SDL2_WAYLAND)-video-wayland \
+	--disable-video-wayland-qt-touch \
+	--$(call ptx/endis,PTXCONF_SDL2_WAYLAND)-wayland-shared \
+	--disable-video-mir \
+	--disable-mir-shared \
+	--disable-video-rpi \
+	--disable-altivec \
+	--$(call ptx/endis,PTXCONF_SDL2_XORG)-video-x11 \
+	--disable-x11-shared \
+	--$(call ptx/endis,PTXCONF_SDL2_XORG)-video-x11-vm \
+	--disable-video-vivante \
+	--disable-video-x11-xinerama \
+	--disable-video-x11-xrandr \
+	--disable-video-x11-xcursor \
+	--disable-video-x11-xdbe \
+	--$(call ptx/endis,PTXCONF_SDL2_XORG)-video-x11-xinput \
+	--$(call ptx/endis,PTXCONF_SDL2_XORG)-video-x11-scrnsaver \
+	--$(call ptx/endis,PTXCONF_SDL2_XORG)-video-x11-xshape \
+	--disable-video-cocoa \
+	--disable-render-metal \
+	--$(call ptx/endis,PTXCONF_SDL2_DIRECTFB)-video-directfb \
+	--$(call ptx/endis,PTXCONF_SDL2_DIRECTFB)-directfb-shared \
+	--$(call ptx/endis,PTXCONF_SDL2_KMS)-video-kmsdrm \
+	--$(call ptx/endis,PTXCONF_SDL2_KMS)-kmsdrm-shared \
+	--enable-video-dummy \
+	--$(call ptx/endis,PTXCONF_SDL2_OPENGL)-video-opengl \
+	--$(call ptx/endis,PTXCONF_SDL2_OPENGLES)-video-opengles \
+	--$(call ptx/endis,PTXCONF_SDL2_OPENGLES1)-video-opengles1 \
+	--$(call ptx/endis,PTXCONF_SDL2_OPENGLES2)-video-opengles2 \
+	--disable-video-vulkan \
+	--$(call ptx/endis,PTXCONF_SDL2_UDEV)-libudev \
+	--$(call ptx/endis,PTXCONF_SDL2_DBUS)-dbus \
+	--disable-ime \
+	--disable-ibus \
+	--disable-fcitx \
+	--$(call ptx/endis,PTXCONF_SDL2_TSLIB)-input-tslib \
+	--enable-pthreads \
+	--enable-pthread-sem \
+	--disable-directx \
+	--disable-sdl-dlopen \
+	--enable-clock_gettime \
+	--disable-rpath \
+	--disable-render-d3d \
+	--$(call ptx/wwo,PTXCONF_SDL2_XORG)-x
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/sdl2.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, sdl2)
+	@$(call install_fixup, sdl2,PRIORITY,optional)
+	@$(call install_fixup, sdl2,SECTION,base)
+	@$(call install_fixup, sdl2,AUTHOR,"Michael Grzeschik <mgr@pengutronix.de>")
+	@$(call install_fixup, sdl2,DESCRIPTION,missing)
+
+	@$(call install_lib, sdl2, 0, 0, 0644, libSDL2-2.0)
+
+	@$(call install_finish, sdl2)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.18.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ptxdist] [PATCH 2/6] sdl2-test: add new package
  2018-07-12 17:30 [ptxdist] [PATCH 0/6] sdl2: add support for new packages Michael Grzeschik
  2018-07-12 17:30 ` [ptxdist] [PATCH 1/6] sdl2: add new package Michael Grzeschik
@ 2018-07-12 17:30 ` Michael Grzeschik
  2018-07-13 12:32   ` Michael Olbrich
  2018-07-12 17:30 ` [ptxdist] [PATCH 3/6] sdl2-image: " Michael Grzeschik
                   ` (4 subsequent siblings)
  6 siblings, 1 reply; 11+ messages in thread
From: Michael Grzeschik @ 2018-07-12 17:30 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
---
 rules/sdl2-test.in   |  11 +++
 rules/sdl2-test.make | 165 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 176 insertions(+)
 create mode 100644 rules/sdl2-test.in
 create mode 100644 rules/sdl2-test.make

diff --git a/rules/sdl2-test.in b/rules/sdl2-test.in
new file mode 100644
index 000000000..f822c965c
--- /dev/null
+++ b/rules/sdl2-test.in
@@ -0,0 +1,11 @@
+## SECTION=multimedia_sdl
+
+config SDL2_TEST
+	tristate
+	prompt "SDL2 test"
+	select SDL2
+	help
+	  Simple DirectMedia Layer is a cross-platform multimedia
+	  library designed to provide low level access to audio,
+	  keyboard, mouse, joystick, 3D hardware via OpenGL, and
+	  2D video framebuffer.
diff --git a/rules/sdl2-test.make b/rules/sdl2-test.make
new file mode 100644
index 000000000..b36f996f2
--- /dev/null
+++ b/rules/sdl2-test.make
@@ -0,0 +1,165 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2018 by Michael Grzeschik <mgr@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_SDL2_TEST) += sdl2-test
+
+#
+# Paths and names
+#
+SDL2_TEST_VERSION	= $(SDL2_VERSION)
+SDL2_TEST_MD5		= $(SDL2_MD5)
+SDL2_TEST		= SDL2_TEST-$(SDL2_VERSION)
+SDL2_TEST_SUFFIX	= $(SDL2_SUFFIX)
+SDL2_TEST_URL		= $(SDL2_URL)
+SDL2_TEST_SOURCE	= $(SDL2_SOURCE)
+SDL2_TEST_DIR		= $(BUILDDIR)/$(SDL2_TEST)
+SDL2_TEST_SUBDIR	:= test
+SDL2_TESTS_LICENSE	:= zlib
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+SDL2_TEST_ENV		:= \
+	$(CROSS_ENV) \
+	SDL_LIBS="-lSDL2 -lunwind -lunwind-generic"
+
+#
+# autoconf
+#
+SDL2_TEST_CONF_TOOL	:= autoconf
+
+
+ifdef PTXCONF_SDL2_PULSEAUDIO
+SDL2_TEST_LDFLAGS 	:= \
+	-Wl,-rpath-link,$(SYSROOT)/usr/lib/pulseaudio
+endif
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+SDL2_TEST_TOOLS := \
+	checkkeys \
+	controllermap \
+	loopwave \
+	loopwavequeue \
+	testatomic \
+	testaudiocapture \
+	testaudiohotplug \
+	testaudioinfo \
+	testautomation \
+	testbounds \
+	testcustomcursor \
+	testdisplayinfo \
+	testdraw2 \
+	testdrawchessboard \
+	testdropfile \
+	testerror \
+	testfile \
+	testfilesystem \
+	testgamecontroller \
+	testgesture \
+	testgl2 \
+	testgles \
+	testgles2 \
+	testhaptic \
+	testhittesting \
+	testhotplug \
+	testiconv \
+	testime \
+	testintersections \
+	testjoystick \
+	testkeys \
+	testloadso \
+	testlock \
+	testmessage \
+	testmultiaudio \
+	testnative \
+	testoverlay2 \
+	testplatform \
+	testpower \
+	testqsort \
+	testrelative \
+	testrendercopyex \
+	testrendertarget \
+	testresample \
+	testrumble \
+	testscale \
+	testsem \
+	testshader \
+	testshape \
+	testsprite2 \
+	testspriteminimal \
+	teststreaming \
+	testthread \
+	testtimer \
+	testver \
+	testviewport \
+	testvulkan \
+	testwm2 \
+	testyuv \
+	torturethread
+
+SDL2_TEST_DATA := \
+	axis.bmp \
+	button.bmp \
+	controllermap.bmp \
+	icon.bmp \
+	sample.bmp \
+	testyuv.bmp \
+	sample.wav \
+	picture.xbm
+
+$(STATEDIR)/sdl2-test.install:
+	@$(call targetinfo)
+	@for file in $(SDL2_TEST_TOOLS); \
+	   do \
+	     install -vD -m 0755 $(SDL2_TEST_DIR)/$(SDL2_TEST_SUBDIR)/$${file} \
+	       $(SDL2_TEST_PKGDIR)/usr/bin/$${file}; \
+	   done
+	@for file in $(SDL2_TEST_DATA); \
+	   do \
+	     install -vD -m 0644 $(SDL2_TEST_DIR)/$(SDL2_TEST_SUBDIR)/$${file} \
+	       $(SDL2_TEST_PKGDIR)/usr/bin/$${file}; \
+	   done
+	@$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/sdl2-test.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, sdl2-test)
+	@$(call install_fixup, sdl2-test,PRIORITY,optional)
+	@$(call install_fixup, sdl2-test,SECTION,base)
+	@$(call install_fixup, sdl2-test,AUTHOR,"Michael Grzeschik <mgr@pengutronix.de>")
+	@$(call install_fixup, sdl2-test,DESCRIPTION,missing)
+
+	@for file in $(SDL2_TEST_TOOLS); \
+	   do \
+	      $(call install_copy, sdl2-test, 0, 0, 755, -, /usr/bin/$$file) \
+	   done
+
+	@for file in $(SDL2_TEST_DATA); \
+	   do \
+	      $(call install_copy, sdl2-test, 0, 0, 644, -, /usr/bin/$$file) \
+	   done
+
+	@$(call install_finish, sdl2-test)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.18.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ptxdist] [PATCH 3/6] sdl2-image: add new package
  2018-07-12 17:30 [ptxdist] [PATCH 0/6] sdl2: add support for new packages Michael Grzeschik
  2018-07-12 17:30 ` [ptxdist] [PATCH 1/6] sdl2: add new package Michael Grzeschik
  2018-07-12 17:30 ` [ptxdist] [PATCH 2/6] sdl2-test: " Michael Grzeschik
@ 2018-07-12 17:30 ` Michael Grzeschik
  2018-07-13 12:33   ` Michael Olbrich
  2018-07-12 17:30 ` [ptxdist] [PATCH 4/6] sdl2-net: " Michael Grzeschik
                   ` (3 subsequent siblings)
  6 siblings, 1 reply; 11+ messages in thread
From: Michael Grzeschik @ 2018-07-12 17:30 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
---
 rules/sdl2-image.in   | 52 +++++++++++++++++++++++++++++
 rules/sdl2-image.make | 78 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 130 insertions(+)
 create mode 100644 rules/sdl2-image.in
 create mode 100644 rules/sdl2-image.make

diff --git a/rules/sdl2-image.in b/rules/sdl2-image.in
new file mode 100644
index 000000000..0bd3fd377
--- /dev/null
+++ b/rules/sdl2-image.in
@@ -0,0 +1,52 @@
+## SECTION=multimedia_sdl
+
+menuconfig SDL2_IMAGE
+	tristate
+	select SDL2
+	prompt "SDL2 image                    "
+	select LIBPNG	if SDL2_IMAGE__PNG
+	select LIBJPEG	if SDL2_IMAGE__JPG
+	help
+	  This is a simple library to load images of various
+	  formats as SDL surfaces. This library currently supports
+	  BMP, PPM, PCX, GIF, JPEG, PNG, TIFF, and XPM formats.
+
+if SDL2_IMAGE
+
+config SDL2_IMAGE__BMP
+	bool "bmp support"
+
+config SDL2_IMAGE__GIF
+	bool "gif support"
+
+config SDL2_IMAGE__JPG
+	bool "jpeg support"
+
+config SDL2_IMAGE__LBM
+	bool "lbm support"
+
+config SDL2_IMAGE__PCX
+	bool "pcx support"
+
+config SDL2_IMAGE__PNG
+	bool "png support"
+
+config SDL2_IMAGE__PNM
+	bool "pnm support"
+
+config SDL2_IMAGE__TGA
+	bool "tga support"
+
+config SDL2_IMAGE__TIF
+	bool "tiff support"
+
+config SDL2_IMAGE__XCF
+	bool "xcf support"
+
+config SDL2_IMAGE__XPM
+	bool "xpm support"
+
+config SDL2_IMAGE__XV
+	bool "xv support"
+
+endif
diff --git a/rules/sdl2-image.make b/rules/sdl2-image.make
new file mode 100644
index 000000000..109f867b2
--- /dev/null
+++ b/rules/sdl2-image.make
@@ -0,0 +1,78 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2018 by Michael Grzeschik <mgr@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_SDL2_IMAGE) += sdl2-image
+
+#
+# Paths and names
+#
+SDL2_IMAGE_VERSION	:= 2.0.3
+SDL2_IMAGE_MD5		:= c6baf6dfa80fa8a66853661a36a6034e
+SDL2_IMAGE		:= SDL2_image-$(SDL2_IMAGE_VERSION)
+SDL2_IMAGE_SUFFIX	:= tar.gz
+SDL2_IMAGE_URL		:= https://www.libsdl.org/projects/SDL_image/release/$(SDL2_IMAGE).$(SDL2_IMAGE_SUFFIX)
+SDL2_IMAGE_SOURCE	:= $(SRCDIR)/$(SDL2_IMAGE).$(SDL2_IMAGE_SUFFIX)
+SDL2_IMAGE_DIR		:= $(BUILDDIR)/$(SDL2_IMAGE)
+SDL2_IMAGE_LICENSE	:= unknown
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+SDL2_IMAGE_CONF_TOOL	:= autoconf
+SDL2_IMAGE_CONF_OPT	:= \
+	$(CROSS_AUTOCONF_USR) \
+	--enable-shared \
+	--disable-static \
+	--disable-sdltest \
+	--disable-jpg-shared \
+	--disable-png-shared \
+	--disable-tif-shared \
+	--$(call ptx/endis, PTXCONF_SDL2_IMAGE__BMP)-bmp \
+	--$(call ptx/endis, PTXCONF_SDL2_IMAGE__GIF)-gif \
+	--$(call ptx/endis, PTXCONF_SDL2_IMAGE__JPG)-jpg \
+	--$(call ptx/endis, PTXCONF_SDL2_IMAGE__LBM)-lbm \
+	--$(call ptx/endis, PTXCONF_SDL2_IMAGE__PCX)-pcx \
+	--$(call ptx/endis, PTXCONF_SDL2_IMAGE__PNG)-png \
+	--$(call ptx/endis, PTXCONF_SDL2_IMAGE__PNM)-pnm \
+	--$(call ptx/endis, PTXCONF_SDL2_IMAGE__TGA)-tga \
+	--$(call ptx/endis, PTXCONF_SDL2_IMAGE__TIF)-tif \
+	--$(call ptx/endis, PTXCONF_SDL2_IMAGE__XCF)-xcf \
+	--$(call ptx/endis, PTXCONF_SDL2_IMAGE__XPM)-xpm \
+	--$(call ptx/endis, PTXCONF_SDL2_IMAGE__XV)-xv
+
+ifdef PTXCONF_SDL2_PULSEAUDIO
+SDL2_IMAGE_LDFLAGS 	:= \
+	-Wl,-rpath-link,$(SYSROOT)/usr/lib/pulseaudio
+endif
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/sdl2-image.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, sdl2-image)
+	@$(call install_fixup, sdl2-image,PRIORITY,optional)
+	@$(call install_fixup, sdl2-image,SECTION,base)
+	@$(call install_fixup, sdl2-image,AUTHOR,"Michael Grzeschik <mgr@pengutronix.de>")
+	@$(call install_fixup, sdl2-image,DESCRIPTION,missing)
+
+	@$(call install_lib, sdl2-image, 0, 0, 0644, libSDL2_image-2.0)
+
+	@$(call install_finish, sdl2-image)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.18.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ptxdist] [PATCH 4/6] sdl2-net: add new package
  2018-07-12 17:30 [ptxdist] [PATCH 0/6] sdl2: add support for new packages Michael Grzeschik
                   ` (2 preceding siblings ...)
  2018-07-12 17:30 ` [ptxdist] [PATCH 3/6] sdl2-image: " Michael Grzeschik
@ 2018-07-12 17:30 ` Michael Grzeschik
  2018-07-13 12:35   ` Michael Olbrich
  2018-07-12 17:30 ` [ptxdist] [PATCH 5/6] sdl2-ttf: " Michael Grzeschik
                   ` (2 subsequent siblings)
  6 siblings, 1 reply; 11+ messages in thread
From: Michael Grzeschik @ 2018-07-12 17:30 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
---
 rules/sdl2-net.in   | 10 ++++++++
 rules/sdl2-net.make | 58 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+)
 create mode 100644 rules/sdl2-net.in
 create mode 100644 rules/sdl2-net.make

diff --git a/rules/sdl2-net.in b/rules/sdl2-net.in
new file mode 100644
index 000000000..02c5a447b
--- /dev/null
+++ b/rules/sdl2-net.in
@@ -0,0 +1,10 @@
+## SECTION=multimedia_sdl
+
+config SDL2_NET
+	tristate
+	select SDL2
+	prompt "SDL2 net                       "
+	help
+	  This is a small sample cross-platform networking library, with
+	  a sample chat client and server application. The chat client
+	  uses the GUIlib GUI framework library.
diff --git a/rules/sdl2-net.make b/rules/sdl2-net.make
new file mode 100644
index 000000000..6d45b0e2c
--- /dev/null
+++ b/rules/sdl2-net.make
@@ -0,0 +1,58 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2018 by Michael Grzeschik <mgr@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_SDL2_NET) += sdl2-net
+
+#
+# Paths and names
+#
+SDL2_NET_VERSION	:= 2.0.1
+SDL2_NET_MD5		:= 5c1d9d1cfa63301b141cb5c0de2ea7c4
+SDL2_NET		:= SDL2_net-$(SDL2_NET_VERSION)
+SDL2_NET_SUFFIX	:= tar.gz
+SDL2_NET_URL		:= https://www.libsdl.org/projects/SDL_net/release/$(SDL2_NET).$(SDL2_NET_SUFFIX)
+SDL2_NET_SOURCE	:= $(SRCDIR)/$(SDL2_NET).$(SDL2_NET_SUFFIX)
+SDL2_NET_DIR		:= $(BUILDDIR)/$(SDL2_NET)
+SDL2_NET_LICENSE	:= unknown
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+SDL2_NET_CONF_TOOL	:= autoconf
+
+ifdef PTXCONF_SDL2_PULSEAUDIO
+SDL2_NET_LDFLAGS 	:= \
+	-Wl,-rpath-link,$(SYSROOT)/usr/lib/pulseaudio
+endif
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/sdl2-net.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, sdl2-net)
+	@$(call install_fixup, sdl2-net,PRIORITY,optional)
+	@$(call install_fixup, sdl2-net,SECTION,base)
+	@$(call install_fixup, sdl2-net,AUTHOR,"Michael Grzeschik <mgr@pengutronix.de>")
+	@$(call install_fixup, sdl2-net,DESCRIPTION,missing)
+
+	@$(call install_lib, sdl2-net, 0, 0, 0644, libSDL2_net-2.0)
+
+	@$(call install_finish, sdl2-net)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.18.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ptxdist] [PATCH 5/6] sdl2-ttf: add new package
  2018-07-12 17:30 [ptxdist] [PATCH 0/6] sdl2: add support for new packages Michael Grzeschik
                   ` (3 preceding siblings ...)
  2018-07-12 17:30 ` [ptxdist] [PATCH 4/6] sdl2-net: " Michael Grzeschik
@ 2018-07-12 17:30 ` Michael Grzeschik
  2018-07-12 17:30 ` [ptxdist] [PATCH 6/6] sdl2-mixer: " Michael Grzeschik
  2018-07-13 11:42 ` [ptxdist] [PATCH 0/6] sdl2: add support for new packages Michael Grzeschik
  6 siblings, 0 replies; 11+ messages in thread
From: Michael Grzeschik @ 2018-07-12 17:30 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
---
 rules/sdl2-test.in  |  1 +
 rules/sdl2-ttf.in   | 12 ++++++++++
 rules/sdl2-ttf.make | 58 +++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 71 insertions(+)
 create mode 100644 rules/sdl2-ttf.in
 create mode 100644 rules/sdl2-ttf.make

diff --git a/rules/sdl2-test.in b/rules/sdl2-test.in
index f822c965c..ba1e84a44 100644
--- a/rules/sdl2-test.in
+++ b/rules/sdl2-test.in
@@ -4,6 +4,7 @@ config SDL2_TEST
 	tristate
 	prompt "SDL2 test"
 	select SDL2
+	select SDL2_TTF
 	help
 	  Simple DirectMedia Layer is a cross-platform multimedia
 	  library designed to provide low level access to audio,
diff --git a/rules/sdl2-ttf.in b/rules/sdl2-ttf.in
new file mode 100644
index 000000000..f1386d0cf
--- /dev/null
+++ b/rules/sdl2-ttf.in
@@ -0,0 +1,12 @@
+## SECTION=multimedia_sdl
+
+config SDL2_TTF
+	tristate
+	select SDL2
+	select FREETYPE
+	prompt "SDL2 ttf                       "
+	help
+	  This is a sample library which allows you to use TrueType
+	  fonts in your SDL applications. It comes with an example
+	  program "showfont" which displays an example string for a
+	  given TrueType font file.
diff --git a/rules/sdl2-ttf.make b/rules/sdl2-ttf.make
new file mode 100644
index 000000000..5f52f96b1
--- /dev/null
+++ b/rules/sdl2-ttf.make
@@ -0,0 +1,58 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2018 by Michael Grzeschik <mgr@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_SDL2_TTF) += sdl2-ttf
+
+#
+# Paths and names
+#
+SDL2_TTF_VERSION	:= 2.0.14
+SDL2_TTF_MD5		:= e53c05e1e7f1382c316afd6c763388b1
+SDL2_TTF		:= SDL2_ttf-$(SDL2_TTF_VERSION)
+SDL2_TTF_SUFFIX	:= tar.gz
+SDL2_TTF_URL		:= https://www.libsdl.org/projects/SDL_ttf/release/$(SDL2_TTF).$(SDL2_TTF_SUFFIX)
+SDL2_TTF_SOURCE	:= $(SRCDIR)/$(SDL2_TTF).$(SDL2_TTF_SUFFIX)
+SDL2_TTF_DIR		:= $(BUILDDIR)/$(SDL2_TTF)
+SDL2_TTF_LICENSE	:= unknown
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+SDL2_TTF_CONF_TOOL	:= autoconf
+
+ifdef PTXCONF_SDL2_PULSEAUDIO
+SDL2_TTF_LDFLAGS 	:= \
+	-Wl,-rpath-link,$(SYSROOT)/usr/lib/pulseaudio
+endif
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/sdl2-ttf.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, sdl2-ttf)
+	@$(call install_fixup, sdl2-ttf,PRIORITY,optional)
+	@$(call install_fixup, sdl2-ttf,SECTION,base)
+	@$(call install_fixup, sdl2-ttf,AUTHOR,"Michael Grzeschik <mgr@pengutronix.de>")
+	@$(call install_fixup, sdl2-ttf,DESCRIPTION,missing)
+
+	@$(call install_lib, sdl2-ttf, 0, 0, 0644, libSDL2_ttf-2.0)
+
+	@$(call install_finish, sdl2-ttf)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.18.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ptxdist] [PATCH 6/6] sdl2-mixer: add new package
  2018-07-12 17:30 [ptxdist] [PATCH 0/6] sdl2: add support for new packages Michael Grzeschik
                   ` (4 preceding siblings ...)
  2018-07-12 17:30 ` [ptxdist] [PATCH 5/6] sdl2-ttf: " Michael Grzeschik
@ 2018-07-12 17:30 ` Michael Grzeschik
  2018-07-13 11:42 ` [ptxdist] [PATCH 0/6] sdl2: add support for new packages Michael Grzeschik
  6 siblings, 0 replies; 11+ messages in thread
From: Michael Grzeschik @ 2018-07-12 17:30 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
---
 rules/sdl2-mixer.in   | 11 ++++++++
 rules/sdl2-mixer.make | 58 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 69 insertions(+)
 create mode 100644 rules/sdl2-mixer.in
 create mode 100644 rules/sdl2-mixer.make

diff --git a/rules/sdl2-mixer.in b/rules/sdl2-mixer.in
new file mode 100644
index 000000000..7b1b7af06
--- /dev/null
+++ b/rules/sdl2-mixer.in
@@ -0,0 +1,11 @@
+## SECTION=multimedia_sdl
+
+config SDL2_MIXER
+	tristate
+	select SDL2
+	prompt "SDL2 mixer                     "
+	help
+          SDL_mixer is a sample multi-channel audio mixer library. It supports any
+          number of simultaneously playing channels of 16 bit stereo audio, plus a
+          single channel of music, in FLAC, Ogg Vorbis, MP3, MOD, and MIDI
+          formats.
diff --git a/rules/sdl2-mixer.make b/rules/sdl2-mixer.make
new file mode 100644
index 000000000..54dc36a6d
--- /dev/null
+++ b/rules/sdl2-mixer.make
@@ -0,0 +1,58 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2018 by Michael Grzeschik <mgr@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_SDL2_MIXER) += sdl2-mixer
+
+#
+# Paths and names
+#
+SDL2_MIXER_VERSION	:= 2.0.2
+SDL2_MIXER_MD5		:= aaa0551393993c14a13f72b339c0ed6c
+SDL2_MIXER		:= SDL2_mixer-$(SDL2_MIXER_VERSION)
+SDL2_MIXER_SUFFIX	:= tar.gz
+SDL2_MIXER_URL		:= https://www.libsdl.org/projects/SDL_mixer/release/$(SDL2_MIXER).$(SDL2_MIXER_SUFFIX)
+SDL2_MIXER_SOURCE	:= $(SRCDIR)/$(SDL2_MIXER).$(SDL2_MIXER_SUFFIX)
+SDL2_MIXER_DIR		:= $(BUILDDIR)/$(SDL2_MIXER)
+SDL2_MIXER_LICENSE	:= unknown
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+SDL2_MIXER_CONF_TOOL	:= autoconf
+
+ifdef PTXCONF_SDL2_PULSEAUDIO
+SDL2_MIXER_LDFLAGS 	:= \
+	-Wl,-rpath-link,$(SYSROOT)/usr/lib/pulseaudio
+endif
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/sdl2-mixer.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, sdl2-mixer)
+	@$(call install_fixup, sdl2-mixer,PRIORITY,optional)
+	@$(call install_fixup, sdl2-mixer,SECTION,base)
+	@$(call install_fixup, sdl2-mixer,AUTHOR,"Michael Grzeschik <mgr@pengutronix.de>")
+	@$(call install_fixup, sdl2-mixer,DESCRIPTION,missing)
+
+	@$(call install_lib, sdl2-mixer, 0, 0, 0644, libSDL2_mixer-2.0)
+
+	@$(call install_finish, sdl2-mixer)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.18.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [ptxdist] [PATCH 0/6] sdl2: add support for new packages
  2018-07-12 17:30 [ptxdist] [PATCH 0/6] sdl2: add support for new packages Michael Grzeschik
                   ` (5 preceding siblings ...)
  2018-07-12 17:30 ` [ptxdist] [PATCH 6/6] sdl2-mixer: " Michael Grzeschik
@ 2018-07-13 11:42 ` Michael Grzeschik
  6 siblings, 0 replies; 11+ messages in thread
From: Michael Grzeschik @ 2018-07-13 11:42 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 2061 bytes --]

Hi,

On Thu, Jul 12, 2018 at 07:30:50PM +0200, Michael Grzeschik wrote:
> This series adds support for new packages from the sdl2 project.

I had to add some patches to make desktop gl optional over
all packages. I will send the v2 in the afternoon.

Thanks,
Michael

> Michael Grzeschik (6):
>   sdl2: add new package
>   sdl2-test: add new package
>   sdl2-image: add new package
>   sdl2-net: add new package
>   sdl2-ttf: add new package
>   sdl2-mixer: add new package
> 
>  rules/sdl2-image.in   |  52 +++++++++++
>  rules/sdl2-image.make |  78 ++++++++++++++++
>  rules/sdl2-mixer.in   |  11 +++
>  rules/sdl2-mixer.make |  58 ++++++++++++
>  rules/sdl2-net.in     |  10 +++
>  rules/sdl2-net.make   |  58 ++++++++++++
>  rules/sdl2-test.in    |  12 +++
>  rules/sdl2-test.make  | 165 ++++++++++++++++++++++++++++++++++
>  rules/sdl2-ttf.in     |  12 +++
>  rules/sdl2-ttf.make   |  58 ++++++++++++
>  rules/sdl2.in         | 203 ++++++++++++++++++++++++++++++++++++++++++
>  rules/sdl2.make       | 153 +++++++++++++++++++++++++++++++
>  12 files changed, 870 insertions(+)
>  create mode 100644 rules/sdl2-image.in
>  create mode 100644 rules/sdl2-image.make
>  create mode 100644 rules/sdl2-mixer.in
>  create mode 100644 rules/sdl2-mixer.make
>  create mode 100644 rules/sdl2-net.in
>  create mode 100644 rules/sdl2-net.make
>  create mode 100644 rules/sdl2-test.in
>  create mode 100644 rules/sdl2-test.make
>  create mode 100644 rules/sdl2-ttf.in
>  create mode 100644 rules/sdl2-ttf.make
>  create mode 100644 rules/sdl2.in
>  create mode 100644 rules/sdl2.make
> 
> -- 
> 2.18.0
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 91 bytes --]

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [ptxdist] [PATCH 2/6] sdl2-test: add new package
  2018-07-12 17:30 ` [ptxdist] [PATCH 2/6] sdl2-test: " Michael Grzeschik
@ 2018-07-13 12:32   ` Michael Olbrich
  0 siblings, 0 replies; 11+ messages in thread
From: Michael Olbrich @ 2018-07-13 12:32 UTC (permalink / raw)
  To: ptxdist

On Thu, Jul 12, 2018 at 07:30:52PM +0200, Michael Grzeschik wrote:
> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
> ---
>  rules/sdl2-test.in   |  11 +++
>  rules/sdl2-test.make | 165 +++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 176 insertions(+)
>  create mode 100644 rules/sdl2-test.in
>  create mode 100644 rules/sdl2-test.make
> 
> diff --git a/rules/sdl2-test.in b/rules/sdl2-test.in
> new file mode 100644
> index 000000000..f822c965c
> --- /dev/null
> +++ b/rules/sdl2-test.in
> @@ -0,0 +1,11 @@
> +## SECTION=multimedia_sdl
> +
> +config SDL2_TEST
> +	tristate
> +	prompt "SDL2 test"
> +	select SDL2
> +	help
> +	  Simple DirectMedia Layer is a cross-platform multimedia
> +	  library designed to provide low level access to audio,
> +	  keyboard, mouse, joystick, 3D hardware via OpenGL, and
> +	  2D video framebuffer.
> diff --git a/rules/sdl2-test.make b/rules/sdl2-test.make
> new file mode 100644
> index 000000000..b36f996f2
> --- /dev/null
> +++ b/rules/sdl2-test.make
> @@ -0,0 +1,165 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2018 by Michael Grzeschik <mgr@pengutronix.de>
> +#
> +# See CREDITS for details about who has contributed to this project.
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_SDL2_TEST) += sdl2-test
> +
> +#
> +# Paths and names
> +#
> +SDL2_TEST_VERSION	= $(SDL2_VERSION)
> +SDL2_TEST_MD5		= $(SDL2_MD5)
> +SDL2_TEST		= SDL2_TEST-$(SDL2_VERSION)
> +SDL2_TEST_SUFFIX	= $(SDL2_SUFFIX)
> +SDL2_TEST_URL		= $(SDL2_URL)
> +SDL2_TEST_SOURCE	= $(SDL2_SOURCE)
> +SDL2_TEST_DIR		= $(BUILDDIR)/$(SDL2_TEST)
> +SDL2_TEST_SUBDIR	:= test
> +SDL2_TESTS_LICENSE	:= zlib
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +SDL2_TEST_ENV		:= \
> +	$(CROSS_ENV) \
> +	SDL_LIBS="-lSDL2 -lunwind -lunwind-generic"
> +
> +#
> +# autoconf
> +#
> +SDL2_TEST_CONF_TOOL	:= autoconf
> +
> +
> +ifdef PTXCONF_SDL2_PULSEAUDIO
> +SDL2_TEST_LDFLAGS 	:= \
> +	-Wl,-rpath-link,$(SYSROOT)/usr/lib/pulseaudio
> +endif
> +
> +# ----------------------------------------------------------------------------
> +# Install
> +# ----------------------------------------------------------------------------
> +
> +SDL2_TEST_TOOLS := \
> +	checkkeys \
> +	controllermap \
> +	loopwave \
> +	loopwavequeue \
> +	testatomic \
> +	testaudiocapture \
> +	testaudiohotplug \
> +	testaudioinfo \
> +	testautomation \
> +	testbounds \
> +	testcustomcursor \
> +	testdisplayinfo \
> +	testdraw2 \
> +	testdrawchessboard \
> +	testdropfile \
> +	testerror \
> +	testfile \
> +	testfilesystem \
> +	testgamecontroller \
> +	testgesture \
> +	testgl2 \
> +	testgles \
> +	testgles2 \
> +	testhaptic \
> +	testhittesting \
> +	testhotplug \
> +	testiconv \
> +	testime \
> +	testintersections \
> +	testjoystick \
> +	testkeys \
> +	testloadso \
> +	testlock \
> +	testmessage \
> +	testmultiaudio \
> +	testnative \
> +	testoverlay2 \
> +	testplatform \
> +	testpower \
> +	testqsort \
> +	testrelative \
> +	testrendercopyex \
> +	testrendertarget \
> +	testresample \
> +	testrumble \
> +	testscale \
> +	testsem \
> +	testshader \
> +	testshape \
> +	testsprite2 \
> +	testspriteminimal \
> +	teststreaming \
> +	testthread \
> +	testtimer \
> +	testver \
> +	testviewport \
> +	testvulkan \
> +	testwm2 \
> +	testyuv \
> +	torturethread
> +
> +SDL2_TEST_DATA := \
> +	axis.bmp \
> +	button.bmp \
> +	controllermap.bmp \
> +	icon.bmp \
> +	sample.bmp \
> +	testyuv.bmp \
> +	sample.wav \
> +	picture.xbm
> +
> +$(STATEDIR)/sdl2-test.install:
> +	@$(call targetinfo)
> +	@for file in $(SDL2_TEST_TOOLS); \
> +	   do \
> +	     install -vD -m 0755 $(SDL2_TEST_DIR)/$(SDL2_TEST_SUBDIR)/$${file} \
> +	       $(SDL2_TEST_PKGDIR)/usr/bin/$${file}; \
> +	   done
> +	@for file in $(SDL2_TEST_DATA); \
> +	   do \
> +	     install -vD -m 0644 $(SDL2_TEST_DIR)/$(SDL2_TEST_SUBDIR)/$${file} \
> +	       $(SDL2_TEST_PKGDIR)/usr/bin/$${file}; \
> +	   done

use $(foreach ... and '$(ptx/nl)' instead of ';'

> +	@$(call touch)
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/sdl2-test.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, sdl2-test)
> +	@$(call install_fixup, sdl2-test,PRIORITY,optional)
> +	@$(call install_fixup, sdl2-test,SECTION,base)
> +	@$(call install_fixup, sdl2-test,AUTHOR,"Michael Grzeschik <mgr@pengutronix.de>")
> +	@$(call install_fixup, sdl2-test,DESCRIPTION,missing)
> +
> +	@for file in $(SDL2_TEST_TOOLS); \
> +	   do \
> +	      $(call install_copy, sdl2-test, 0, 0, 755, -, /usr/bin/$$file) \
> +	   done
> +
> +	@for file in $(SDL2_TEST_DATA); \
> +	   do \
> +	      $(call install_copy, sdl2-test, 0, 0, 644, -, /usr/bin/$$file) \
> +	   done

dito.

Michael

> +
> +	@$(call install_finish, sdl2-test)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make
> -- 
> 2.18.0
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [ptxdist] [PATCH 3/6] sdl2-image: add new package
  2018-07-12 17:30 ` [ptxdist] [PATCH 3/6] sdl2-image: " Michael Grzeschik
@ 2018-07-13 12:33   ` Michael Olbrich
  0 siblings, 0 replies; 11+ messages in thread
From: Michael Olbrich @ 2018-07-13 12:33 UTC (permalink / raw)
  To: ptxdist

On Thu, Jul 12, 2018 at 07:30:53PM +0200, Michael Grzeschik wrote:
> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
> ---
>  rules/sdl2-image.in   | 52 +++++++++++++++++++++++++++++
>  rules/sdl2-image.make | 78 +++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 130 insertions(+)
>  create mode 100644 rules/sdl2-image.in
>  create mode 100644 rules/sdl2-image.make
> 
> diff --git a/rules/sdl2-image.in b/rules/sdl2-image.in
> new file mode 100644
> index 000000000..0bd3fd377
> --- /dev/null
> +++ b/rules/sdl2-image.in
> @@ -0,0 +1,52 @@
> +## SECTION=multimedia_sdl
> +
> +menuconfig SDL2_IMAGE
> +	tristate
> +	select SDL2
> +	prompt "SDL2 image                    "
> +	select LIBPNG	if SDL2_IMAGE__PNG
> +	select LIBJPEG	if SDL2_IMAGE__JPG
> +	help
> +	  This is a simple library to load images of various
> +	  formats as SDL surfaces. This library currently supports
> +	  BMP, PPM, PCX, GIF, JPEG, PNG, TIFF, and XPM formats.
> +
> +if SDL2_IMAGE
> +
> +config SDL2_IMAGE__BMP
> +	bool "bmp support"

just a single '_' everywhere.

> +
> +config SDL2_IMAGE__GIF
> +	bool "gif support"
> +
> +config SDL2_IMAGE__JPG
> +	bool "jpeg support"
> +
> +config SDL2_IMAGE__LBM
> +	bool "lbm support"
> +
> +config SDL2_IMAGE__PCX
> +	bool "pcx support"
> +
> +config SDL2_IMAGE__PNG
> +	bool "png support"
> +
> +config SDL2_IMAGE__PNM
> +	bool "pnm support"
> +
> +config SDL2_IMAGE__TGA
> +	bool "tga support"
> +
> +config SDL2_IMAGE__TIF
> +	bool "tiff support"
> +
> +config SDL2_IMAGE__XCF
> +	bool "xcf support"
> +
> +config SDL2_IMAGE__XPM
> +	bool "xpm support"
> +
> +config SDL2_IMAGE__XV
> +	bool "xv support"
> +
> +endif
> diff --git a/rules/sdl2-image.make b/rules/sdl2-image.make
> new file mode 100644
> index 000000000..109f867b2
> --- /dev/null
> +++ b/rules/sdl2-image.make
> @@ -0,0 +1,78 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2018 by Michael Grzeschik <mgr@pengutronix.de>
> +#
> +# See CREDITS for details about who has contributed to this project.
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_SDL2_IMAGE) += sdl2-image
> +
> +#
> +# Paths and names
> +#
> +SDL2_IMAGE_VERSION	:= 2.0.3
> +SDL2_IMAGE_MD5		:= c6baf6dfa80fa8a66853661a36a6034e
> +SDL2_IMAGE		:= SDL2_image-$(SDL2_IMAGE_VERSION)
> +SDL2_IMAGE_SUFFIX	:= tar.gz
> +SDL2_IMAGE_URL		:= https://www.libsdl.org/projects/SDL_image/release/$(SDL2_IMAGE).$(SDL2_IMAGE_SUFFIX)
> +SDL2_IMAGE_SOURCE	:= $(SRCDIR)/$(SDL2_IMAGE).$(SDL2_IMAGE_SUFFIX)
> +SDL2_IMAGE_DIR		:= $(BUILDDIR)/$(SDL2_IMAGE)
> +SDL2_IMAGE_LICENSE	:= unknown
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +SDL2_IMAGE_CONF_TOOL	:= autoconf
> +SDL2_IMAGE_CONF_OPT	:= \
> +	$(CROSS_AUTOCONF_USR) \
> +	--enable-shared \
> +	--disable-static \
> +	--disable-sdltest \
> +	--disable-jpg-shared \
> +	--disable-png-shared \
> +	--disable-tif-shared \
> +	--$(call ptx/endis, PTXCONF_SDL2_IMAGE__BMP)-bmp \
> +	--$(call ptx/endis, PTXCONF_SDL2_IMAGE__GIF)-gif \
> +	--$(call ptx/endis, PTXCONF_SDL2_IMAGE__JPG)-jpg \
> +	--$(call ptx/endis, PTXCONF_SDL2_IMAGE__LBM)-lbm \
> +	--$(call ptx/endis, PTXCONF_SDL2_IMAGE__PCX)-pcx \
> +	--$(call ptx/endis, PTXCONF_SDL2_IMAGE__PNG)-png \
> +	--$(call ptx/endis, PTXCONF_SDL2_IMAGE__PNM)-pnm \
> +	--$(call ptx/endis, PTXCONF_SDL2_IMAGE__TGA)-tga \
> +	--$(call ptx/endis, PTXCONF_SDL2_IMAGE__TIF)-tif \
> +	--$(call ptx/endis, PTXCONF_SDL2_IMAGE__XCF)-xcf \
> +	--$(call ptx/endis, PTXCONF_SDL2_IMAGE__XPM)-xpm \
> +	--$(call ptx/endis, PTXCONF_SDL2_IMAGE__XV)-xv
> +
> +ifdef PTXCONF_SDL2_PULSEAUDIO
> +SDL2_IMAGE_LDFLAGS 	:= \

drop the space (not the tab).

> +	-Wl,-rpath-link,$(SYSROOT)/usr/lib/pulseaudio
> +endif
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/sdl2-image.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, sdl2-image)
> +	@$(call install_fixup, sdl2-image,PRIORITY,optional)
> +	@$(call install_fixup, sdl2-image,SECTION,base)
> +	@$(call install_fixup, sdl2-image,AUTHOR,"Michael Grzeschik <mgr@pengutronix.de>")
> +	@$(call install_fixup, sdl2-image,DESCRIPTION,missing)
> +
> +	@$(call install_lib, sdl2-image, 0, 0, 0644, libSDL2_image-2.0)
> +
> +	@$(call install_finish, sdl2-image)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make
> -- 
> 2.18.0
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [ptxdist] [PATCH 4/6] sdl2-net: add new package
  2018-07-12 17:30 ` [ptxdist] [PATCH 4/6] sdl2-net: " Michael Grzeschik
@ 2018-07-13 12:35   ` Michael Olbrich
  0 siblings, 0 replies; 11+ messages in thread
From: Michael Olbrich @ 2018-07-13 12:35 UTC (permalink / raw)
  To: ptxdist

On Thu, Jul 12, 2018 at 07:30:54PM +0200, Michael Grzeschik wrote:
> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
> ---
>  rules/sdl2-net.in   | 10 ++++++++
>  rules/sdl2-net.make | 58 +++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 68 insertions(+)
>  create mode 100644 rules/sdl2-net.in
>  create mode 100644 rules/sdl2-net.make
> 
> diff --git a/rules/sdl2-net.in b/rules/sdl2-net.in
> new file mode 100644
> index 000000000..02c5a447b
> --- /dev/null
> +++ b/rules/sdl2-net.in
> @@ -0,0 +1,10 @@
> +## SECTION=multimedia_sdl
> +
> +config SDL2_NET
> +	tristate
> +	select SDL2
> +	prompt "SDL2 net                       "

only menuconfig entries are padded with spaces.

> +	help
> +	  This is a small sample cross-platform networking library, with
> +	  a sample chat client and server application. The chat client
> +	  uses the GUIlib GUI framework library.
> diff --git a/rules/sdl2-net.make b/rules/sdl2-net.make
> new file mode 100644
> index 000000000..6d45b0e2c
> --- /dev/null
> +++ b/rules/sdl2-net.make
> @@ -0,0 +1,58 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2018 by Michael Grzeschik <mgr@pengutronix.de>
> +#
> +# See CREDITS for details about who has contributed to this project.
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_SDL2_NET) += sdl2-net
> +
> +#
> +# Paths and names
> +#
> +SDL2_NET_VERSION	:= 2.0.1
> +SDL2_NET_MD5		:= 5c1d9d1cfa63301b141cb5c0de2ea7c4
> +SDL2_NET		:= SDL2_net-$(SDL2_NET_VERSION)
> +SDL2_NET_SUFFIX	:= tar.gz
> +SDL2_NET_URL		:= https://www.libsdl.org/projects/SDL_net/release/$(SDL2_NET).$(SDL2_NET_SUFFIX)
> +SDL2_NET_SOURCE	:= $(SRCDIR)/$(SDL2_NET).$(SDL2_NET_SUFFIX)
> +SDL2_NET_DIR		:= $(BUILDDIR)/$(SDL2_NET)
> +SDL2_NET_LICENSE	:= unknown

Set the correct license. The same for all other packages.

> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +SDL2_NET_CONF_TOOL	:= autoconf
> +
> +ifdef PTXCONF_SDL2_PULSEAUDIO
> +SDL2_NET_LDFLAGS 	:= \

no space. The same for all other packages.

Michael

> +	-Wl,-rpath-link,$(SYSROOT)/usr/lib/pulseaudio
> +endif
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/sdl2-net.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, sdl2-net)
> +	@$(call install_fixup, sdl2-net,PRIORITY,optional)
> +	@$(call install_fixup, sdl2-net,SECTION,base)
> +	@$(call install_fixup, sdl2-net,AUTHOR,"Michael Grzeschik <mgr@pengutronix.de>")
> +	@$(call install_fixup, sdl2-net,DESCRIPTION,missing)
> +
> +	@$(call install_lib, sdl2-net, 0, 0, 0644, libSDL2_net-2.0)
> +
> +	@$(call install_finish, sdl2-net)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make
> -- 
> 2.18.0
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-07-13 12:35 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-12 17:30 [ptxdist] [PATCH 0/6] sdl2: add support for new packages Michael Grzeschik
2018-07-12 17:30 ` [ptxdist] [PATCH 1/6] sdl2: add new package Michael Grzeschik
2018-07-12 17:30 ` [ptxdist] [PATCH 2/6] sdl2-test: " Michael Grzeschik
2018-07-13 12:32   ` Michael Olbrich
2018-07-12 17:30 ` [ptxdist] [PATCH 3/6] sdl2-image: " Michael Grzeschik
2018-07-13 12:33   ` Michael Olbrich
2018-07-12 17:30 ` [ptxdist] [PATCH 4/6] sdl2-net: " Michael Grzeschik
2018-07-13 12:35   ` Michael Olbrich
2018-07-12 17:30 ` [ptxdist] [PATCH 5/6] sdl2-ttf: " Michael Grzeschik
2018-07-12 17:30 ` [ptxdist] [PATCH 6/6] sdl2-mixer: " Michael Grzeschik
2018-07-13 11:42 ` [ptxdist] [PATCH 0/6] sdl2: add support for new packages Michael Grzeschik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox