* [Buildroot] [PATCH 1/3] sdl2_gfx: new package
@ 2016-07-12 14:53 Peter Thompson
2016-07-12 14:53 ` [Buildroot] [PATCH 2/3] sdl2_image: " Peter Thompson
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Peter Thompson @ 2016-07-12 14:53 UTC (permalink / raw)
To: buildroot
sdl2_gfx created from sdl_gfx with minor changes for sdl2
Signed-off-by: Peter Thompson <peter.macleod.thompson@gmail.com>
---
package/Config.in | 1 +
package/sdl2_gfx/Config.in | 10 ++++++++++
package/sdl2_gfx/sdl2_gfx.hash | 2 ++
package/sdl2_gfx/sdl2_gfx.mk | 28 ++++++++++++++++++++++++++++
4 files changed, 41 insertions(+)
create mode 100644 package/sdl2_gfx/Config.in
create mode 100644 package/sdl2_gfx/sdl2_gfx.hash
create mode 100644 package/sdl2_gfx/sdl2_gfx.mk
diff --git a/package/Config.in b/package/Config.in
index 1910251..5a75234 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -263,6 +263,7 @@ comment "Graphic libraries"
source "package/sdl_sound/Config.in"
source "package/sdl_ttf/Config.in"
source "package/sdl2/Config.in"
+ source "package/sdl2_gfx/Config.in"
comment "Other GUIs"
source "package/qt/Config.in"
diff --git a/package/sdl2_gfx/Config.in b/package/sdl2_gfx/Config.in
new file mode 100644
index 0000000..09db436
--- /dev/null
+++ b/package/sdl2_gfx/Config.in
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_SDL2_GFX
+ bool "SDL2_gfx"
+ depends on BR2_PACKAGE_SDL2
+ help
+ The SDL2_gfx library is an extension to the SDL2 library which
+ provides basic antialiased drawing routines such as lines,
+ circles or polygons, an interpolating rotozoomer for SDL
+ surfaces, framerate control and MMX image filters.
+
+ http://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx
diff --git a/package/sdl2_gfx/sdl2_gfx.hash b/package/sdl2_gfx/sdl2_gfx.hash
new file mode 100644
index 0000000..4cb07ee
--- /dev/null
+++ b/package/sdl2_gfx/sdl2_gfx.hash
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 d69bcbceb811b4e5712fbad3ede737166327f44b727f1388c32581dbbe8c599a SDL2_gfx-1.0.1.tar.gz
diff --git a/package/sdl2_gfx/sdl2_gfx.mk b/package/sdl2_gfx/sdl2_gfx.mk
new file mode 100644
index 0000000..b409845
--- /dev/null
+++ b/package/sdl2_gfx/sdl2_gfx.mk
@@ -0,0 +1,28 @@
+################################################################################
+#
+# sdl2_gfx
+#
+################################################################################
+
+SDL2_GFX_VERSION_MAJOR = 2.0
+SDL2_GFX_VERSION = 1.0.1
+SDL2_GFX_SOURCE = SDL2_gfx-$(SDL2_GFX_VERSION).tar.gz
+SDL2_GFX_SITE = http://www.ferzkopp.net/Software/SDL2_gfx
+SDL2_GFX_LICENSE = zlib
+SDL2_GFX_LICENSE_FILES = COPYING LICENSE
+SDL2_GFX_INSTALL_STAGING = YES
+SDL2_GFX_DEPENDENCIES = sdl2
+SDL2_GFX_CONF_OPTS = \
+ --with-sdl2-prefix=$(STAGING_DIR)/usr \
+ --disable-sdl2test \
+ --enable-static
+
+# Even though x86_64 processors support MMX, the MMX-specific assembly
+# code in sdl2_gfx is IA32 specific, and does not build for x86_64.
+ifeq ($(BR2_i386)$(BR2_X86_CPU_HAS_MMX),yy)
+SDL2_GFX_CONF_OPTS += --enable-mmx
+else
+SDL2_GFX_CONF_OPTS += --disable-mmx
+endif
+
+$(eval $(autotools-package))
--
1.9.1
^ permalink raw reply related [flat|nested] 9+ messages in thread* [Buildroot] [PATCH 2/3] sdl2_image: new package 2016-07-12 14:53 [Buildroot] [PATCH 1/3] sdl2_gfx: new package Peter Thompson @ 2016-07-12 14:53 ` Peter Thompson 2016-07-15 14:22 ` Thomas Petazzoni 2016-07-12 14:53 ` [Buildroot] [PATCH 3/3] sdl2_ttf: " Peter Thompson 2016-07-15 13:49 ` [Buildroot] [PATCH 1/3] sdl2_gfx: " Thomas Petazzoni 2 siblings, 1 reply; 9+ messages in thread From: Peter Thompson @ 2016-07-12 14:53 UTC (permalink / raw) To: buildroot sdl2_image created from sdl2_image with minor changes for sdl2 Signed-off-by: Peter Thompson <peter.macleod.thompson@gmail.com> --- package/Config.in | 1 + package/sdl2_image/Config.in | 61 ++++++++++++++++++++++++++++++++++++++ package/sdl2_image/sdl2_image.hash | 2 ++ package/sdl2_image/sdl2_image.mk | 51 +++++++++++++++++++++++++++++++ 4 files changed, 115 insertions(+) create mode 100644 package/sdl2_image/Config.in create mode 100644 package/sdl2_image/sdl2_image.hash create mode 100644 package/sdl2_image/sdl2_image.mk diff --git a/package/Config.in b/package/Config.in index 5a75234..b79c237 100644 --- a/package/Config.in +++ b/package/Config.in @@ -264,6 +264,7 @@ comment "Graphic libraries" source "package/sdl_ttf/Config.in" source "package/sdl2/Config.in" source "package/sdl2_gfx/Config.in" + source "package/sdl2_image/Config.in" comment "Other GUIs" source "package/qt/Config.in" diff --git a/package/sdl2_image/Config.in b/package/sdl2_image/Config.in new file mode 100644 index 0000000..38bd266 --- /dev/null +++ b/package/sdl2_image/Config.in @@ -0,0 +1,61 @@ +config BR2_PACKAGE_SDL2_IMAGE + bool "SDL2_image" + depends on BR2_PACKAGE_SDL2 + help + SDL2_image is an image file loading library. It loads images + as SDL surfaces, and supports the following formats: + BMP, GIF, JPEG, LBM, PCX, PNG, PNM, TGA, TIFF, XCF, XPM, XV. + + http://www.libsdl.org/projects/SDL_image/ + +if BR2_PACKAGE_SDL2_IMAGE + +menu "SDL2_image file format support" + +config BR2_PACKAGE_SDL2_IMAGE_BMP + bool "enable BMP file format support" + default y + +config BR2_PACKAGE_SDL2_IMAGE_GIF + bool "enable GIF file format support" + +config BR2_PACKAGE_SDL_2IMAGE_JPEG + bool "enable JPEG file format support" + select BR2_PACKAGE_JPEG + +config BR2_PACKAGE_SDL2_IMAGE_LBM + bool "enable LBM file format support" + +config BR2_PACKAGE_SDL2_IMAGE_PCX + bool "enable PCX file format support" + +config BR2_PACKAGE_SDL2_IMAGE_PNG + bool "enable PNG file format support" + select BR2_PACKAGE_LIBPNG + +config BR2_PACKAGE_SDL2_IMAGE_PNM + bool "enable PNM file format support" + +config BR2_PACKAGE_SDL2_IMAGE_TARGA + bool "enable TARGA format support" + +config BR2_PACKAGE_SDL2_IMAGE_TIFF + bool "enable TIFF file format support" + select BR2_PACKAGE_TIFF + +config BR2_PACKAGE_SDL2_IMAGE_WEBP + bool "enable WEBP file format support" + select BR2_PACKAGE_WEBP + +config BR2_PACKAGE_SDL2_IMAGE_XCF + bool "enable XCF file format support" + +config BR2_PACKAGE_SDL2_IMAGE_XPM + bool "enable XPM format support" + +config BR2_PACKAGE_SDL2_IMAGE_XV + bool "enable XV file format support" + +endmenu + +endif diff --git a/package/sdl2_image/sdl2_image.hash b/package/sdl2_image/sdl2_image.hash new file mode 100644 index 0000000..26d0a88 --- /dev/null +++ b/package/sdl2_image/sdl2_image.hash @@ -0,0 +1,2 @@ +# Locally calculated +sha256 3a3eafbceea5125c04be585373bfd8b3a18f259bd7eae3efc4e6d8e60e0d7f64 SDL2_image-2.0.1.tar.gz diff --git a/package/sdl2_image/sdl2_image.mk b/package/sdl2_image/sdl2_image.mk new file mode 100644 index 0000000..892c828 --- /dev/null +++ b/package/sdl2_image/sdl2_image.mk @@ -0,0 +1,51 @@ +################################################################################ +# +# sdl2_image +# +################################################################################ + +SDL2_IMAGE_VERSION = 2.0.1 +SDL2_IMAGE_SOURCE = SDL2_image-$(SDL2_IMAGE_VERSION).tar.gz +SDL2_IMAGE_SITE = http://www.libsdl.org/projects/SDL_image/release +SDL2_IMAGE_INSTALL_STAGING = YES +SDL2_IMAGE_LICENSE = zlib +SDL2_IMAGE_LICENSE_FILES = COPYING + +SDL2_IMAGE_CONF_OPTS = \ + --with-sdl2-prefix=$(STAGING_DIR)/usr \ + --with-sdl2-exec-prefix=$(STAGING_DIR)/usr \ + --disable-sdl2test \ + --disable-static \ + --enable-bmp=$(if $(BR2_PACKAGE_SDL2_IMAGE_BMP),yes,no) \ + --enable-gif=$(if $(BR2_PACKAGE_SDL2_IMAGE_GIF),yes,no) \ + --enable-jpg=$(if $(BR2_PACKAGE_SDL2_IMAGE_JPEG),yes,no) \ + --enable-lbm=$(if $(BR2_PACKAGE_SDL2_IMAGE_LBM),yes,no) \ + --enable-pcx=$(if $(BR2_PACKAGE_SDL2_IMAGE_PCX),yes,no) \ + --enable-png=$(if $(BR2_PACKAGE_SDL2_IMAGE_PNG),yes,no) \ + --enable-pnm=$(if $(BR2_PACKAGE_SDL2_IMAGE_PNM),yes,no) \ + --enable-tga=$(if $(BR2_PACKAGE_SDL2_IMAGE_TARGA),yes,no) \ + --enable-tif=$(if $(BR2_PACKAGE_SDL2_IMAGE_TIFF),yes,no) \ + --enable-webp=$(if $(BR2_PACKAGE_SDL2_IMAGE_WEBP),yes,no) \ + --enable-xcf=$(if $(BR2_PACKAGE_SDL2_IMAGE_XCF),yes,no) \ + --enable-xpm=$(if $(BR2_PACKAGE_SDL2_IMAGE_XPM),yes,no) \ + --enable-xv=$(if $(BR2_PACKAGE_SDL2_IMAGE_XV),yes,no) \ + +SDL2_IMAGE_DEPENDENCIES = sdl2 \ + $(if $(BR2_PACKAGE_SDL2_IMAGE_JPEG),jpeg) \ + $(if $(BR2_PACKAGE_SDL2_IMAGE_PNG),libpng) \ + $(if $(BR2_PACKAGE_SDL2_IMAGE_TIFF),tiff) \ + $(if $(BR2_PACKAGE_SDL2_IMAGE_WEBP),webp) + +HOST_SDL2_IMAGE_CONF_OPTS = \ + --with-sdl2-prefix=$(HOST_DIR)/usr \ + --with-sdl2-exec-prefix=$(HOST_DIR)/usr \ + --disable-sdl2test \ + --disable-static \ + --disable-jpg-shared \ + --disable-png-shared \ + --disable-tif-shared \ + +HOST_SDL2_IMAGE_DEPENDENCIES = host-libjpeg host-libpng host-sdl2 + +$(eval $(autotools-package)) +$(eval $(host-autotools-package)) -- 1.9.1 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH 2/3] sdl2_image: new package 2016-07-12 14:53 ` [Buildroot] [PATCH 2/3] sdl2_image: " Peter Thompson @ 2016-07-15 14:22 ` Thomas Petazzoni 2016-07-15 23:14 ` Peter Thompson 0 siblings, 1 reply; 9+ messages in thread From: Thomas Petazzoni @ 2016-07-15 14:22 UTC (permalink / raw) To: buildroot Hello, On Tue, 12 Jul 2016 08:53:04 -0600, Peter Thompson wrote: > sdl2_image created from sdl2_image with minor changes for sdl2 > > Signed-off-by: Peter Thompson <peter.macleod.thompson@gmail.com> > --- > package/Config.in | 1 + > package/sdl2_image/Config.in | 61 ++++++++++++++++++++++++++++++++++++++ > package/sdl2_image/sdl2_image.hash | 2 ++ > package/sdl2_image/sdl2_image.mk | 51 +++++++++++++++++++++++++++++++ > 4 files changed, 115 insertions(+) > create mode 100644 package/sdl2_image/Config.in > create mode 100644 package/sdl2_image/sdl2_image.hash > create mode 100644 package/sdl2_image/sdl2_image.mk Applied, after doing the following changes: [Thomas: - remove all sub-options to select the various image formats. Between no formats enabled and all formats enabled, the size difference of the library is ~30 KB, so it really isn't worth having all those sub-options: -rwxr-xr-x 1 thomas thomas 22444 juil. 15 15:51 libSDL2_image-2.0.so.0.0.1 -rwxr-xr-x 1 thomas thomas 59216 juil. 15 15:52 libSDL2_image-2.0.so.0.0.1 consequently, we simply enable unconditionally all image formats that don't have any dependency, and use "automatic" dependencies for the 4 formats that require an external library - remove the host package variant, as it isn't used anywhere. - remove --with-sdl2-prefix and --with-sdl2-exec-prefix, and instead add a dependency on host-pkgconf so that pkg-config is used - remove --disable-static, this is handled by the autotools-package infrastructure already - point <pkg>_LICENSE_FILES to an existing file.] Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH 2/3] sdl2_image: new package 2016-07-15 14:22 ` Thomas Petazzoni @ 2016-07-15 23:14 ` Peter Thompson 0 siblings, 0 replies; 9+ messages in thread From: Peter Thompson @ 2016-07-15 23:14 UTC (permalink / raw) To: buildroot Thanks Thomas for doing all these changes. Your work on this is appreciated!! Peter On Fri, Jul 15, 2016 at 8:22 AM, Thomas Petazzoni < thomas.petazzoni@free-electrons.com> wrote: > Hello, > > On Tue, 12 Jul 2016 08:53:04 -0600, Peter Thompson wrote: > > sdl2_image created from sdl2_image with minor changes for sdl2 > > > > Signed-off-by: Peter Thompson <peter.macleod.thompson@gmail.com> > > --- > > package/Config.in | 1 + > > package/sdl2_image/Config.in | 61 > ++++++++++++++++++++++++++++++++++++++ > > package/sdl2_image/sdl2_image.hash | 2 ++ > > package/sdl2_image/sdl2_image.mk | 51 +++++++++++++++++++++++++++++++ > > 4 files changed, 115 insertions(+) > > create mode 100644 package/sdl2_image/Config.in > > create mode 100644 package/sdl2_image/sdl2_image.hash > > create mode 100644 package/sdl2_image/sdl2_image.mk > > Applied, after doing the following changes: > > [Thomas: > - remove all sub-options to select the various image formats. Between > no formats enabled and all formats enabled, the size difference of > the library is ~30 KB, so it really isn't worth having all those > sub-options: > -rwxr-xr-x 1 thomas thomas 22444 juil. 15 15:51 > libSDL2_image-2.0.so.0.0.1 > -rwxr-xr-x 1 thomas thomas 59216 juil. 15 15:52 > libSDL2_image-2.0.so.0.0.1 > consequently, we simply enable unconditionally all image formats > that don't have any dependency, and use "automatic" dependencies > for the 4 formats that require an external library > - remove the host package variant, as it isn't used anywhere. > - remove --with-sdl2-prefix and --with-sdl2-exec-prefix, and instead > add a dependency on host-pkgconf so that pkg-config is used > - remove --disable-static, this is handled by the autotools-package > infrastructure already > - point <pkg>_LICENSE_FILES to an existing file.] > > Thomas > -- > Thomas Petazzoni, CTO, Free Electrons > Embedded Linux, Kernel and Android engineering > http://free-electrons.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160715/a590c5bd/attachment.html> ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH 3/3] sdl2_ttf: new package 2016-07-12 14:53 [Buildroot] [PATCH 1/3] sdl2_gfx: new package Peter Thompson 2016-07-12 14:53 ` [Buildroot] [PATCH 2/3] sdl2_image: " Peter Thompson @ 2016-07-12 14:53 ` Peter Thompson 2016-07-15 14:41 ` Thomas Petazzoni 2016-07-15 13:49 ` [Buildroot] [PATCH 1/3] sdl2_gfx: " Thomas Petazzoni 2 siblings, 1 reply; 9+ messages in thread From: Peter Thompson @ 2016-07-12 14:53 UTC (permalink / raw) To: buildroot sdl2_ttf created from sdl_ttf with some minor changes Signed-off-by: Peter Thompson <peter.macleod.thompson@gmail.com> --- package/Config.in | 1 + package/sdl2_ttf/Config.in | 9 +++++++++ package/sdl2_ttf/sdl2_ttf.hash | 2 ++ package/sdl2_ttf/sdl2_ttf.mk | 20 ++++++++++++++++++++ 4 files changed, 32 insertions(+) create mode 100644 package/sdl2_ttf/Config.in create mode 100644 package/sdl2_ttf/sdl2_ttf.hash create mode 100644 package/sdl2_ttf/sdl2_ttf.mk diff --git a/package/Config.in b/package/Config.in index b79c237..10617bc 100644 --- a/package/Config.in +++ b/package/Config.in @@ -265,6 +265,7 @@ comment "Graphic libraries" source "package/sdl2/Config.in" source "package/sdl2_gfx/Config.in" source "package/sdl2_image/Config.in" + source "package/sdl2_ttf/Config.in" comment "Other GUIs" source "package/qt/Config.in" diff --git a/package/sdl2_ttf/Config.in b/package/sdl2_ttf/Config.in new file mode 100644 index 0000000..cb77059 --- /dev/null +++ b/package/sdl2_ttf/Config.in @@ -0,0 +1,9 @@ +config BR2_PACKAGE_SDL2_TTF + bool "SDL2_TTF" + depends on BR2_PACKAGE_SDL2 + select BR2_PACKAGE_FREETYPE + help + SDL2_ttf is a sample TrueType font library. It allows you to + use TrueType fonts in your SDL2 applications. + + http://www.libsdl.org/projects/SDL_ttf/ diff --git a/package/sdl2_ttf/sdl2_ttf.hash b/package/sdl2_ttf/sdl2_ttf.hash new file mode 100644 index 0000000..515189a --- /dev/null +++ b/package/sdl2_ttf/sdl2_ttf.hash @@ -0,0 +1,2 @@ +# Locally calculated +sha256 34db5e20bcf64e7071fe9ae25acaa7d72bdc4f11ab3ce59acc768ab62fe39276 SDL2_ttf-2.0.14.tar.gz diff --git a/package/sdl2_ttf/sdl2_ttf.mk b/package/sdl2_ttf/sdl2_ttf.mk new file mode 100644 index 0000000..2428e9b --- /dev/null +++ b/package/sdl2_ttf/sdl2_ttf.mk @@ -0,0 +1,20 @@ +################################################################################ +# +# sdl2_ttf +# +################################################################################ + +SDL2_TTF_VERSION = 2.0.14 +SDL2_TTF_SOURCE = SDL2_ttf-$(SDL2_TTF_VERSION).tar.gz +SDL2_TTF_SITE = http://www.libsdl.org/projects/SDL_ttf/release +SDL2_TTF_LICENSE = zlib +SDL2_TTF_LICENSE_FILES = COPYING + +SDL2_TTF_INSTALL_STAGING = YES +SDL2_TTF_DEPENDENCIES = sdl2 freetype +SDL2_TTF_CONF_OPTS = \ + --without-x \ + --with-freetype-prefix=$(STAGING_DIR)/usr \ + --with-sdl2-prefix=$(STAGING_DIR)/usr + +$(eval $(autotools-package)) -- 1.9.1 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH 3/3] sdl2_ttf: new package 2016-07-12 14:53 ` [Buildroot] [PATCH 3/3] sdl2_ttf: " Peter Thompson @ 2016-07-15 14:41 ` Thomas Petazzoni 2016-07-15 23:17 ` Peter Thompson 0 siblings, 1 reply; 9+ messages in thread From: Thomas Petazzoni @ 2016-07-15 14:41 UTC (permalink / raw) To: buildroot Hello, On Tue, 12 Jul 2016 08:53:05 -0600, Peter Thompson wrote: > sdl2_ttf created from sdl_ttf with some minor changes > > Signed-off-by: Peter Thompson <peter.macleod.thompson@gmail.com> > --- > package/Config.in | 1 + > package/sdl2_ttf/Config.in | 9 +++++++++ > package/sdl2_ttf/sdl2_ttf.hash | 2 ++ > package/sdl2_ttf/sdl2_ttf.mk | 20 ++++++++++++++++++++ > 4 files changed, 32 insertions(+) > create mode 100644 package/sdl2_ttf/Config.in > create mode 100644 package/sdl2_ttf/sdl2_ttf.hash > create mode 100644 package/sdl2_ttf/sdl2_ttf.mk Applied after doing the following changes: [Thomas: - point <pkg>_LICENSE_FILES to a file that actually exists - add host-pkgconf to the dependencies - remove unneeded CONF_OPTS options - pass FREETYPE_CONFIG in the environment to point to freetype-config] Thanks! Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH 3/3] sdl2_ttf: new package 2016-07-15 14:41 ` Thomas Petazzoni @ 2016-07-15 23:17 ` Peter Thompson 0 siblings, 0 replies; 9+ messages in thread From: Peter Thompson @ 2016-07-15 23:17 UTC (permalink / raw) To: buildroot On behalf of all us SDL2 users, thanks for taking the time to look at, and repair, my 3 submitted patches. Your work is appreciated by many!!! Peter On Fri, Jul 15, 2016 at 8:41 AM, Thomas Petazzoni < thomas.petazzoni@free-electrons.com> wrote: > Hello, > > On Tue, 12 Jul 2016 08:53:05 -0600, Peter Thompson wrote: > > sdl2_ttf created from sdl_ttf with some minor changes > > > > Signed-off-by: Peter Thompson <peter.macleod.thompson@gmail.com> > > --- > > package/Config.in | 1 + > > package/sdl2_ttf/Config.in | 9 +++++++++ > > package/sdl2_ttf/sdl2_ttf.hash | 2 ++ > > package/sdl2_ttf/sdl2_ttf.mk | 20 ++++++++++++++++++++ > > 4 files changed, 32 insertions(+) > > create mode 100644 package/sdl2_ttf/Config.in > > create mode 100644 package/sdl2_ttf/sdl2_ttf.hash > > create mode 100644 package/sdl2_ttf/sdl2_ttf.mk > > Applied after doing the following changes: > > [Thomas: > - point <pkg>_LICENSE_FILES to a file that actually exists > - add host-pkgconf to the dependencies > - remove unneeded CONF_OPTS options > - pass FREETYPE_CONFIG in the environment to point to freetype-config] > > Thanks! > > Thomas > -- > Thomas Petazzoni, CTO, Free Electrons > Embedded Linux, Kernel and Android engineering > http://free-electrons.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160715/dbd95a69/attachment.html> ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH 1/3] sdl2_gfx: new package 2016-07-12 14:53 [Buildroot] [PATCH 1/3] sdl2_gfx: new package Peter Thompson 2016-07-12 14:53 ` [Buildroot] [PATCH 2/3] sdl2_image: " Peter Thompson 2016-07-12 14:53 ` [Buildroot] [PATCH 3/3] sdl2_ttf: " Peter Thompson @ 2016-07-15 13:49 ` Thomas Petazzoni 2016-07-15 14:10 ` Peter Thompson 2 siblings, 1 reply; 9+ messages in thread From: Thomas Petazzoni @ 2016-07-15 13:49 UTC (permalink / raw) To: buildroot Hello, On Tue, 12 Jul 2016 08:53:03 -0600, Peter Thompson wrote: > sdl2_gfx created from sdl_gfx with minor changes for sdl2 > > Signed-off-by: Peter Thompson <peter.macleod.thompson@gmail.com> Thanks, I've applied, but many, many things had to be changed. It did not even build for me. I think you re-used too much of the sdl_gfx package without checking. > +++ b/package/sdl2_gfx/Config.in > @@ -0,0 +1,10 @@ > +config BR2_PACKAGE_SDL2_GFX > + bool "SDL2_gfx" > + depends on BR2_PACKAGE_SDL2 > + help > + The SDL2_gfx library is an extension to the SDL2 library which > + provides basic antialiased drawing routines such as lines, > + circles or polygons, an interpolating rotozoomer for SDL > + surfaces, framerate control and MMX image filters. I have rewrapped the Config.in help text. > +SDL2_GFX_VERSION_MAJOR = 2.0 This variable is not used anywhere. > +SDL2_GFX_VERSION = 1.0.1 > +SDL2_GFX_SOURCE = SDL2_gfx-$(SDL2_GFX_VERSION).tar.gz > +SDL2_GFX_SITE = http://www.ferzkopp.net/Software/SDL2_gfx > +SDL2_GFX_LICENSE = zlib > +SDL2_GFX_LICENSE_FILES = COPYING LICENSE There is no file named "LICENSE" in the source tree, so I've replaced that with a source file that contains the license text. > +SDL2_GFX_INSTALL_STAGING = YES > +SDL2_GFX_DEPENDENCIES = sdl2 I've added host-pkgconf in the dependencies since sdl2_gfx configure script tries to use pkg-config. > +SDL2_GFX_CONF_OPTS = \ > + --with-sdl2-prefix=$(STAGING_DIR)/usr \ This option doesn't exist, it is called --with-sdl-prefix. But once pkg-config is available, passing --with-sdl-prefix is useless. > + --disable-sdl2test \ This option doesn't exist, it is called --disable-sdltest. > + --enable-static This option shouldn't be passed by packages, the autotools package infrastructure takes care of passing --{enable,disable}-{static,shared} as needed. Also, the configure/Makefile.in files need to be regenerated, otherwise it tries to use aclocal at build time. So I've added SDL2_AUTORECONF = YES. Summary of the changes: [Thomas: - Rewrap Config.in help text. - Remove unused SDL2_GFX_VERSION_MAJOR variable - Add host-pkgconf to the dependencies, since pkg-config is used to find sdl2. This fixes the build, otherwise -I/usr/include/sdl2 was added to the CFLAGS when sdl2-config was found on the host machine. - Remove --with-sdl2-prefix, since this option doesn't exist, and using pkg-config is a better solution (--with-sdl-prefix exists, but is not useful when pkg-config is available). - Remove --enable-static, packages are not supposed to pass such an option, it's not automatically by the autotools package infrastructure. - Pass --disable-sdltest instead of --disable-sdl2test since the latter doesn't exist, while the former does. - Pass SDL2_GFX_AUTORECONF = YES since the configure/Makefile.in are not up-to-date and therefore it tries to use aclocal at build time. - Adjust _LICENSE_FILES, since there is no file named 'LICENSE', use the smallest source file instead, since it contains the license text.] Best regards, Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH 1/3] sdl2_gfx: new package 2016-07-15 13:49 ` [Buildroot] [PATCH 1/3] sdl2_gfx: " Thomas Petazzoni @ 2016-07-15 14:10 ` Peter Thompson 0 siblings, 0 replies; 9+ messages in thread From: Peter Thompson @ 2016-07-15 14:10 UTC (permalink / raw) To: buildroot Thomas, Thanks very very much! Sorry that it took you so much effort to get it working. Your added work is appreciated. It had seemed to work for me - not sure where I went wrong. Hopefully my future contributions improve as my knowledge improves. Peter On Fri, Jul 15, 2016 at 7:49 AM, Thomas Petazzoni < thomas.petazzoni@free-electrons.com> wrote: > Hello, > > On Tue, 12 Jul 2016 08:53:03 -0600, Peter Thompson wrote: > > sdl2_gfx created from sdl_gfx with minor changes for sdl2 > > > > Signed-off-by: Peter Thompson <peter.macleod.thompson@gmail.com> > > Thanks, I've applied, but many, many things had to be changed. It did > not even build for me. I think you re-used too much of the sdl_gfx > package without checking. > > > > +++ b/package/sdl2_gfx/Config.in > > @@ -0,0 +1,10 @@ > > +config BR2_PACKAGE_SDL2_GFX > > + bool "SDL2_gfx" > > + depends on BR2_PACKAGE_SDL2 > > + help > > + The SDL2_gfx library is an extension to the SDL2 library which > > + provides basic antialiased drawing routines such as lines, > > + circles or polygons, an interpolating rotozoomer for SDL > > + surfaces, framerate control and MMX image filters. > > I have rewrapped the Config.in help text. > > > +SDL2_GFX_VERSION_MAJOR = 2.0 > > This variable is not used anywhere. > > > +SDL2_GFX_VERSION = 1.0.1 > > +SDL2_GFX_SOURCE = SDL2_gfx-$(SDL2_GFX_VERSION).tar.gz > > +SDL2_GFX_SITE = http://www.ferzkopp.net/Software/SDL2_gfx > > +SDL2_GFX_LICENSE = zlib > > +SDL2_GFX_LICENSE_FILES = COPYING LICENSE > > There is no file named "LICENSE" in the source tree, so I've replaced > that with a source file that contains the license text. > > > +SDL2_GFX_INSTALL_STAGING = YES > > +SDL2_GFX_DEPENDENCIES = sdl2 > > I've added host-pkgconf in the dependencies since sdl2_gfx configure > script tries to use pkg-config. > > > +SDL2_GFX_CONF_OPTS = \ > > + --with-sdl2-prefix=$(STAGING_DIR)/usr \ > > This option doesn't exist, it is called --with-sdl-prefix. But once > pkg-config is available, passing --with-sdl-prefix is useless. > > > + --disable-sdl2test \ > > This option doesn't exist, it is called --disable-sdltest. > > > + --enable-static > > This option shouldn't be passed by packages, the autotools package > infrastructure takes care of passing --{enable,disable}-{static,shared} > as needed. > > Also, the configure/Makefile.in files need to be regenerated, otherwise > it tries to use aclocal at build time. So I've added SDL2_AUTORECONF = > YES. > > Summary of the changes: > > [Thomas: > - Rewrap Config.in help text. > - Remove unused SDL2_GFX_VERSION_MAJOR variable > - Add host-pkgconf to the dependencies, since pkg-config is used to > find sdl2. This fixes the build, otherwise -I/usr/include/sdl2 was > added to the CFLAGS when sdl2-config was found on the host machine. > - Remove --with-sdl2-prefix, since this option doesn't exist, and > using pkg-config is a better solution (--with-sdl-prefix exists, > but is not useful when pkg-config is available). > - Remove --enable-static, packages are not supposed to pass such an > option, it's not automatically by the autotools package > infrastructure. > - Pass --disable-sdltest instead of --disable-sdl2test since the > latter doesn't exist, while the former does. > - Pass SDL2_GFX_AUTORECONF = YES since the configure/Makefile.in are > not up-to-date and therefore it tries to use aclocal at build time. > - Adjust _LICENSE_FILES, since there is no file named 'LICENSE', use > the smallest source file instead, since it contains the license > text.] > > Best regards, > > Thomas > -- > Thomas Petazzoni, CTO, Free Electrons > Embedded Linux, Kernel and Android engineering > http://free-electrons.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160715/2bb39757/attachment.html> ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2016-07-15 23:17 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-07-12 14:53 [Buildroot] [PATCH 1/3] sdl2_gfx: new package Peter Thompson 2016-07-12 14:53 ` [Buildroot] [PATCH 2/3] sdl2_image: " Peter Thompson 2016-07-15 14:22 ` Thomas Petazzoni 2016-07-15 23:14 ` Peter Thompson 2016-07-12 14:53 ` [Buildroot] [PATCH 3/3] sdl2_ttf: " Peter Thompson 2016-07-15 14:41 ` Thomas Petazzoni 2016-07-15 23:17 ` Peter Thompson 2016-07-15 13:49 ` [Buildroot] [PATCH 1/3] sdl2_gfx: " Thomas Petazzoni 2016-07-15 14:10 ` Peter Thompson
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox