Signed-off-by: PeterThompson <[email protected]>
PATCH 1/1 Signed-off-by: PeterThompson <[email protected]>
From: PeterThompson <[email protected]>
sdl2_ttf created from sdl_ttf with minor changes for sdl2
--- package/Config.in | 1 + package/sdl2_ttf/Config.in | 9 +++++++++ package/sdl2_ttf/sdl2_ttf.mk | 21 +++++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 package/sdl2_ttf/Config.in create mode 100644 package/sdl2_ttf/sdl2_ttf.mk
package/Config.in +1 -0
@@ -280,6 +280,7 @@ endif source "package/sdl_sound/Config.in" source "package/sdl_ttf/Config.in" source "package/sdl2/Config.in" + source "package/sdl2_ttf/Config.in" comment "Other GUIs" source "package/qt/Config.in"
package/sdl2_ttf/Config.in new file +9 -0
@@ -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/
package/sdl2_ttf/sdl2_ttf.mk new file +21 -0
@@ -0,0 +1,21 @@ +################################################################################ +# +# 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 + +SDL2_TTF_MAKE_OPTS = INCLUDES="-I$(STAGING_DIR)/usr/include/SDL2" LDFLAGS="-L$(STAGING_DIR)/usr/lib" +$(eval $(autotools-package))
Signature · 1 line
1.9.1
PATCH 1/1 Signed-off-by: PeterThompson <[email protected]>
Hello,
As Baruch said, the first line of your commit should be:
sdl2_ttf: new package
Quoted 1 line · Peter Thompson
From: PeterThompson <[email protected]>
Please add a space between Peter and Thompson.
Quoted 4 lines
sdl2_ttfcreated fromsdl_ttfwith minor changes for sdl2Signed-off-by PeterThompson <[email protected]>
Ditto.
Quoted 15 lines
new file mode 100644
index 0000000..8eb480fpackage/sdl2_ttf/sdl2_ttf.mk new file +10
-0@@ -0,0 +1,21 @@ +################################################################################ +# +# 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
package/sdl2_ttf/sdl2_ttf.mk line 20
Quoted 10 lines
package/sdl2_ttf/sdl2_ttf.mk new file +10
-0+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 + +SDL2_TTF_MAKE_OPTS = INCLUDES="-I$(STAGING_DIR)/usr/include/SDL2" LDFLAGS="-L$(STAGING_DIR)/usr/lib"
The LDFLAGS should not be needed, as searching for libraries in $(STAGING_DIR)/usr/lib is the default. Regarding the INCLUDES variable, it's also a bit weird, since you're already passing --with-sdl2-prefix=$(STAGING_DIR)/usr in CONF_OPTS.
Please include a blank line before the last variable definition and the call to the autotools-package macro.
Finally, please add a hash file (see
https://buildroot.org/downloads/manual/manual.html#adding-packages-hash).
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com