mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH 2/6] sdl2-test: add new package
Date: Fri, 13 Jul 2018 14:32:09 +0200	[thread overview]
Message-ID: <20180713123209.ixvg5xwji5px3jaf@pengutronix.de> (raw)
In-Reply-To: <20180712173056.20981-3-m.grzeschik@pengutronix.de>

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

  reply	other threads:[~2018-07-13 12:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180713123209.ixvg5xwji5px3jaf@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox