code
string
repo_name
string
path
string
language
string
license
string
size
int64
# Locally calculated sha256 14457b185c77b947ca2f8e09a2c3ec66940d97a2ccea28b8e61a6e0f3a0033f6 libenca-1.16.tar.gz
shibajee/buildroot
package/libenca/libenca.hash
hash
mit
114
################################################################################ # # libenca # ################################################################################ LIBENCA_VERSION = 1.16 LIBENCA_SITE = $(call github,nijel,enca,$(LIBENCA_VERSION)) LIBENCA_INSTALL_STAGING = YES LIBENCA_LICENSE = GPLv2 LIBENCA_LICENSE_FILES = COPYING LIBENCA_DEPENDENCIES = $(if $(BR2_PACKAGE_LIBICONV),libiconv) LIBENCA_CONF_ENV += \ ac_cv_file__dev_random=yes \ ac_cv_file__dev_urandom=yes \ ac_cv_file__dev_arandom=no \ ac_cv_file__dev_srandom=no define LIBENCA_MAKE_HOST_TOOL $(MAKE) -C $(@D)/tools $(HOST_CONFIGURE_OPTS) make_hash endef LIBENCA_PRE_BUILD_HOOKS += LIBENCA_MAKE_HOST_TOOL $(eval $(autotools-package))
shibajee/buildroot
package/libenca/libenca.mk
mk
mit
725
From 7eff2bf8e27599c1c94217b2bb1b73d4b7d18e59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com> Date: Wed, 6 May 2015 10:45:22 +0200 Subject: [PATCH 1/4] select platforms based on configuration results MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Fetched from pull #81 on github for libepoxy: https://github.com/anholt/libepoxy/pull/81/commits Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> --- configure.ac | 13 +++++-------- src/dispatch_common.c | 9 ++++++--- src/dispatch_common.h | 9 +++++---- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/configure.ac b/configure.ac index 2d67726..225ab73 100644 --- a/configure.ac +++ b/configure.ac @@ -58,6 +58,10 @@ AC_CHECK_HEADER([KHR/khrplatform.h], # uintptr_t to a void *") by default. Kill that. XORG_TESTSET_CFLAG(CWARNFLAGS, [-Wno-int-conversion]) +PKG_CHECK_MODULES(X11, [x11], [x11=yes], [x11=no]) + +AM_CONDITIONAL(HAVE_X11, test x$x11 = xyes) + has_znow=yes case $host_os in @@ -86,7 +90,7 @@ case $host_os in ;; *) build_egl=yes - build_glx=yes + build_glx=$x11 build_wgl=no # On platforms with dlopen, we load everything dynamically and # don't link against a specific window system or GL implementation. @@ -144,13 +148,6 @@ esac AC_SUBST([VISIBILITY_CFLAGS]) -PKG_CHECK_MODULES(X11, [x11], [x11=yes], [x11=no]) -if test x$x11 = xno -a x$build_glx = xyes; then - AC_MSG_ERROR([libX11 headers (libx11-dev) required to build with GLX support]) -fi - -AM_CONDITIONAL(HAVE_X11, test x$x11 = xyes) - PKG_CHECK_MODULES(GL, [gl], [gl=yes], [gl=no]) AC_CONFIG_FILES([ diff --git a/src/dispatch_common.c b/src/dispatch_common.c index 013027f..163d348 100644 --- a/src/dispatch_common.c +++ b/src/dispatch_common.c @@ -656,10 +656,13 @@ epoxy_get_proc_address(const char *name) #elif defined(__APPLE__) return epoxy_gl_dlsym(name); #else +#if PLATFORM_HAS_GLX if (epoxy_current_context_is_glx()) { return glXGetProcAddressARB((const GLubyte *)name); - } else { + } else +#endif /* PLATFORM_HAS_GLX */ #if PLATFORM_HAS_EGL + { GLenum egl_api = epoxy_egl_get_current_gl_context_api(); switch (egl_api) { @@ -669,10 +672,10 @@ epoxy_get_proc_address(const char *name) case EGL_NONE: break; } -#endif } +#endif /* PLATFORM_HAS_EGL */ errx(1, "Couldn't find current GLX or EGL context.\n"); -#endif +#endif /* _WIN32 | __APPLE__*/ } WRAPPER_VISIBILITY (void) diff --git a/src/dispatch_common.h b/src/dispatch_common.h index 676a4d5..2728b45 100644 --- a/src/dispatch_common.h +++ b/src/dispatch_common.h @@ -21,12 +21,13 @@ * IN THE SOFTWARE. */ +#include <config.h> #include <stdbool.h> #ifdef _WIN32 #define PLATFORM_HAS_EGL 0 #define PLATFORM_HAS_GLX 0 -#define PLATFORM_HAS_WGL 1 +#define PLATFORM_HAS_WGL BUILD_WGL #define EPOXY_IMPORTEXPORT __declspec(dllexport) #elif defined(__APPLE__) #define PLATFORM_HAS_EGL 0 @@ -34,13 +35,13 @@ #define PLATFORM_HAS_WGL 0 #define EPOXY_IMPORTEXPORT #elif defined(ANDROID) -#define PLATFORM_HAS_EGL 1 +#define PLATFORM_HAS_EGL BUILD_EGL #define PLATFORM_HAS_GLX 0 #define PLATFORM_HAS_WGL 0 #define EPOXY_IMPORTEXPORT #else -#define PLATFORM_HAS_EGL 1 -#define PLATFORM_HAS_GLX 1 +#define PLATFORM_HAS_EGL BUILD_EGL +#define PLATFORM_HAS_GLX BUILD_GLX #define PLATFORM_HAS_WGL 0 #define EPOXY_IMPORTEXPORT #endif
shibajee/buildroot
package/libepoxy/0001-select-platforms-based-on-configuration-results.patch
patch
mit
3,608
From a9efde0fb2678cd26bdf26d256732d97ded0c595 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com> Date: Wed, 6 May 2015 11:05:48 +0200 Subject: [PATCH 2/4] add an option to disable glx support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit this option would help us in yocto to get deterministic build results Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Fetched from pull #81 on github for libepoxy: https://github.com/anholt/libepoxy/pull/81/commits Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> --- configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 225ab73..d3d947c 100644 --- a/configure.ac +++ b/configure.ac @@ -58,7 +58,14 @@ AC_CHECK_HEADER([KHR/khrplatform.h], # uintptr_t to a void *") by default. Kill that. XORG_TESTSET_CFLAG(CWARNFLAGS, [-Wno-int-conversion]) -PKG_CHECK_MODULES(X11, [x11], [x11=yes], [x11=no]) +AC_ARG_ENABLE([glx], + [AS_HELP_STRING([--disable-glx], + [disable if you don't want x11/glx support])], + [], + [enable_glx=yes] + ) + +PKG_CHECK_MODULES(X11, [x11], [x11=$enable_glx], [x11=no]) AM_CONDITIONAL(HAVE_X11, test x$x11 = xyes)
shibajee/buildroot
package/libepoxy/0002-add-an-option-to-disable-glx-support.patch
patch
mit
1,329
From 902ea1eb073187603ec2eda4d2a146bef96592d4 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Sequoia <jeremyhu@apple.com> Date: Mon, 18 Jan 2016 10:08:44 -0800 Subject: [PATCH 3/4] Make --enable-glx actually work on OSX and Windows Followup for anholt/libepoxy#52 Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com> Fetched from pull #81 on github for libepoxy: https://github.com/anholt/libepoxy/pull/81/commits Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> --- configure.ac | 6 +++--- src/dispatch_common.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index d3d947c..b4c7ede 100644 --- a/configure.ac +++ b/configure.ac @@ -61,7 +61,7 @@ XORG_TESTSET_CFLAG(CWARNFLAGS, [-Wno-int-conversion]) AC_ARG_ENABLE([glx], [AS_HELP_STRING([--disable-glx], [disable if you don't want x11/glx support])], - [], + [enable_glx=$enableval], [enable_glx=yes] ) @@ -74,7 +74,7 @@ has_znow=yes case $host_os in mingw*) build_egl=no - build_glx=no + build_glx=$x11 build_wgl=yes # On windows, the DLL has to have all of its functions # resolved at link time, so we have to link directly aginst @@ -89,7 +89,7 @@ case $host_os in ;; darwin*) build_egl=no - build_glx=no + build_glx=$x11 build_wgl=no build_apple=yes has_znow=no diff --git a/src/dispatch_common.h b/src/dispatch_common.h index 2728b45..c30ce44 100644 --- a/src/dispatch_common.h +++ b/src/dispatch_common.h @@ -26,12 +26,12 @@ #ifdef _WIN32 #define PLATFORM_HAS_EGL 0 -#define PLATFORM_HAS_GLX 0 +#define PLATFORM_HAS_GLX BUILD_GLX #define PLATFORM_HAS_WGL BUILD_WGL #define EPOXY_IMPORTEXPORT __declspec(dllexport) #elif defined(__APPLE__) #define PLATFORM_HAS_EGL 0 -#define PLATFORM_HAS_GLX 0 +#define PLATFORM_HAS_GLX BUILD_GLX #define PLATFORM_HAS_WGL 0 #define EPOXY_IMPORTEXPORT #elif defined(ANDROID)
shibajee/buildroot
package/libepoxy/0003-make-enable-glx-actually-work-on-osx-and-windows.patch
patch
mit
2,068
From d010922282580a32dfebcda12ee1c307b3ef6005 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Sequoia <jeremyhu@apple.com> Date: Mon, 18 Jan 2016 09:49:55 -0800 Subject: [PATCH 4/4] darwin: Use GLX instead of OpenGL.framework if it is the current context Also makes a stab at similar support for Win32 anholt/libepoxy#63 Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com> Fetched from pull #81 on github for libepoxy: https://github.com/anholt/libepoxy/pull/81/commits Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> --- src/dispatch_common.c | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/src/dispatch_common.c b/src/dispatch_common.c index 163d348..cb9f76a 100644 --- a/src/dispatch_common.c +++ b/src/dispatch_common.c @@ -482,16 +482,20 @@ epoxy_glx_dlsym(const char *name) void * epoxy_gl_dlsym(const char *name) { -#ifdef _WIN32 +#if defined(_WIN32) || defined(__APPLE__) +if (!epoxy_current_context_is_glx()) { +# if defined(_WIN32) return do_dlsym(&api.gl_handle, "OPENGL32", name, true); -#elif defined(__APPLE__) +# elif defined(__APPLE__) return do_dlsym(&api.gl_handle, "/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL", name, true); -#else +# endif +} +#endif + /* There's no library for desktop GL support independent of GLX. */ return epoxy_glx_dlsym(name); -#endif } void * @@ -615,7 +619,7 @@ epoxy_get_bootstrap_proc_address(const char *name) */ #if PLATFORM_HAS_GLX if (api.glx_handle && glXGetCurrentContext()) - return epoxy_gl_dlsym(name); + return epoxy_glx_dlsym(name); #endif /* If epoxy hasn't loaded any API-specific library yet, try to @@ -644,22 +648,17 @@ epoxy_get_bootstrap_proc_address(const char *name) } #endif /* PLATFORM_HAS_EGL */ - /* Fall back to GLX */ + /* Fall back to the platform default */ return epoxy_gl_dlsym(name); } void * epoxy_get_proc_address(const char *name) { -#ifdef _WIN32 - return wglGetProcAddress(name); -#elif defined(__APPLE__) - return epoxy_gl_dlsym(name); -#else #if PLATFORM_HAS_GLX if (epoxy_current_context_is_glx()) { return glXGetProcAddressARB((const GLubyte *)name); - } else + } #endif /* PLATFORM_HAS_GLX */ #if PLATFORM_HAS_EGL { @@ -674,8 +673,12 @@ epoxy_get_proc_address(const char *name) } } #endif /* PLATFORM_HAS_EGL */ +#if defined(_WIN32) + return wglGetProcAddress(name); +#elif defined(__APPLE__) + return epoxy_gl_dlsym(name); +#endif errx(1, "Couldn't find current GLX or EGL context.\n"); -#endif /* _WIN32 | __APPLE__*/ } WRAPPER_VISIBILITY (void)
shibajee/buildroot
package/libepoxy/0004-darwin-use-glx-instead-of-opengl-framework.patch
patch
mit
2,731
From 68e5f1574758240aedfe8653d7aaae62cdb08bf5 Mon Sep 17 00:00:00 2001 From: Gustavo Zacarias <gustavo@zacarias.com.ar> Date: Sun, 20 Dec 2015 10:07:06 -0300 Subject: [PATCH] Forward egl cflags into epoxy.pc When building mesa egl without x11 and gles2 the headers need a MESA_EGL_NO_X11_HEADERS define, so put them in epoxy.pc as well since otherwise builds will fail. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> --- Status: pull request https://github.com/anholt/libepoxy/pull/80 configure.ac | 2 ++ epoxy.pc.in | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index c7cffb2..7b599de 100644 --- a/configure.ac +++ b/configure.ac @@ -102,6 +102,8 @@ if test x$build_egl = xyes; then AC_DEFINE([BUILD_EGL], [1], [build EGL tests]) fi +AC_SUBST(EGL_CFLAGS) + PKG_CHECK_MODULES(GL, [gl], [gl=yes], [gl=no]) if test x$gl = xno; then build_glx=no diff --git a/epoxy.pc.in b/epoxy.pc.in index 8c85a33..f377da5 100644 --- a/epoxy.pc.in +++ b/epoxy.pc.in @@ -6,6 +6,6 @@ includedir=@includedir@ Name: epoxy Description: epoxy GL dispatch Library Version: @PACKAGE_VERSION@ -Cflags: -I${includedir} +Cflags: -I${includedir} @EGL_CFLAGS@ Libs: -L${libdir} -lepoxy Libs.private: @DLOPEN_LIBS@ -- 2.4.10
shibajee/buildroot
package/libepoxy/0005-Forward-egl-cflags-into-epoxy.pc.patch
patch
mit
1,284
From 5492e81f317e48141b0687ad77252c52c2dfcd6d Mon Sep 17 00:00:00 2001 From: Gustavo Zacarias <gustavo@zacarias.com.ar> Date: Fri, 5 Feb 2016 19:03:39 -0300 Subject: [PATCH] Make egl conditional Mesa can be built with GLX and without EGL support, so make this possible in epoxy as well. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> --- configure.ac | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 6e56599..21e3a25 100644 --- a/configure.ac +++ b/configure.ac @@ -58,6 +58,13 @@ AC_CHECK_HEADER([KHR/khrplatform.h], # uintptr_t to a void *") by default. Kill that. XORG_TESTSET_CFLAG(CWARNFLAGS, [-Wno-int-conversion]) +AC_ARG_ENABLE([egl], + [AS_HELP_STRING([--disable-egl], + [disable if you don't want egl support])], + [enable_egl=$enableval], + [enable_egl=yes] + ) + AC_ARG_ENABLE([glx], [AS_HELP_STRING([--disable-glx], [disable if you don't want x11/glx support])], @@ -65,6 +72,7 @@ AC_ARG_ENABLE([glx], [enable_glx=yes] ) +PKG_CHECK_MODULES(EGL, [egl], [egl=$enable_egl], [egl=no]) PKG_CHECK_MODULES(X11, [x11], [x11=$enable_glx], [x11=no]) AM_CONDITIONAL(HAVE_X11, test x$x11 = xyes) @@ -96,7 +104,7 @@ case $host_os in EPOXY_LINK_LIBS="" ;; *) - build_egl=yes + build_egl=$egl build_glx=$x11 build_wgl=no # On platforms with dlopen, we load everything dynamically and @@ -109,7 +117,6 @@ AC_SUBST(EPOXY_LINK_LIBS) AM_CONDITIONAL(BUILD_EGL, test x$build_egl = xyes) if test x$build_egl = xyes; then - PKG_CHECK_MODULES(EGL, [egl]) AC_DEFINE([BUILD_EGL], [1], [build EGL tests]) fi -- 2.4.10
shibajee/buildroot
package/libepoxy/0006-Make-egl-conditional.patch
patch
mit
1,747
config BR2_PACKAGE_LIBEPOXY bool "libepoxy" select BR2_PACKAGE_XUTIL_UTIL_MACROS depends on BR2_PACKAGE_HAS_LIBEGL || BR2_PACKAGE_HAS_LIBGL help Epoxy is a library for handling OpenGL function pointer management for you. https://github.com/anholt/libepoxy comment "libepoxy needs an OpenGL and/or OpenGL EGL backend" depends on !BR2_PACKAGE_HAS_LIBEGL && !BR2_PACKAGE_HAS_LIBGL
shibajee/buildroot
package/libepoxy/Config.in
in
mit
394
# Locally calculated sha256 6700ddedffb827b42c72cce1e0be6fba67b678b19bf256e1b5efd3ea38cc2bb4 libepoxy-v1.3.1.tar.gz
shibajee/buildroot
package/libepoxy/libepoxy.hash
hash
mit
117
################################################################################ # # libepoxy # ################################################################################ LIBEPOXY_VERSION = v1.3.1 LIBEPOXY_SITE = $(call github,anholt,libepoxy,$(LIBEPOXY_VERSION)) LIBEPOXY_INSTALL_STAGING = YES # For patches 0001-0006: LIBEPOXY_AUTORECONF = YES LIBEPOXY_DEPENDENCIES = xutil_util-macros LIBEPOXY_LICENSE = MIT LIBEPOXY_LICENSE_FILES = COPYING ifeq ($(BR2_PACKAGE_HAS_LIBEGL),y) LIBEPOXY_CONF_OPTS += --enable-egl LIBEPOXY_DEPENDENCIES += libegl else LIBEPOXY_CONF_OPTS += --disable-egl endif ifeq ($(BR2_PACKAGE_HAS_LIBGL)$(BR2_PACKAGE_XLIB_LIBX11),yy) LIBEPOXY_CONF_OPTS += --enable-glx LIBEPOXY_DEPENDENCIES += libgl xlib_libX11 else LIBEPOXY_CONF_OPTS += --disable-glx endif $(eval $(autotools-package))
shibajee/buildroot
package/libepoxy/libepoxy.mk
mk
mit
818
config BR2_PACKAGE_LIBERATION bool "Liberation (Free fonts)" help The Liberation Fonts are intended to be replacements for the three most commonly used fonts on Microsoft systems: Times New Roman, Arial, and Courier New. if BR2_PACKAGE_LIBERATION config BR2_PACKAGE_LIBERATION_MONO bool "mono fonts" default y config BR2_PACKAGE_LIBERATION_SANS bool "sans fonts" default y config BR2_PACKAGE_LIBERATION_SERIF bool "serif fonts" default y endif
shibajee/buildroot
package/liberation/Config.in
in
mit
466
# Locally calculated sha256 7890278a6cd17873c57d9cd785c2d230d9abdea837e96516019c5885dd271504 liberation-fonts-ttf-2.00.1.tar.gz
shibajee/buildroot
package/liberation/liberation.hash
hash
mit
128
################################################################################ # # liberation # ################################################################################ LIBERATION_VERSION = 2.00.1 LIBERATION_SITE = http://www.fedorahosted.org/releases/l/i/liberation-fonts LIBERATION_SOURCE = liberation-fonts-ttf-$(LIBERATION_VERSION).tar.gz LIBERATION_TARGET_DIR = $(TARGET_DIR)/usr/share/fonts/liberation LIBERATION_LICENSE = OFLv1.1 LIBERATION_LICENSE_FILES = LICENSE ifeq ($(BR2_PACKAGE_LIBERATION_MONO),y) define LIBERATION_INSTALL_MONO $(INSTALL) -m 644 $(@D)/LiberationMono*.ttf $(LIBERATION_TARGET_DIR) endef endif ifeq ($(BR2_PACKAGE_LIBERATION_SANS),y) define LIBERATION_INSTALL_SANS $(INSTALL) -m 644 $(@D)/LiberationSans*.ttf $(LIBERATION_TARGET_DIR) endef endif ifeq ($(BR2_PACKAGE_LIBERATION_SERIF),y) define LIBERATION_INSTALL_SERIF $(INSTALL) -m 644 $(@D)/LiberationSerif*.ttf $(LIBERATION_TARGET_DIR) endef endif define LIBERATION_INSTALL_TARGET_CMDS mkdir -p $(LIBERATION_TARGET_DIR) $(LIBERATION_INSTALL_MONO) $(LIBERATION_INSTALL_SANS) $(LIBERATION_INSTALL_SERIF) endef $(eval $(generic-package))
shibajee/buildroot
package/liberation/liberation.mk
mk
mit
1,141
config BR2_PACKAGE_LIBESMTP bool "libesmtp" depends on !BR2_STATIC_LIBS help Library for sending emails through SMTP. http://www.stafford.uklinux.net/libesmtp comment "libesmtp needs a toolchain w/ dynamic library" depends on BR2_STATIC_LIBS
shibajee/buildroot
package/libesmtp/Config.in
in
mit
254
# Locally calculated sha256 d0a61a5c52d99fa7ce7d00ed0a07e341dbda67101dbed1ab0cdae3f37db4eb0b libesmtp-1.0.6.tar.bz2
shibajee/buildroot
package/libesmtp/libesmtp.hash
hash
mit
116
################################################################################ # # libesmtp # ################################################################################ LIBESMTP_VERSION = 1.0.6 LIBESMTP_SOURCE = libesmtp-$(LIBESMTP_VERSION).tar.bz2 LIBESMTP_SITE = http://www.stafford.uklinux.net/libesmtp LIBESMTP_INSTALL_STAGING = YES LIBESMTP_CONFIG_SCRIPTS = libesmtp-config LIBESMTP_DEPENDENCIES = $(if $(BR2_PACKAGE_OPENSSL),openssl) LIBESMTP_LICENSE = GPLv2+ (examples), LGPLv2.1+ (library) LIBESMTP_LICENSE_FILES = COPYING COPYING.LIB $(eval $(autotools-package))
shibajee/buildroot
package/libesmtp/libesmtp.mk
mk
mit
582
config BR2_PACKAGE_LIBESTR bool "libestr" help Some essentials for string handling (and a bit more) http://libestr.adiscon.com/
shibajee/buildroot
package/libestr/Config.in
in
mit
137
# From http://libestr.adiscon.com/download/libestr-0-1-10/ sha256 bd655e126e750edd18544b88eb1568d200a424a0c23f665eb14bbece07ac703c libestr-0.1.10.tar.gz
shibajee/buildroot
package/libestr/libestr.hash
hash
mit
153
################################################################################ # # libestr # ################################################################################ LIBESTR_VERSION = 0.1.10 LIBESTR_SITE = http://libestr.adiscon.com/files/download LIBESTR_LICENSE = LGPLv2.1+ LIBESTR_LICENSE_FILES = COPYING LIBESTR_INSTALL_STAGING = YES $(eval $(autotools-package))
shibajee/buildroot
package/libestr/libestr.mk
mk
mit
379
config BR2_PACKAGE_LIBEV bool "libev" # needs memory fences depends on !BR2_bfin help Userspace library for handling asynchronous notifications http://software.schmorp.de/pkg/libev.html
shibajee/buildroot
package/libev/Config.in
in
mit
197
# Locally calculated sha256 736079e8ac543c74d59af73f9c52737b3bfec9601f020bf25a87a4f4d0f01bd6 libev-4.22.tar.gz
shibajee/buildroot
package/libev/libev.hash
hash
mit
111
################################################################################ # # libev # ################################################################################ LIBEV_VERSION = 4.22 LIBEV_SITE = http://dist.schmorp.de/libev LIBEV_INSTALL_STAGING = YES LIBEV_LICENSE = BSD-2c or GPLv2+ LIBEV_LICENSE_FILES = LICENSE # The 'compatibility' event.h header conflicts with libevent # It's completely unnecessary for BR packages so remove it define LIBEV_DISABLE_EVENT_H_INSTALL $(SED) 's/ event.h//' $(@D)/Makefile.in endef LIBEV_POST_PATCH_HOOKS += LIBEV_DISABLE_EVENT_H_INSTALL $(eval $(autotools-package))
shibajee/buildroot
package/libev/libev.mk
mk
mit
620
config BR2_PACKAGE_LIBEVAS_GENERIC_LOADERS bool "libevas generic loaders" depends on BR2_PACKAGE_EFL select BR2_PACKAGE_ZLIB help These are additional "generic" loaders for Evas that are stand-alone executables that evas may run from its generic loader module. https://www.enlightenment.org/ if BR2_PACKAGE_LIBEVAS_GENERIC_LOADERS config BR2_PACKAGE_LIBEVAS_GENERIC_LOADERS_LIBRAW bool "libraw loader" depends on BR2_INSTALL_LIBSTDCPP # libraw select BR2_PACKAGE_LIBRAW help This option enables the Evas generic Libraw loader comment "libraw loader needs a toolchain w/ C++" depends on !BR2_INSTALL_LIBSTDCPP config BR2_PACKAGE_LIBEVAS_GENERIC_LOADERS_SVG bool "SVG loader" depends on BR2_USE_MMU # librsvg -> glib2 depends on BR2_USE_WCHAR # librsvg -> glib2 depends on BR2_TOOLCHAIN_HAS_THREADS # librsvg -> glib2 depends on BR2_INSTALL_LIBSTDCPP # librsvg -> pango depends on BR2_TOOLCHAIN_HAS_SYNC_4 # librsvg -> pango -> harfbuzz select BR2_PACKAGE_LIBRSVG select BR2_PACKAGE_CAIRO help This option enables the Evas generic SVG loader comment "SVG loader needs a toolchain w/ wchar, threads, C++" depends on BR2_TOOLCHAIN_HAS_SYNC_4 depends on BR2_USE_MMU depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP endif
shibajee/buildroot
package/libevas-generic-loaders/Config.in
in
mit
1,295
# From https://download.enlightenment.org/rel/libs/evas_generic_loaders/evas_generic_loaders-1.17.0.tar.xz.sha256 sha256 c2f5193a9326532d3ab3ff76f547b9d17b33ae7221ce4d6e0aefb905ba0dd87a evas_generic_loaders-1.17.0.tar.xz
shibajee/buildroot
package/libevas-generic-loaders/libevas-generic-loaders.hash
hash
mit
221
################################################################################ # # libevas-generic-loaders # ################################################################################ LIBEVAS_GENERIC_LOADERS_VERSION = 1.17.0 LIBEVAS_GENERIC_LOADERS_SOURCE = evas_generic_loaders-$(LIBEVAS_GENERIC_LOADERS_VERSION).tar.xz LIBEVAS_GENERIC_LOADERS_SITE = http://download.enlightenment.org/rel/libs/evas_generic_loaders LIBEVAS_GENERIC_LOADERS_LICENSE = GPLv2 LIBEVAS_GENERIC_LOADERS_LICENSE_FILES = COPYING LIBEVAS_GENERIC_LOADERS_INSTALL_STAGING = YES LIBEVAS_GENERIC_LOADERS_DEPENDENCIES = host-pkgconf efl zlib # poppler >= 0.32 is not supported by the current version of # libevas-generic-loaders. LIBEVAS_GENERIC_LOADERS_CONF_OPTS += \ --disable-poppler \ --disable-spectre \ --disable-gstreamer ifeq ($(BR2_PACKAGE_LIBEVAS_GENERIC_LOADERS_LIBRAW),y) LIBEVAS_GENERIC_LOADERS_DEPENDENCIES += libraw LIBEVAS_GENERIC_LOADERS_CONF_OPTS += --enable-libraw else LIBEVAS_GENERIC_LOADERS_CONF_OPTS += --disable-libraw endif ifeq ($(BR2_PACKAGE_LIBEVAS_GENERIC_LOADERS_SVG),y) LIBEVAS_GENERIC_LOADERS_DEPENDENCIES += librsvg cairo LIBEVAS_GENERIC_LOADERS_CONF_OPTS += --enable-svg else LIBEVAS_GENERIC_LOADERS_CONF_OPTS += --disable-svg endif $(eval $(autotools-package))
shibajee/buildroot
package/libevas-generic-loaders/libevas-generic-loaders.mk
mk
mit
1,283
From 95527e43845a5063a6125d7779a30d44c3b437ac Mon Sep 17 00:00:00 2001 From: Peter Seiderer <ps.report@gmx.net> Date: Sun, 11 Oct 2015 13:33:19 +0200 Subject: [PATCH] configure: add '--disable-runtime-tests' option Signed-off-by: Peter Seiderer <ps.report@gmx.net> --- configure.ac | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 54a2510..286737b 100644 --- a/configure.ac +++ b/configure.ac @@ -74,7 +74,14 @@ else AC_MSG_WARN([check not found - skipping building unit tests]) fi AM_CONDITIONAL(HAVE_VALGRIND, [test "x$VALGRIND" != "x"]) -AM_CONDITIONAL(ENABLE_RUNTIME_TESTS, [test "x$HAVE_CHECK" = "xyes"]) + +AC_ARG_ENABLE([runtime-tests], + AS_HELP_STRING([--disable-runtime-tests], [Disable runtime tests])) +AS_IF([test "x$enable_runtime_tests" != "xno"], + [enable_runtime_tests=yes], + [enable_runtime_tests=no]) + +AM_CONDITIONAL(ENABLE_RUNTIME_TESTS, [test "x${enable_runtime_tests}x$HAVE_CHECK" = "xyesxyes"]) AM_CONDITIONAL(ENABLE_STATIC_LINK_TEST, [test "x$enable_static" = "xyes"]) with_cflags="" @@ -159,7 +166,7 @@ AC_MSG_RESULT([ Libdir ${libdir} Build documentation ${have_doxygen} - Enable unit-tests ${HAVE_CHECK} + Enable unit-tests ${HAVE_CHECK} (runtime-tests: ${enable_runtime_tests}) Enable profiling ${enable_gcov} Static library symbol check ${static_symbol_leaks_test} ]) -- 2.1.4
shibajee/buildroot
package/libevdev/0001-configure-add-disable-runtime-tests-option.patch
patch
mit
1,456
config BR2_PACKAGE_LIBEVDEV bool "libevdev" help libevdev is a wrapper library for evdev devices http://freedesktop.org/wiki/Software/libevdev/
shibajee/buildroot
package/libevdev/Config.in
in
mit
153
# Hash from https://lists.freedesktop.org/archives/input-tools/2016-June/001307.html sha256 5ee2163656a61f5703cb5c08a05c9471ffb7b640bfbe2c55194ea50d908f629b libevdev-1.5.2.tar.xz
shibajee/buildroot
package/libevdev/libevdev.hash
hash
mit
179
################################################################################ # # libevdev # ################################################################################ LIBEVDEV_VERSION = 1.5.2 LIBEVDEV_SITE = http://www.freedesktop.org/software/libevdev LIBEVDEV_SOURCE = libevdev-$(LIBEVDEV_VERSION).tar.xz LIBEVDEV_LICENSE = X11 LIBEVDEV_LICENSE_FILES = COPYING # patch touches configure.ac LIBEVDEV_AUTORECONF = YES # Uses PKG_CHECK_MODULES() in configure.ac LIBEVDEV_DEPENDENCIES = host-pkgconf LIBEVDEV_INSTALL_STAGING = YES LIBEVDEV_CONF_OPTS += --disable-runtime-tests $(eval $(autotools-package))
shibajee/buildroot
package/libevdev/libevdev.mk
mk
mit
620
From 4b5a135fa681e85eb6988a379f59f3c7a41cc48c Mon Sep 17 00:00:00 2001 From: Gilles Talis <gilles.talis@gmail.com> Date: Fri, 21 Jun 2013 15:25:11 -0700 Subject: [PATCH 1/2] Disable building test programs We are not really interested in building test programs. Moreover, these programs use fork() function that is not available on MMU-less architectures. Signed-off-by: Gilles Talis <gilles.talis@gmail.com> --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 42879a3..dc90359 100644 --- a/Makefile.am +++ b/Makefile.am @@ -126,7 +126,7 @@ else noinst_LTLIBRARIES = $(LIBEVENT_LIBS_LA) endif -SUBDIRS = . include sample test +SUBDIRS = . include sample if BUILD_WIN32 -- 2.1.1
shibajee/buildroot
package/libevent/0001-Disable-building-test-programs.patch
patch
mit
756
config BR2_PACKAGE_LIBEVENT bool "libevent" help Userspace library for handling asynchronous notifications http://libevent.org
shibajee/buildroot
package/libevent/Config.in
in
mit
136
# From http://sourceforge.net/projects/levent/files/libevent/libevent-2.0/ md5 c4c56f986aa985677ca1db89630a2e11 libevent-2.0.22-stable.tar.gz sha1 a586882bc93a208318c70fc7077ed8fca9862864 libevent-2.0.22-stable.tar.gz
shibajee/buildroot
package/libevent/libevent.hash
hash
mit
218
################################################################################ # # libevent # ################################################################################ LIBEVENT_VERSION = 2.0.22-stable LIBEVENT_SITE = https://github.com/libevent/libevent/releases/download/release-$(LIBEVENT_VERSION) LIBEVENT_INSTALL_STAGING = YES LIBEVENT_LICENSE = BSD-3c, OpenBSD LIBEVENT_LICENSE_FILES = LICENSE # For 0001-Disable-building-test-programs.patch LIBEVENT_AUTORECONF = YES define LIBEVENT_REMOVE_PYSCRIPT rm $(TARGET_DIR)/usr/bin/event_rpcgen.py endef # libevent installs a python script to target - get rid of it if we # don't have python support enabled ifneq ($(BR2_PACKAGE_PYTHON),y) LIBEVENT_POST_INSTALL_TARGET_HOOKS += LIBEVENT_REMOVE_PYSCRIPT endif ifeq ($(BR2_PACKAGE_OPENSSL),y) LIBEVENT_DEPENDENCIES += openssl LIBEVENT_CONF_OPTS += --enable-openssl # openssl needs zlib but configure forgets to link against it causing # openssl detection to fail ifeq ($(BR2_STATIC_LIBS),y) LIBEVENT_CONF_ENV += OPENSSL_LIBADD='-lz' endif else LIBEVENT_CONF_OPTS += --disable-openssl endif $(eval $(autotools-package)) $(eval $(host-autotools-package))
shibajee/buildroot
package/libevent/libevent.mk
mk
mit
1,164
config BR2_PACKAGE_LIBEXIF bool "libexif" help Most digital cameras produce EXIF files, which are JPEG files with extra tags that contain information about the image. The EXIF library allows you to parse an EXIF file and read the data from those tags. http://libexif.sf.net
shibajee/buildroot
package/libexif/Config.in
in
mit
292
# Locally computed: sha256 16cdaeb62eb3e6dfab2435f7d7bccd2f37438d21c5218ec4e58efa9157d4d41a libexif-0.6.21.tar.bz2
shibajee/buildroot
package/libexif/libexif.hash
hash
mit
117
################################################################################ # # libexif # ################################################################################ LIBEXIF_VERSION = 0.6.21 LIBEXIF_SOURCE = libexif-$(LIBEXIF_VERSION).tar.bz2 LIBEXIF_SITE = http://downloads.sourceforge.net/project/libexif/libexif/$(LIBEXIF_VERSION) LIBEXIF_INSTALL_STAGING = YES LIBEXIF_DEPENDENCIES = host-pkgconf LIBEXIF_LICENSE = LGPLv2.1+ LIBEXIF_LICENSE_FILES = COPYING $(eval $(autotools-package))
shibajee/buildroot
package/libexif/libexif.mk
mk
mit
501
From 3e017fe8da1e821d4fcd801c75467c8ec2a81eb4 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards <rgerhards@adiscon.com> Date: Tue, 19 Apr 2016 08:21:50 +0200 Subject: [PATCH] fix missing config.h [yann.morin.1998@free.fr: backport from upstream] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> --- json_object_iterator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json_object_iterator.c b/json_object_iterator.c index 6ab3a85..fb51f6e 100644 --- a/json_object_iterator.c +++ b/json_object_iterator.c @@ -17,8 +17,8 @@ ******************************************************************************* */ +#include "config.h" #include <stddef.h> - #include "json.h" #include "json_object_private.h" #include "json_object_iterator.h" -- 2.7.4
shibajee/buildroot
package/libfastjson/0001-fix-missing-config.h.patch
patch
mit
782
From df087711cf7be55268a55e7820f4d928cb34c078 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" <yann.morin.1998@free.fr> Date: Sat, 9 Jul 2016 20:44:36 +0200 Subject: [PATCH] m4: fix detection of atomics In cross-compilation, it is impossible to run code at configure time to detect the target specifics. As such, AC_TRY_RUN fails miserably to detect reliably that atomic intrisics are present in a toolchain, and decides they are not just because this is cross-compilation. Instead of AC_TRY_RUN, use AC_LINK_IFELSE that does not need to actually run code, since all we're interested in is whether the intrisics are present (or not). Fix both the 32- and 64-bit variants, even if the latter is not used currently. Fixes build failures detected by the Buildroot autobuilders, like: http://autobuild.buildroot.org/results/23a/23ac0e742ed3a70ae4d038f8c9eadc23e708f671/build-end.log http://autobuild.buildroot.org/results/192/1923d0b570adba494f83747a9610ea6ec35f5223/build-end.log and many other cases, espcially on architectures where such intrisics are present, but where the toolchain does not have threads (and anyway, it is much more efficient to use the intrisics rather than use mutexes). Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> --- Patch sent upstream: https://github.com/rsyslog/libfastjson/pull/109 --- m4/atomic_operations.m4 | 6 ++---- m4/atomic_operations_64bit.m4 | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/m4/atomic_operations.m4 b/m4/atomic_operations.m4 index ad0ee60..7d2bca6 100644 --- a/m4/atomic_operations.m4 +++ b/m4/atomic_operations.m4 @@ -9,9 +9,7 @@ # AC_DEFUN([RS_ATOMIC_OPERATIONS], [AC_CACHE_CHECK([whether the compiler provides atomic builtins], [ap_cv_atomic_builtins], -[AC_TRY_RUN([ -int main() -{ +[AC_LINK_IFELSE([AC_LANG_PROGRAM([], [[ unsigned long val = 1010, tmp, *mem = &val; if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020) @@ -44,7 +42,7 @@ int main() return 1; return 0; -}], [ap_cv_atomic_builtins=yes], [ap_cv_atomic_builtins=no], [ap_cv_atomic_builtins=no])]) +]])], [ap_cv_atomic_builtins=yes], [ap_cv_atomic_builtins=no])]) if test "$ap_cv_atomic_builtins" = "yes"; then AC_DEFINE(HAVE_ATOMIC_BUILTINS, 1, [Define if compiler provides atomic builtins]) diff --git a/m4/atomic_operations_64bit.m4 b/m4/atomic_operations_64bit.m4 index 9fbef0a..d01a977 100644 --- a/m4/atomic_operations_64bit.m4 +++ b/m4/atomic_operations_64bit.m4 @@ -9,9 +9,7 @@ # AC_DEFUN([RS_ATOMIC_OPERATIONS_64BIT], [AC_CACHE_CHECK([whether the compiler provides atomic builtins for 64 bit data types], [ap_cv_atomic_builtins_64], -[AC_TRY_RUN([ -int main() -{ +[AC_LINK_IFELSE([AC_LANG_PROGRAM([], [[ unsigned long long val = 1010, tmp, *mem = &val; if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020) @@ -44,7 +42,7 @@ int main() return 1; return 0; -}], [ap_cv_atomic_builtins_64=yes], [ap_cv_atomic_builtins_64=no], [ap_cv_atomic_builtins_64=no])]) +]])], [ap_cv_atomic_builtins_64=yes], [ap_cv_atomic_builtins_64=no])]) if test "$ap_cv_atomic_builtins_64" = "yes"; then AC_DEFINE(HAVE_ATOMIC_BUILTINS64, 1, [Define if compiler provides 64 bit atomic builtins]) -- 2.7.4
shibajee/buildroot
package/libfastjson/0002-m4-fix-detection-of-atomics.patch
patch
mit
3,267
config BR2_PACKAGE_LIBFASTJSON bool "libfastjson" # uses the __sync_*_4 intrisics, or pthreads to emulate atomicity depends on BR2_TOOLCHAIN_HAS_SYNC_4 || BR2_TOOLCHAIN_HAS_THREADS help Libfastjson - A fast json library for C Libfastjson is a fork from json-c. The aim of this project is not to provide a slightly modified clone of json-c. Its aim is to provide: - a small library with essential json handling functions - sufficiently good json support (not 100% standards compliant) - be very fast in processing https://github.com/rsyslog/libfastjson/
shibajee/buildroot
package/libfastjson/Config.in
in
mit
584
# Locally calculated sha256 fcdca0c4702362de3db3f02c8da05f985b54a9eccd618af41730409b75d10a8f libfastjson-v0.99.2.tar.gz
shibajee/buildroot
package/libfastjson/libfastjson.hash
hash
mit
122
################################################################################ # # libfastjson # ################################################################################ LIBFASTJSON_VERSION = v0.99.2 LIBFASTJSON_SITE = $(call github,rsyslog,libfastjson,$(LIBFASTJSON_VERSION)) LIBFASTJSON_INSTALL_STAGING = YES # From git LIBFASTJSON_AUTORECONF = YES LIBFASTJSON_LICENSE = MIT LIBFASTJSON_LICENSE_FILES = COPYING $(eval $(autotools-package))
shibajee/buildroot
package/libfastjson/libfastjson.mk
mk
mit
454
[PATCH] fix build with C++ support and gcc >= 4.4 EOF is defined in stdio, so ensure it is included. Based on similar patch by Markus Rothe: http://comments.gmane.org/gmane.comp.web.fastcgi.devel/3205 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> --- libfcgi/fcgio.cpp | 1 + 1 file changed, 1 insertion(+) Index: fcgi-2.4.0/libfcgi/fcgio.cpp =================================================================== --- fcgi-2.4.0.orig/libfcgi/fcgio.cpp +++ fcgi-2.4.0/libfcgi/fcgio.cpp @@ -22,6 +22,7 @@ #define DLLAPI __declspec(dllexport) #endif +#include <cstdio> #include <limits.h> #include "fcgio.h"
shibajee/buildroot
package/libfcgi/0001-eof.patch
patch
mit
624
Properly link libfcgi++ against libfcgi We cannot directly use -lfcgi to link libfcgi++ against libfcgi, because libfcgi is not installed at this time. Instead, we should rely on libtool doing the right thing, by specifying libfcgi.la in libfcgi++ LIBADD variable. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Index: b/libfcgi/Makefile.am =================================================================== --- a/libfcgi/Makefile.am +++ b/libfcgi/Makefile.am @@ -23,5 +23,6 @@ $(INCLUDEDIR)/fcgio.h \ fcgio.cpp libfcgi___la_CFLAGS = @PTHREAD_CFLAGS@ -libfcgi___la_LDFLAGS = -lfcgi -rpath @libdir@ +libfcgi___la_LIBADD = libfcgi.la +libfcgi___la_LDFLAGS = -rpath @libdir@
shibajee/buildroot
package/libfcgi/0002-link-against-libfcgi-la.patch
patch
mit
751
Link libfcgi against the math library. Signed-off-by: Thomas Claveirole <thomas.claveirole@green-communications.fr> Index: b/libfcgi/Makefile.am =================================================================== --- a/libfcgi/Makefile.am +++ b/libfcgi/Makefile.am @@ -18,6 +18,7 @@ os_@SYSTEM@.c libfcgi_la_CC = @PTHREAD_CC@ libfcgi_la_CFLAGS = @PTHREAD_CFLAGS@ +libfcgi_la_LIBADD = -lm libfcgi___la_SOURCES = $(INCLUDE_FILES) \ $(INCLUDEDIR)/fcgio.h \
shibajee/buildroot
package/libfcgi/0003-link-against-math.patch
patch
mit
521
Make the package autoreconfigurable Adjust minor details in Makefile.am and configure.in in order to make the package compatible with the autoconf/automake versions we are using in Buildroot. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Index: b/cgi-fcgi/Makefile.am =================================================================== --- a/cgi-fcgi/Makefile.am +++ b/cgi-fcgi/Makefile.am @@ -2,7 +2,7 @@ bin_PROGRAMS = cgi-fcgi INCLUDEDIR = ../include -CPPFLAGS = @CPPFLAGS@ -I$(top_srcdir)/include +AM_CPPFLAGS = @CPPFLAGS@ -I$(top_srcdir)/include INCLUDE_FILES = $(INCLUDEDIR)/fastcgi.h \ $(INCLUDEDIR)/fcgiapp.h \ Index: b/configure.in =================================================================== --- a/configure.in +++ b/configure.in @@ -4,12 +4,13 @@ dnl generate the file "configure", which is run during the build dnl to configure the system for the local environment. -AC_INIT -AM_INIT_AUTOMAKE(fcgi, 2.4.0) +AC_INIT([fcgi], [2.4.0]) +AM_INIT_AUTOMAKE([foreign]) AM_CONFIG_HEADER(fcgi_config.h) AC_PROG_CC +AC_PROG_CC_C_O AC_PROG_CPP AC_PROG_INSTALL AC_PROG_LIBTOOL Index: b/examples/Makefile.am =================================================================== --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -11,7 +11,7 @@ EXTRA_PROGRAMS = threaded echo-cpp INCLUDEDIR = ../include -CPPFLAGS = @CPPFLAGS@ -I$(top_srcdir)/include +AM_CPPFLAGS = @CPPFLAGS@ -I$(top_srcdir)/include INCLUDE_FILES = $(INCLUDEDIR)/fastcgi.h \ $(INCLUDEDIR)/fcgiapp.h \ Index: b/libfcgi/Makefile.am =================================================================== --- a/libfcgi/Makefile.am +++ b/libfcgi/Makefile.am @@ -1,7 +1,7 @@ # $Id: Makefile.am,v 1.9 2001/12/22 03:16:20 robs Exp $ INCLUDEDIR = ../include -CPPFLAGS = @CPPFLAGS@ -I$(top_srcdir)/include +AM_CPPFLAGS = @CPPFLAGS@ -I$(top_srcdir)/include INCLUDE_FILES = $(INCLUDEDIR)/fastcgi.h \ $(INCLUDEDIR)/fcgiapp.h \
shibajee/buildroot
package/libfcgi/0004-make-autoreconfable.patch
patch
mit
2,035
Common subdirectories: libfcgi-2.4.0.orig/cgi-fcgi and libfcgi-2.4.0/cgi-fcgi Common subdirectories: libfcgi-2.4.0.orig/doc and libfcgi-2.4.0/doc Common subdirectories: libfcgi-2.4.0.orig/examples and libfcgi-2.4.0/examples Common subdirectories: libfcgi-2.4.0.orig/images and libfcgi-2.4.0/images Common subdirectories: libfcgi-2.4.0.orig/include and libfcgi-2.4.0/include Common subdirectories: libfcgi-2.4.0.orig/java and libfcgi-2.4.0/java Common subdirectories: libfcgi-2.4.0.orig/libfcgi and libfcgi-2.4.0/libfcgi diff -du libfcgi-2.4.0.orig/Makefile.am libfcgi-2.4.0/Makefile.am --- libfcgi-2.4.0.orig/Makefile.am 2001-12-22 14:05:39.000000000 +0100 +++ libfcgi-2.4.0/Makefile.am 2014-07-19 16:56:21.935216540 +0200 @@ -4,7 +4,7 @@ # $Id: Makefile.am,v 1.7 2001/12/22 13:05:39 robs Exp $ # -SUBDIRS = libfcgi cgi-fcgi examples include +SUBDIRS = libfcgi cgi-fcgi include include_HEADERS = fcgi_config.h Common subdirectories: libfcgi-2.4.0.orig/perl and libfcgi-2.4.0/perl Common subdirectories: libfcgi-2.4.0.orig/Win32 and libfcgi-2.4.0/Win32
shibajee/buildroot
package/libfcgi/0005-disable-examples.patch
patch
mit
1,062
libfcgi:add security patch for CVE-2012-6687 CVE-2012-6687 - remote attackers cause a denial of service (crash) via a large number of connections (http://www.cvedetails.com/cve/CVE-2012-6687/). Fix:use poll in os_unix.c instead of select to avoid problem with > 1024 connections. This patch libfcgi_2.4.0-8.3.debian.tar.xz is pulled from the below link: (https://launchpad.net/ubuntu/+source/libfcgi/2.4.0-8.3) The next release of libfcgi is 2.4.1 which may have this fix is yet to be released officially. Signed-off-by: Anton Kortunov <toshic.toshic@gmail.com> Signed-off-by: Niranjan Reddy <niranjan.reddy@rockwellcollins.com> Index: b/libfcgi/os_unix.c =================================================================== --- a/libfcgi/os_unix.c +++ b/libfcgi/os_unix.c @@ -42,6 +42,7 @@ #include <sys/time.h> #include <sys/un.h> #include <signal.h> +#include <poll.h> #ifdef HAVE_NETDB_H #include <netdb.h> @@ -103,6 +104,9 @@ static int shutdownPending = FALSE; static int shutdownNow = FALSE; +static int libfcgiOsClosePollTimeout = 2000; +static int libfcgiIsAfUnixKeeperPollTimeout = 2000; + void OS_ShutdownPending() { shutdownPending = TRUE; @@ -168,6 +172,16 @@ if(libInitialized) return 0; + char *libfcgiOsClosePollTimeoutStr = getenv( "LIBFCGI_OS_CLOSE_POLL_TIMEOUT" ); + if(libfcgiOsClosePollTimeoutStr) { + libfcgiOsClosePollTimeout = atoi(libfcgiOsClosePollTimeoutStr); + } + + char *libfcgiIsAfUnixKeeperPollTimeoutStr = getenv( "LIBFCGI_IS_AF_UNIX_KEEPER_POLL_TIMEOUT" ); + if(libfcgiIsAfUnixKeeperPollTimeoutStr) { + libfcgiIsAfUnixKeeperPollTimeout = atoi(libfcgiIsAfUnixKeeperPollTimeoutStr); + } + asyncIoTable = (AioInfo *)malloc(asyncIoTableSize * sizeof(AioInfo)); if(asyncIoTable == NULL) { errno = ENOMEM; @@ -755,19 +769,16 @@ if (shutdown(fd, 1) == 0) { - struct timeval tv; - fd_set rfds; + struct pollfd pfd; int rv; char trash[1024]; - FD_ZERO(&rfds); + pfd.fd = fd; + pfd.events = POLLIN; do { - FD_SET(fd, &rfds); - tv.tv_sec = 2; - tv.tv_usec = 0; - rv = select(fd + 1, &rfds, NULL, NULL, &tv); + rv = poll(&pfd, 1, libfcgiOsClosePollTimeout); } while (rv > 0 && read(fd, trash, sizeof(trash)) > 0); } @@ -1116,13 +1127,11 @@ */ static int is_af_unix_keeper(const int fd) { - struct timeval tval = { READABLE_UNIX_FD_DROP_DEAD_TIMEVAL }; - fd_set read_fds; - - FD_ZERO(&read_fds); - FD_SET(fd, &read_fds); + struct pollfd pfd; + pfd.fd = fd; + pfd.events = POLLIN; - return select(fd + 1, &read_fds, NULL, NULL, &tval) >= 0 && FD_ISSET(fd, &read_fds); + return poll(&pfd, 1, libfcgiIsAfUnixKeeperPollTimeout) >= 0 && (pfd.revents & POLLIN); } /* Index: b/examples/Makefile.am =================================================================== --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -34,5 +34,5 @@ threaded_CFLAGS = @PTHREAD_CFLAGS@ threaded_LDFLAGS = @PTHREAD_CFLAGS@ @PTHREAD_LIBS@ echo_cpp_SOURCES = $(INCLUDE_FILES) $(INCLUDEDIR)/fcgio.h echo-cpp.cpp -echo_cpp_LDADD = $(LIBDIR)/libfcgi++.la +echo_cpp_LDADD = $(LIBDIR)/libfcgi++.la $(LIBDIR)/libfcgi.la
shibajee/buildroot
package/libfcgi/0006-fix-CVE-2012-6687.patch
patch
mit
3,324
config BR2_PACKAGE_LIBFCGI bool "libfcgi" depends on BR2_USE_MMU # fork() help FCGI, a fastcgi developer library for C/C++ http://www.fastcgi.com/
shibajee/buildroot
package/libfcgi/Config.in
in
mit
157
# Locally calculated sha256 66fc45c6b36a21bf2fbbb68e90f780cc21a9da1fffbae75e76d2b4402d3f05b9 fcgi-2.4.0.tar.gz
shibajee/buildroot
package/libfcgi/libfcgi.hash
hash
mit
111
################################################################################ # # libfcgi # ################################################################################ LIBFCGI_VERSION = 2.4.0 LIBFCGI_SOURCE = fcgi-$(LIBFCGI_VERSION).tar.gz LIBFCGI_SITE = http://www.fastcgi.com/dist LIBFCGI_LICENSE = fcgi license LIBFCGI_LICENSE_FILES = LICENSE.TERMS LIBFCGI_INSTALL_STAGING = YES LIBFCGI_AUTORECONF = YES $(eval $(autotools-package))
shibajee/buildroot
package/libfcgi/libfcgi.mk
mk
mit
446
From 580f46a7bc6e9fea3a2227b5268cc3aed1d60e3b Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Date: Thu, 7 Feb 2013 22:26:56 +0100 Subject: [PATCH] Fix installation location of libffi MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The libffi is currently declared as toolexeclib_LTLIBRARIES. In many cases, toolexeclib libraries will be installed in /usr/lib, so it doesn't make any difference. However, with multilib toolchains, they get installed in a subdirectory of /usr/lib/. For example, with a Sourcery CodeBench PowerPC toolchain, if the e500mc multilib variant is used, the libffi library gets installed in /usr/lib/te500mc/. This is due to the following code in the configure script: multi_os_directory=`$CC -print-multi-os-directory` case $multi_os_directory in .) ;; # Avoid trailing /. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; esac Once the library is installed in /usr/lib/te500mc/, nothing works because this installation location is inconsistent with the installation location declared in libffi.pc. So, instead of using this bizarre toolexeclib_LTLIBRARIES, simply use the more standard lib_LTLIBRARIES, which ensures that the libffi library is always installed in /usr/lib. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> [unfuzz for 3.2.1] Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 0e40451..309474c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -104,7 +104,7 @@ FLAGS_TO_PASS = $(AM_MAKEFLAGS) MAKEOVERRIDES= -toolexeclib_LTLIBRARIES = libffi.la +lib_LTLIBRARIES = libffi.la noinst_LTLIBRARIES = libffi_convenience.la libffi_la_SOURCES = src/prep_cif.c src/types.c \ -- 2.5.3
shibajee/buildroot
package/libffi/0001-Fix-installation-location-of-libffi.patch
patch
mit
1,878
From 31b6b6bc14197cd4183bdbd311fddeb36b5ae100 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Krause?= <joerg.krause@embedded.rocks> Date: Sat, 19 Sep 2015 22:53:29 +0200 Subject: [PATCH] Fix use of compact eh frames on MIPS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Newer MIPS toolchains use a different (compact) eh_frame format. libffi don't like them, so we have to switch to the older format. This patch add -mno-compact-eh to CFLAGS when compiling for Mips and compiler support it. Signed-off-by: Jérôme Pouiller <jezz@sysmic.org> [unfuzz for 3.2.1] Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/configure.ac b/configure.ac index a7bf5ee..36cd0d4 100644 --- a/configure.ac +++ b/configure.ac @@ -469,6 +469,16 @@ esac AM_CONDITIONAL(FFI_EXEC_TRAMPOLINE_TABLE, test x$FFI_EXEC_TRAMPOLINE_TABLE = x1) AC_SUBST(FFI_EXEC_TRAMPOLINE_TABLE) +if test x$TARGET = xMIPS; then + save_CFLAGS="$CFLAGS" + CFLAGS=-mno-compact-eh + AC_MSG_CHECKING([whether the C compiler needs -mno-compact-eh]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], + [AC_MSG_RESULT([yes])]; [save_CFLAGS="$save_CFLAGS -mno-compact-eh"], + [AC_MSG_RESULT([no])]) + CFLAGS="$save_CFLAGS" +fi + if test x$TARGET = xX86_64; then AC_CACHE_CHECK([toolchain supports unwind section type], libffi_cv_as_x86_64_unwind_section_type, [ -- 2.5.3
shibajee/buildroot
package/libffi/0002-Fix-use-of-compact-eh-frames-on-MIPS.patch
patch
mit
1,523
From 48bc37fabbc685b1e3293055bd33ca66c619305e Mon Sep 17 00:00:00 2001 From: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Date: Wed, 13 Jan 2016 14:49:59 +0000 Subject: [PATCH] libffi: enable hardfloat in the MIPS assembly code This way it will be possible to build it for soft-float. This is only a temporary fix. The package needs to be fixed properly. Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> --- src/mips/n32.S | 1 + src/mips/o32.S | 1 + 2 files changed, 2 insertions(+) diff --git a/src/mips/n32.S b/src/mips/n32.S index c6985d3..dc842d5 100644 --- a/src/mips/n32.S +++ b/src/mips/n32.S @@ -44,6 +44,7 @@ .abicalls #endif .set mips4 + .set hardfloat .text .align 2 .globl ffi_call_N32 diff --git a/src/mips/o32.S b/src/mips/o32.S index eb27981..b653daf 100644 --- a/src/mips/o32.S +++ b/src/mips/o32.S @@ -42,6 +42,7 @@ #define RA_OFF (SIZEOF_FRAME - 1 * FFI_SIZEOF_ARG) .abicalls + .set hardfloat .text .align 2 .globl ffi_call_O32 -- 2.4.10
shibajee/buildroot
package/libffi/0003-libffi-enable-hardfloat-in-the-MIPS-assembly-code.patch
patch
mit
1,006
From 733bb188b898385cfb5ad28cc0e3ecaf38237350 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb <wbx@openadk.org> Date: Sat, 20 Aug 2016 00:52:19 +0200 Subject: [PATCH] m68k: support ISA-A Coldfire CPUs Fix compilation for m68k/coldfire CPUs like mcf5208. Signed-off-by: Waldemar Brodkorb <wbx@openadk.org> Signed-off-by: Thorsten Glaser <tg@mirbsd.de> --- src/m68k/sysv.S | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/src/m68k/sysv.S b/src/m68k/sysv.S index ec2b14f..ea40f11 100644 --- a/src/m68k/sysv.S +++ b/src/m68k/sysv.S @@ -3,7 +3,7 @@ sysv.S - Copyright (c) 2012 Alan Hourihane Copyright (c) 1998, 2012 Andreas Schwab Copyright (c) 2008 Red Hat, Inc. - Copyright (c) 2012 Thorsten Glaser + Copyright (c) 2012, 2016 Thorsten Glaser m68k Foreign Function Interface @@ -72,6 +72,15 @@ CALLFUNC(ffi_call_SYSV): pea 4(%sp) #if !defined __PIC__ jsr CALLFUNC(ffi_prep_args) +#elif defined(__uClinux__) && defined(__ID_SHARED_LIBRARY__) + move.l _current_shared_library_a5_offset_(%a5),%a0 + move.l CALLFUNC(ffi_prep_args@GOT)(%a0),%a0 + jsr (%a0) +#elif defined(__mcoldfire__) && !defined(__mcfisab__) && !defined(__mcfisac__) + move.l #_GLOBAL_OFFSET_TABLE_@GOTPC,%a0 + lea (-6,%pc,%a0),%a0 + move.l CALLFUNC(ffi_prep_args@GOT)(%a0),%a0 + jsr (%a0) #else bsr.l CALLFUNC(ffi_prep_args@PLTPC) #endif @@ -215,6 +224,15 @@ CALLFUNC(ffi_closure_SYSV): move.l %a0,-(%sp) #if !defined __PIC__ jsr CALLFUNC(ffi_closure_SYSV_inner) +#elif defined(__uClinux__) && defined(__ID_SHARED_LIBRARY__) + move.l _current_shared_library_a5_offset_(%a5),%a0 + move.l CALLFUNC(ffi_closure_SYSV_inner@GOT)(%a0),%a0 + jsr (%a0) +#elif defined(__mcoldfire__) && !defined(__mcfisab__) && !defined(__mcfisac__) + move.l #_GLOBAL_OFFSET_TABLE_@GOTPC,%a0 + lea (-6,%pc,%a0),%a0 + move.l CALLFUNC(ffi_closure_SYSV_inner@GOT)(%a0),%a0 + jsr (%a0) #else bsr.l CALLFUNC(ffi_closure_SYSV_inner@PLTPC) #endif @@ -317,6 +335,15 @@ CALLFUNC(ffi_closure_struct_SYSV): move.l %a0,-(%sp) #if !defined __PIC__ jsr CALLFUNC(ffi_closure_SYSV_inner) +#elif defined(__uClinux__) && defined(__ID_SHARED_LIBRARY__) + move.l _current_shared_library_a5_offset_(%a5),%a0 + move.l CALLFUNC(ffi_closure_SYSV_inner@GOT)(%a0),%a0 + jsr (%a0) +#elif defined(__mcoldfire__) && !defined(__mcfisab__) && !defined(__mcfisac__) + move.l #_GLOBAL_OFFSET_TABLE_@GOTPC,%a0 + lea (-6,%pc,%a0),%a0 + move.l CALLFUNC(ffi_closure_SYSV_inner@GOT)(%a0),%a0 + jsr (%a0) #else bsr.l CALLFUNC(ffi_closure_SYSV_inner@PLTPC) #endif -- 1.7.10.4
shibajee/buildroot
package/libffi/0004-m68k-support-ISA-A-Coldfire-CPUs.patch
patch
mit
2,638
config BR2_PACKAGE_LIBFFI bool "libffi" depends on BR2_TOOLCHAIN_HAS_THREADS help The libffi library provides a portable, high level programming interface to various calling conventions. This allows a programmer to call any function specified by a call interface description at run-time. http://sourceware.org/libffi/ comment "libffi needs a toolchain w/ threads" depends on !BR2_TOOLCHAIN_HAS_THREADS
shibajee/buildroot
package/libffi/Config.in
in
mit
423
# From ftp://sourceware.org/pub/libffi/sha512.sum sha512 980ca30a8d76f963fca722432b1fe5af77d7a4e4d2eac5144fbc5374d4c596609a293440573f4294207e1bdd9fda80ad1e1cafb2ffb543df5a275bc3bd546483 libffi-3.2.1.tar.gz
shibajee/buildroot
package/libffi/libffi.hash
hash
mit
207
################################################################################ # # libffi # ################################################################################ LIBFFI_VERSION = 3.2.1 LIBFFI_SITE = ftp://sourceware.org/pub/libffi LIBFFI_LICENSE = MIT LIBFFI_LICENSE_FILES = LICENSE LIBFFI_INSTALL_STAGING = YES LIBFFI_AUTORECONF = YES # Move the headers to the usual location, and adjust the .pc file # accordingly. define LIBFFI_MOVE_HEADERS mv $(1)/usr/lib/libffi-$(LIBFFI_VERSION)/include/*.h $(1)/usr/include/ $(SED) '/^includedir.*/d' -e '/^Cflags:.*/d' \ $(1)/usr/lib/pkgconfig/libffi.pc rm -rf $(1)/usr/lib/libffi-* endef LIBFFI_MOVE_STAGING_HEADERS = $(call LIBFFI_MOVE_HEADERS,$(STAGING_DIR)) LIBFFI_POST_INSTALL_STAGING_HOOKS += LIBFFI_MOVE_STAGING_HEADERS HOST_LIBFFI_MOVE_HOST_HEADERS = $(call LIBFFI_MOVE_HEADERS,$(HOST_DIR)) HOST_LIBFFI_POST_INSTALL_HOOKS += HOST_LIBFFI_MOVE_HOST_HEADERS # Remove headers that are not at the usual location from the target define LIBFFI_REMOVE_TARGET_HEADERS $(RM) -rf $(TARGET_DIR)/usr/lib/libffi-$(LIBFFI_VERSION) endef LIBFFI_POST_INSTALL_TARGET_HOOKS += LIBFFI_REMOVE_TARGET_HEADERS $(eval $(autotools-package)) $(eval $(host-autotools-package))
shibajee/buildroot
package/libffi/libffi.mk
mk
mit
1,225
config BR2_PACKAGE_LIBFM_EXTRA bool "libfm-extra" select BR2_PACKAGE_LIBGLIB2 depends on BR2_USE_WCHAR # libglib2 depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2 depends on BR2_USE_MMU # libglib2 help The libfm-extra package contains a library and other files required by menu-cache-gen libexec of menu-cache http://wiki.lxde.org/en/Libfm comment "libfm-extra needs a toolchain w/ wchar, threads, C++" depends on BR2_USE_MMU depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
shibajee/buildroot
package/libfm-extra/Config.in
in
mit
500
# From https://sourceforge.net/projects/pcmanfm/files/PCManFM%20%2B%20Libfm%20%28tarball%20release%29/LibFM/ md5 74997d75e7e87dc73398746fd373bf52 libfm-1.2.4.tar.xz sha1 2f8183389c8e74edb15c6c8ab260df5dd39f3b2d libfm-1.2.4.tar.xz
shibajee/buildroot
package/libfm-extra/libfm-extra.hash
hash
mit
230
################################################################################ # # libfm-extra # ################################################################################ LIBFM_EXTRA_VERSION = 1.2.4 LIBFM_EXTRA_SOURCE = libfm-$(LIBFM_EXTRA_VERSION).tar.xz LIBFM_EXTRA_SITE = http://sourceforge.net/projects/pcmanfm/files LIBFM_EXTRA_DEPENDENCIES = libglib2 host-intltool LIBFM_EXTRA_LICENSE = GPLv2+, LGPLv2.1+ LIBFM_EXTRA_LICENSE_FILES = COPYING src/extra/fm-xml-file.c LIBFM_EXTRA_INSTALL_STAGING = YES LIBFM_EXTRA_CONF_OPTS = --with-extra-only --with-gtk=no $(eval $(autotools-package))
shibajee/buildroot
package/libfm-extra/libfm-extra.mk
mk
mit
601
config BR2_PACKAGE_LIBFM bool "libfm" select BR2_PACKAGE_MENU_CACHE select BR2_PACKAGE_LIBGLIB2 select BR2_PACKAGE_LIBGTK2 if !BR2_PACKAGE_LIBGTK3_X11 select BR2_PACKAGE_CAIRO depends on BR2_PACKAGE_XORG7 depends on BR2_USE_WCHAR # libglib2 depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2 depends on BR2_USE_MMU # libglib2 depends on BR2_INSTALL_LIBSTDCPP # libgtk2 depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libgtk2 -> pango -> harfbuzz help A glib/gio-based library providing some file management utilities and related-widgets missing in gtk+/glib. This is the core of PCManFM. The library is desktop independent (not LXDE specific) and has clean API. It can be used to develop other applications requiring file management functionality. For example, you can create your own file manager with facilities provided by libfm. http://wiki.lxde.org/en/Libfm comment "libfm needs X.org and a toolchain w/ wchar, threads, C++" depends on BR2_USE_MMU depends on BR2_TOOLCHAIN_HAS_SYNC_4 depends on !BR2_USE_WCHAR || !BR2_INSTALL_LIBSTDCPP || \ !BR2_TOOLCHAIN_HAS_THREADS || !BR2_PACKAGE_XORG7
shibajee/buildroot
package/libfm/Config.in
in
mit
1,126
# From https://sourceforge.net/projects/pcmanfm/files/PCManFM%20%2B%20Libfm%20%28tarball%20release%29/LibFM/ md5 74997d75e7e87dc73398746fd373bf52 libfm-1.2.4.tar.xz sha1 2f8183389c8e74edb15c6c8ab260df5dd39f3b2d libfm-1.2.4.tar.xz
shibajee/buildroot
package/libfm/libfm.hash
hash
mit
230
################################################################################ # # libfm # ################################################################################ LIBFM_VERSION = 1.2.4 LIBFM_SOURCE = libfm-$(LIBFM_VERSION).tar.xz LIBFM_SITE = http://sourceforge.net/projects/pcmanfm/files LIBFM_DEPENDENCIES = menu-cache libglib2 cairo LIBFM_LICENSE = GPLv2+, LGPLv2.1+ LIBFM_LICENSE_FILES = COPYING src/extra/fm-xml-file.c LIBFM_INSTALL_STAGING = YES ifeq ($(BR2_PACKAGE_LIBEXIF),y) LIBFM_CONF_OPTS += --enable-exif LIBFM_DEPENDENCIES += libexif else LIBFM_CONF_OPTS += --disable-exif endif ifeq ($(BR2_PACKAGE_LIBGTK3_X11),y) LIBFM_CONF_OPTS += --with-gtk=3 LIBFM_DEPENDENCIES += libgtk3 else LIBFM_CONF_OPTS += --with-gtk=2 LIBFM_DEPENDENCIES += libgtk2 endif $(eval $(autotools-package))
shibajee/buildroot
package/libfm/libfm.mk
mk
mit
807
config BR2_PACKAGE_LIBFREEFARE bool "libfreefare" depends on BR2_TOOLCHAIN_HAS_THREADS # libusb select BR2_PACKAGE_OPENSSL select BR2_PACKAGE_LIBNFC help Library for high level manipulation of MIFARE cards. http://nfc-tools.org/index.php?title=Libfreefare comment "libfreefare needs a toolchain w/ threads" depends on !BR2_TOOLCHAIN_HAS_THREADS
shibajee/buildroot
package/libfreefare/Config.in
in
mit
359
# From https://github.com/nfc-tools/libfreefare/releases/download/libfreefare-0.4.0/libfreefare-0.4.0.tar.bz2 sha256 bfa31d14a99a1247f5ed49195d6373de512e3eb75bf1627658b40cf7f876bc64 libfreefare-0.4.0.tar.bz2
shibajee/buildroot
package/libfreefare/libfreefare.hash
hash
mit
209
################################################################################ # # libfreefare # ################################################################################ LIBFREEFARE_VERSION = 0.4.0 LIBFREEFARE_SOURCE = libfreefare-$(LIBFREEFARE_VERSION).tar.bz2 # Do not use the github helper here, the generated tarball is *NOT* # the same as the one uploaded by upstream for the release. LIBFREEFARE_SITE = https://github.com/nfc-tools/libfreefare/releases/download/libfreefare-$(LIBFREEFARE_VERSION) LIBFREEFARE_DEPENDENCIES = libnfc openssl LIBFREEFARE_LICENSE = LGPLv3+ with exception LIBFREEFARE_LICENSE_FILES = COPYING ifeq ($(BR2_STATIC_LIBS),y) # openssl needs zlib even if the libfreefare example itself doesn't LIBFREEFARE_CONF_ENV += LIBS='-lz' endif $(eval $(autotools-package))
shibajee/buildroot
package/libfreefare/libfreefare.mk
mk
mit
805
config BR2_PACKAGE_LIBFREEGLUT bool "libfreeglut" select BR2_PACKAGE_LIBGLU select BR2_PACKAGE_XLIB_LIBXI select BR2_PACKAGE_XLIB_LIBXRANDR select BR2_PACKAGE_XLIB_LIBXXF86VM depends on BR2_PACKAGE_HAS_LIBGL depends on BR2_PACKAGE_XORG7 help FreeGLUT is a free-software/open-source alternative to the OpenGL Utility Toolkit (GLUT) library. GLUT (and hence FreeGLUT) takes care of all the system-specific chores required for creating windows, initializing OpenGL contexts, and handling input events, to allow for trully portable OpenGL programs. http://freeglut.sourceforge.net comment "libfreeglut depends on X.org and needs an OpenGL backend" depends on !BR2_PACKAGE_XORG7 || !BR2_PACKAGE_HAS_LIBGL
shibajee/buildroot
package/libfreeglut/Config.in
in
mit
732
# From http://sourceforge.net/projects/freeglut/files/freeglut/3.0.0/ sha1 fca52242f9344627a30f11487ee42002e6b0dacd freeglut-3.0.0.tar.gz
shibajee/buildroot
package/libfreeglut/libfreeglut.hash
hash
mit
138
################################################################################ # # libfreeglut # ################################################################################ LIBFREEGLUT_VERSION = 3.0.0 LIBFREEGLUT_SOURCE = freeglut-$(LIBFREEGLUT_VERSION).tar.gz LIBFREEGLUT_SITE = http://downloads.sourceforge.net/freeglut LIBFREEGLUT_LICENSE = MIT LIBFREEGLUT_LICENSE_FILES = COPYING LIBFREEGLUT_INSTALL_STAGING = YES LIBFREEGLUT_DEPENDENCIES = \ libgl \ libglu \ xlib_libXi \ xlib_libXrandr \ xlib_libXxf86vm LIBFREEGLUT_CONF_OPTS = -DFREEGLUT_BUILD_DEMOS=OFF # package depends on X.org which depends on !BR2_STATIC_LIBS ifeq ($(BR2_SHARED_LIBS),y) LIBFREEGLUT_CONF_OPTS += \ -DFREEGLUT_BUILD_SHARED_LIBS=ON \ -DFREEGLUT_BUILD_STATIC_LIBS=OFF else ifeq ($(BR2_SHARED_STATIC_LIBS),y) LIBFREEGLUT_CONF_OPTS += \ -DFREEGLUT_BUILD_SHARED_LIBS=ON \ -DFREEGLUT_BUILD_STATIC_LIBS=ON endif $(eval $(cmake-package))
shibajee/buildroot
package/libfreeglut/libfreeglut.mk
mk
mit
928
Makefile.gnu: allow non-root install by not enforcing root ownserhip Signed-off-by: Rémi Rérolle <remi.rerolle@gmail.com> diff -ruN a/Makefile.gnu b/Makefile.gnu --- a/Makefile.gnu 2015-04-09 16:34:02.315316841 +0200 +++ b/Makefile.gnu 2015-04-09 16:34:28.875483201 +0200 @@ -71,9 +71,9 @@ install: install -d $(INCDIR) $(INSTALLDIR) - install -m 644 -o root -g root $(HEADER) $(INCDIR) - install -m 644 -o root -g root $(STATICLIB) $(INSTALLDIR) - install -m 755 -o root -g root $(SHAREDLIB) $(INSTALLDIR) + install -m 644 $(HEADER) $(INCDIR) + install -m 644 $(STATICLIB) $(INSTALLDIR) + install -m 755 $(SHAREDLIB) $(INSTALLDIR) ln -sf $(SHAREDLIB) $(INSTALLDIR)/$(VERLIBNAME) ln -sf $(VERLIBNAME) $(INSTALLDIR)/$(LIBNAME) # ldconfig
shibajee/buildroot
package/libfreeimage/0001-no-root-install.patch
patch
mit
752
Fix build issue caused by invalid register usage on x86 Patch taken from https://github.com/openexr/openexr/issues/128. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Index: b/Source/OpenEXR/IlmImf/ImfSystemSpecific.cpp =================================================================== --- a/Source/OpenEXR/IlmImf/ImfSystemSpecific.cpp +++ b/Source/OpenEXR/IlmImf/ImfSystemSpecific.cpp @@ -40,21 +40,19 @@ namespace { #if defined(IMF_HAVE_SSE2) && defined(__GNUC__) - +#include <cpuid.h> // Helper functions for gcc + SSE enabled - void cpuid(int n, int &eax, int &ebx, int &ecx, int &edx) + void cpuid(unsigned int n, unsigned int &eax, unsigned int &ebx, + unsigned int &ecx, unsigned int &edx) { - __asm__ __volatile__ ( - "cpuid" - : /* Output */ "=a"(eax), "=b"(ebx), "=c"(ecx), "=d"(edx) - : /* Input */ "a"(n) - : /* Clobber */); + __get_cpuid(n, &eax, &ebx, &ecx, &edx); } #else // IMF_HAVE_SSE2 && __GNUC__ // Helper functions for generic compiler - all disabled - void cpuid(int n, int &eax, int &ebx, int &ecx, int &edx) + void cpuid(unsigned int n, unsigned int &eax, unsigned int &ebx, + unsigned int &ecx, unsigned int &edx) { eax = ebx = ecx = edx = 0; } @@ -64,7 +62,7 @@ #ifdef OPENEXR_IMF_HAVE_GCC_INLINE_ASM_AVX - void xgetbv(int n, int &eax, int &edx) + void xgetbv(unsigned int n, unsigned int &eax, unsigned int &edx) { __asm__ __volatile__ ( "xgetbv" @@ -75,7 +73,7 @@ #else // OPENEXR_IMF_HAVE_GCC_INLINE_ASM_AVX - void xgetbv(int n, int &eax, int &edx) + void xgetbv(unsigned int n, unsigned int &eax, unsigned int &edx) { eax = edx = 0; } @@ -94,8 +92,8 @@ f16c(false) { bool osxsave = false; - int max = 0; - int eax, ebx, ecx, edx; + unsigned int max = 0; + unsigned int eax, ebx, ecx, edx; cpuid(0, max, ebx, ecx, edx); if (max > 0)
shibajee/buildroot
package/libfreeimage/0002-fix-cpuid-x86.patch
patch
mit
2,031
From 44bce1b66c1cdd5308ac3ac773ea0a53d83790fd Mon Sep 17 00:00:00 2001 From: Peter Korsgaard <peter@korsgaard.com> Date: Tue, 24 Nov 2015 21:16:39 +0100 Subject: [PATCH] LibWebP: fix compilation issue with GCC 5.x / C++11 GCC 5.1 / C++11 gets confused about the "#<TEXT>" in the inline assembly code, and dies with errors like: Source/LibWebP/./src/dsp/dsp.upsampling_mips_dsp_r2.c:37:34: error: invalid character ' ' in raw string delimiter Fix it by introducting white space around the string literals like it has been done in upstream webp: https://chromium.googlesource.com/webm/libwebp/+/eebaf97f5a1cb713d81d311308d8a48c124e5aef Discussed upstream: http://sourceforge.net/p/freeimage/discussion/36110/thread/605ef8e4/ [Scripted by sed -i 's/"\(#[A-Z0-9]*\)"/" \1 "/g' *.c] Signed-off-by: Peter Korsgaard <peter@korsgaard.com> --- Source/LibWebP/src/dsp/dsp.dec_mips_dsp_r2.c | 28 +- Source/LibWebP/src/dsp/dsp.enc_mips32.c | 314 ++++++++++----------- Source/LibWebP/src/dsp/dsp.enc_mips_dsp_r2.c | 288 +++++++++---------- Source/LibWebP/src/dsp/dsp.filters_mips_dsp_r2.c | 10 +- Source/LibWebP/src/dsp/dsp.lossless_mips32.c | 34 +-- Source/LibWebP/src/dsp/dsp.lossless_mips_dsp_r2.c | 8 +- .../LibWebP/src/dsp/dsp.upsampling_mips_dsp_r2.c | 18 +- Source/LibWebP/src/dsp/dsp.yuv_mips_dsp_r2.c | 10 +- 8 files changed, 355 insertions(+), 355 deletions(-) diff --git a/Source/LibWebP/src/dsp/dsp.dec_mips_dsp_r2.c b/Source/LibWebP/src/dsp/dsp.dec_mips_dsp_r2.c index dac2c93..aaa8111 100644 --- a/Source/LibWebP/src/dsp/dsp.dec_mips_dsp_r2.c +++ b/Source/LibWebP/src/dsp/dsp.dec_mips_dsp_r2.c @@ -548,10 +548,10 @@ static void SimpleVFilter16(uint8_t* p, int stride, int thresh) { // TEMP3 = SRC[D + D1 * BPS] #define LOAD_4_BYTES(TEMP0, TEMP1, TEMP2, TEMP3, \ A, A1, B, B1, C, C1, D, D1, SRC) \ - "lbu %["#TEMP0"], "#A"+"#A1"*"XSTR(BPS)"(%["#SRC"]) \n\t" \ - "lbu %["#TEMP1"], "#B"+"#B1"*"XSTR(BPS)"(%["#SRC"]) \n\t" \ - "lbu %["#TEMP2"], "#C"+"#C1"*"XSTR(BPS)"(%["#SRC"]) \n\t" \ - "lbu %["#TEMP3"], "#D"+"#D1"*"XSTR(BPS)"(%["#SRC"]) \n\t" \ + "lbu %[" #TEMP0 "], " #A "+" #A1 "*"XSTR(BPS)"(%[" #SRC "]) \n\t" \ + "lbu %[" #TEMP1 "], " #B "+" #B1 "*"XSTR(BPS)"(%[" #SRC "]) \n\t" \ + "lbu %[" #TEMP2 "], " #C "+" #C1 "*"XSTR(BPS)"(%[" #SRC "]) \n\t" \ + "lbu %[" #TEMP3 "], " #D "+" #D1 "*"XSTR(BPS)"(%[" #SRC "]) \n\t" \ static void SimpleHFilter16(uint8_t* p, int stride, int thresh) { int i; @@ -623,8 +623,8 @@ static void SimpleHFilter16i(uint8_t* p, int stride, int thresh) { // DST[A * BPS] = TEMP0 // DST[B + C * BPS] = TEMP1 #define STORE_8_BYTES(TEMP0, TEMP1, A, B, C, DST) \ - "usw %["#TEMP0"], "#A"*"XSTR(BPS)"(%["#DST"]) \n\t" \ - "usw %["#TEMP1"], "#B"+"#C"*"XSTR(BPS)"(%["#DST"]) \n\t" + "usw %[" #TEMP0 "], " #A "*"XSTR(BPS)"(%[" #DST "]) \n\t" \ + "usw %[" #TEMP1 "], " #B "+" #C "*"XSTR(BPS)"(%[" #DST "]) \n\t" static void VE4(uint8_t* dst) { // vertical const uint8_t* top = dst - BPS; @@ -725,8 +725,8 @@ static void RD4(uint8_t* dst) { // Down-right // TEMP0 = SRC[A * BPS] // TEMP1 = SRC[B + C * BPS] #define LOAD_8_BYTES(TEMP0, TEMP1, A, B, C, SRC) \ - "ulw %["#TEMP0"], "#A"*"XSTR(BPS)"(%["#SRC"]) \n\t" \ - "ulw %["#TEMP1"], "#B"+"#C"*"XSTR(BPS)"(%["#SRC"]) \n\t" + "ulw %[" #TEMP0 "], " #A "*"XSTR(BPS)"(%[" #SRC "]) \n\t" \ + "ulw %[" #TEMP1 "], " #B "+" #C "*"XSTR(BPS)"(%[" #SRC "]) \n\t" static void LD4(uint8_t* dst) { // Down-Left int temp0, temp1, temp2, temp3, temp4; @@ -873,24 +873,24 @@ static void DC8uvNoTop(uint8_t* dst) { // DC with no top samples #define CLIPPING(SIZE) \ "preceu.ph.qbl %[temp2], %[temp0] \n\t" \ "preceu.ph.qbr %[temp0], %[temp0] \n\t" \ -".if "#SIZE" == 8 \n\t" \ +".if " #SIZE " == 8 \n\t" \ "preceu.ph.qbl %[temp3], %[temp1] \n\t" \ "preceu.ph.qbr %[temp1], %[temp1] \n\t" \ ".endif \n\t" \ "addu.ph %[temp2], %[temp2], %[dst_1] \n\t" \ "addu.ph %[temp0], %[temp0], %[dst_1] \n\t" \ -".if "#SIZE" == 8 \n\t" \ +".if " #SIZE " == 8 \n\t" \ "addu.ph %[temp3], %[temp3], %[dst_1] \n\t" \ "addu.ph %[temp1], %[temp1], %[dst_1] \n\t" \ ".endif \n\t" \ "shll_s.ph %[temp2], %[temp2], 7 \n\t" \ "shll_s.ph %[temp0], %[temp0], 7 \n\t" \ -".if "#SIZE" == 8 \n\t" \ +".if " #SIZE " == 8 \n\t" \ "shll_s.ph %[temp3], %[temp3], 7 \n\t" \ "shll_s.ph %[temp1], %[temp1], 7 \n\t" \ ".endif \n\t" \ "precrqu_s.qb.ph %[temp0], %[temp2], %[temp0] \n\t" \ -".if "#SIZE" == 8 \n\t" \ +".if " #SIZE " == 8 \n\t" \ "precrqu_s.qb.ph %[temp1], %[temp3], %[temp1] \n\t" \ ".endif \n\t" @@ -899,7 +899,7 @@ static void DC8uvNoTop(uint8_t* dst) { // DC with no top samples int dst_1 = ((int)(DST)[-1] << 16) + (DST)[-1]; \ int temp0, temp1, temp2, temp3; \ __asm__ volatile ( \ - ".if "#SIZE" < 8 \n\t" \ + ".if " #SIZE " < 8 \n\t" \ "ulw %[temp0], 0(%[top]) \n\t" \ "subu.ph %[dst_1], %[dst_1], %[top_1] \n\t" \ CLIPPING(4) \ @@ -911,7 +911,7 @@ static void DC8uvNoTop(uint8_t* dst) { // DC with no top samples CLIPPING(8) \ "usw %[temp0], 0(%[dst]) \n\t" \ "usw %[temp1], 4(%[dst]) \n\t" \ - ".if "#SIZE" == 16 \n\t" \ + ".if " #SIZE " == 16 \n\t" \ "ulw %[temp0], 8(%[top]) \n\t" \ "ulw %[temp1], 12(%[top]) \n\t" \ CLIPPING(8) \ diff --git a/Source/LibWebP/src/dsp/dsp.enc_mips32.c b/Source/LibWebP/src/dsp/dsp.enc_mips32.c index 545aa3a..bf1c16d 100644 --- a/Source/LibWebP/src/dsp/dsp.enc_mips32.c +++ b/Source/LibWebP/src/dsp/dsp.enc_mips32.c @@ -31,26 +31,26 @@ static const int kC2 = 35468; // TEMP0..TEMP3 - registers for corresponding tmp elements // TEMP4..TEMP5 - temporary registers #define VERTICAL_PASS(A, B, C, D, TEMP4, TEMP0, TEMP1, TEMP2, TEMP3) \ - "lh %[temp16], "#A"(%[temp20]) \n\t" \ - "lh %[temp18], "#B"(%[temp20]) \n\t" \ - "lh %[temp17], "#C"(%[temp20]) \n\t" \ - "lh %[temp19], "#D"(%[temp20]) \n\t" \ - "addu %["#TEMP4"], %[temp16], %[temp18] \n\t" \ + "lh %[temp16], " #A "(%[temp20]) \n\t" \ + "lh %[temp18], " #B "(%[temp20]) \n\t" \ + "lh %[temp17], " #C "(%[temp20]) \n\t" \ + "lh %[temp19], " #D "(%[temp20]) \n\t" \ + "addu %[" #TEMP4 "], %[temp16], %[temp18] \n\t" \ "subu %[temp16], %[temp16], %[temp18] \n\t" \ - "mul %["#TEMP0"], %[temp17], %[kC2] \n\t" \ + "mul %[" #TEMP0 "], %[temp17], %[kC2] \n\t" \ "mul %[temp18], %[temp19], %[kC1] \n\t" \ "mul %[temp17], %[temp17], %[kC1] \n\t" \ "mul %[temp19], %[temp19], %[kC2] \n\t" \ - "sra %["#TEMP0"], %["#TEMP0"], 16 \n\n" \ + "sra %[" #TEMP0 "], %[" #TEMP0 "], 16 \n\n" \ "sra %[temp18], %[temp18], 16 \n\n" \ "sra %[temp17], %[temp17], 16 \n\n" \ "sra %[temp19], %[temp19], 16 \n\n" \ - "subu %["#TEMP2"], %["#TEMP0"], %[temp18] \n\t" \ - "addu %["#TEMP3"], %[temp17], %[temp19] \n\t" \ - "addu %["#TEMP0"], %["#TEMP4"], %["#TEMP3"] \n\t" \ - "addu %["#TEMP1"], %[temp16], %["#TEMP2"] \n\t" \ - "subu %["#TEMP2"], %[temp16], %["#TEMP2"] \n\t" \ - "subu %["#TEMP3"], %["#TEMP4"], %["#TEMP3"] \n\t" + "subu %[" #TEMP2 "], %[" #TEMP0 "], %[temp18] \n\t" \ + "addu %[" #TEMP3 "], %[temp17], %[temp19] \n\t" \ + "addu %[" #TEMP0 "], %[" #TEMP4 "], %[" #TEMP3 "] \n\t" \ + "addu %[" #TEMP1 "], %[temp16], %[" #TEMP2 "] \n\t" \ + "subu %[" #TEMP2 "], %[temp16], %[" #TEMP2 "] \n\t" \ + "subu %[" #TEMP3 "], %[" #TEMP4 "], %[" #TEMP3 "] \n\t" // macro for one horizontal pass in ITransformOne // MUL and STORE macros inlined @@ -59,58 +59,58 @@ static const int kC2 = 35468; // A - offset in bytes to load from ref and store to dst buffer // TEMP0, TEMP4, TEMP8 and TEMP12 - registers for corresponding tmp elements #define HORIZONTAL_PASS(A, TEMP0, TEMP4, TEMP8, TEMP12) \ - "addiu %["#TEMP0"], %["#TEMP0"], 4 \n\t" \ - "addu %[temp16], %["#TEMP0"], %["#TEMP8"] \n\t" \ - "subu %[temp17], %["#TEMP0"], %["#TEMP8"] \n\t" \ - "mul %["#TEMP0"], %["#TEMP4"], %[kC2] \n\t" \ - "mul %["#TEMP8"], %["#TEMP12"], %[kC1] \n\t" \ - "mul %["#TEMP4"], %["#TEMP4"], %[kC1] \n\t" \ - "mul %["#TEMP12"], %["#TEMP12"], %[kC2] \n\t" \ - "sra %["#TEMP0"], %["#TEMP0"], 16 \n\t" \ - "sra %["#TEMP8"], %["#TEMP8"], 16 \n\t" \ - "sra %["#TEMP4"], %["#TEMP4"], 16 \n\t" \ - "sra %["#TEMP12"], %["#TEMP12"], 16 \n\t" \ - "subu %[temp18], %["#TEMP0"], %["#TEMP8"] \n\t" \ - "addu %[temp19], %["#TEMP4"], %["#TEMP12"] \n\t" \ - "addu %["#TEMP0"], %[temp16], %[temp19] \n\t" \ - "addu %["#TEMP4"], %[temp17], %[temp18] \n\t" \ - "subu %["#TEMP8"], %[temp17], %[temp18] \n\t" \ - "subu %["#TEMP12"], %[temp16], %[temp19] \n\t" \ + "addiu %[" #TEMP0 "], %[" #TEMP0 "], 4 \n\t" \ + "addu %[temp16], %[" #TEMP0 "], %[" #TEMP8 "] \n\t" \ + "subu %[temp17], %[" #TEMP0 "], %[" #TEMP8 "] \n\t" \ + "mul %[" #TEMP0 "], %[" #TEMP4 "], %[kC2] \n\t" \ + "mul %[" #TEMP8 "], %[" #TEMP12 "], %[kC1] \n\t" \ + "mul %[" #TEMP4 "], %[" #TEMP4 "], %[kC1] \n\t" \ + "mul %[" #TEMP12 "], %[" #TEMP12 "], %[kC2] \n\t" \ + "sra %[" #TEMP0 "], %[" #TEMP0 "], 16 \n\t" \ + "sra %[" #TEMP8 "], %[" #TEMP8 "], 16 \n\t" \ + "sra %[" #TEMP4 "], %[" #TEMP4 "], 16 \n\t" \ + "sra %[" #TEMP12 "], %[" #TEMP12 "], 16 \n\t" \ + "subu %[temp18], %[" #TEMP0 "], %[" #TEMP8 "] \n\t" \ + "addu %[temp19], %[" #TEMP4 "], %[" #TEMP12 "] \n\t" \ + "addu %[" #TEMP0 "], %[temp16], %[temp19] \n\t" \ + "addu %[" #TEMP4 "], %[temp17], %[temp18] \n\t" \ + "subu %[" #TEMP8 "], %[temp17], %[temp18] \n\t" \ + "subu %[" #TEMP12 "], %[temp16], %[temp19] \n\t" \ "lw %[temp20], 0(%[args]) \n\t" \ - "sra %["#TEMP0"], %["#TEMP0"], 3 \n\t" \ - "sra %["#TEMP4"], %["#TEMP4"], 3 \n\t" \ - "sra %["#TEMP8"], %["#TEMP8"], 3 \n\t" \ - "sra %["#TEMP12"], %["#TEMP12"], 3 \n\t" \ - "lbu %[temp16], 0+"XSTR(BPS)"*"#A"(%[temp20]) \n\t" \ - "lbu %[temp17], 1+"XSTR(BPS)"*"#A"(%[temp20]) \n\t" \ - "lbu %[temp18], 2+"XSTR(BPS)"*"#A"(%[temp20]) \n\t" \ - "lbu %[temp19], 3+"XSTR(BPS)"*"#A"(%[temp20]) \n\t" \ - "addu %["#TEMP0"], %[temp16], %["#TEMP0"] \n\t" \ - "addu %["#TEMP4"], %[temp17], %["#TEMP4"] \n\t" \ - "addu %["#TEMP8"], %[temp18], %["#TEMP8"] \n\t" \ - "addu %["#TEMP12"], %[temp19], %["#TEMP12"] \n\t" \ - "slt %[temp16], %["#TEMP0"], $zero \n\t" \ - "slt %[temp17], %["#TEMP4"], $zero \n\t" \ - "slt %[temp18], %["#TEMP8"], $zero \n\t" \ - "slt %[temp19], %["#TEMP12"], $zero \n\t" \ - "movn %["#TEMP0"], $zero, %[temp16] \n\t" \ - "movn %["#TEMP4"], $zero, %[temp17] \n\t" \ - "movn %["#TEMP8"], $zero, %[temp18] \n\t" \ - "movn %["#TEMP12"], $zero, %[temp19] \n\t" \ + "sra %[" #TEMP0 "], %[" #TEMP0 "], 3 \n\t" \ + "sra %[" #TEMP4 "], %[" #TEMP4 "], 3 \n\t" \ + "sra %[" #TEMP8 "], %[" #TEMP8 "], 3 \n\t" \ + "sra %[" #TEMP12 "], %[" #TEMP12 "], 3 \n\t" \ + "lbu %[temp16], 0+"XSTR(BPS)"*" #A "(%[temp20]) \n\t" \ + "lbu %[temp17], 1+"XSTR(BPS)"*" #A "(%[temp20]) \n\t" \ + "lbu %[temp18], 2+"XSTR(BPS)"*" #A "(%[temp20]) \n\t" \ + "lbu %[temp19], 3+"XSTR(BPS)"*" #A "(%[temp20]) \n\t" \ + "addu %[" #TEMP0 "], %[temp16], %[" #TEMP0 "] \n\t" \ + "addu %[" #TEMP4 "], %[temp17], %[" #TEMP4 "] \n\t" \ + "addu %[" #TEMP8 "], %[temp18], %[" #TEMP8 "] \n\t" \ + "addu %[" #TEMP12 "], %[temp19], %[" #TEMP12 "] \n\t" \ + "slt %[temp16], %[" #TEMP0 "], $zero \n\t" \ + "slt %[temp17], %[" #TEMP4 "], $zero \n\t" \ + "slt %[temp18], %[" #TEMP8 "], $zero \n\t" \ + "slt %[temp19], %[" #TEMP12 "], $zero \n\t" \ + "movn %[" #TEMP0 "], $zero, %[temp16] \n\t" \ + "movn %[" #TEMP4 "], $zero, %[temp17] \n\t" \ + "movn %[" #TEMP8 "], $zero, %[temp18] \n\t" \ + "movn %[" #TEMP12 "], $zero, %[temp19] \n\t" \ "addiu %[temp20], $zero, 255 \n\t" \ - "slt %[temp16], %["#TEMP0"], %[temp20] \n\t" \ - "slt %[temp17], %["#TEMP4"], %[temp20] \n\t" \ - "slt %[temp18], %["#TEMP8"], %[temp20] \n\t" \ - "slt %[temp19], %["#TEMP12"], %[temp20] \n\t" \ - "movz %["#TEMP0"], %[temp20], %[temp16] \n\t" \ - "movz %["#TEMP4"], %[temp20], %[temp17] \n\t" \ + "slt %[temp16], %[" #TEMP0 "], %[temp20] \n\t" \ + "slt %[temp17], %[" #TEMP4 "], %[temp20] \n\t" \ + "slt %[temp18], %[" #TEMP8 "], %[temp20] \n\t" \ + "slt %[temp19], %[" #TEMP12 "], %[temp20] \n\t" \ + "movz %[" #TEMP0 "], %[temp20], %[temp16] \n\t" \ + "movz %[" #TEMP4 "], %[temp20], %[temp17] \n\t" \ "lw %[temp16], 8(%[args]) \n\t" \ - "movz %["#TEMP8"], %[temp20], %[temp18] \n\t" \ - "movz %["#TEMP12"], %[temp20], %[temp19] \n\t" \ - "sb %["#TEMP0"], 0+"XSTR(BPS)"*"#A"(%[temp16]) \n\t" \ - "sb %["#TEMP4"], 1+"XSTR(BPS)"*"#A"(%[temp16]) \n\t" \ - "sb %["#TEMP8"], 2+"XSTR(BPS)"*"#A"(%[temp16]) \n\t" \ - "sb %["#TEMP12"], 3+"XSTR(BPS)"*"#A"(%[temp16]) \n\t" + "movz %[" #TEMP8 "], %[temp20], %[temp18] \n\t" \ + "movz %[" #TEMP12 "], %[temp20], %[temp19] \n\t" \ + "sb %[" #TEMP0 "], 0+"XSTR(BPS)"*" #A "(%[temp16]) \n\t" \ + "sb %[" #TEMP4 "], 1+"XSTR(BPS)"*" #A "(%[temp16]) \n\t" \ + "sb %[" #TEMP8 "], 2+"XSTR(BPS)"*" #A "(%[temp16]) \n\t" \ + "sb %[" #TEMP12 "], 3+"XSTR(BPS)"*" #A "(%[temp16]) \n\t" // Does one or two inverse transforms. static WEBP_INLINE void ITransformOne(const uint8_t* ref, const int16_t* in, @@ -161,9 +161,9 @@ static void ITransform(const uint8_t* ref, const int16_t* in, // K - offset in bytes (kZigzag[n] * 4) // N - offset in bytes (n * 2) #define QUANTIZE_ONE(J, K, N) \ - "lh %[temp0], "#J"(%[ppin]) \n\t" \ - "lhu %[temp1], "#J"(%[ppsharpen]) \n\t" \ - "lw %[temp2], "#K"(%[ppzthresh]) \n\t" \ + "lh %[temp0], " #J "(%[ppin]) \n\t" \ + "lhu %[temp1], " #J "(%[ppsharpen]) \n\t" \ + "lw %[temp2], " #K "(%[ppzthresh]) \n\t" \ "sra %[sign], %[temp0], 15 \n\t" \ "xor %[coeff], %[temp0], %[sign] \n\t" \ "subu %[coeff], %[coeff], %[sign] \n\t" \ @@ -172,9 +172,9 @@ static void ITransform(const uint8_t* ref, const int16_t* in, "addiu %[temp5], $zero, 0 \n\t" \ "addiu %[level], $zero, 0 \n\t" \ "beqz %[temp4], 2f \n\t" \ - "lhu %[temp1], "#J"(%[ppiq]) \n\t" \ - "lw %[temp2], "#K"(%[ppbias]) \n\t" \ - "lhu %[temp3], "#J"(%[ppq]) \n\t" \ + "lhu %[temp1], " #J "(%[ppiq]) \n\t" \ + "lw %[temp2], " #K "(%[ppbias]) \n\t" \ + "lhu %[temp3], " #J "(%[ppq]) \n\t" \ "mul %[level], %[coeff], %[temp1] \n\t" \ "addu %[level], %[level], %[temp2] \n\t" \ "sra %[level], %[level], 17 \n\t" \ @@ -184,8 +184,8 @@ static void ITransform(const uint8_t* ref, const int16_t* in, "subu %[level], %[level], %[sign] \n\t" \ "mul %[temp5], %[level], %[temp3] \n\t" \ "2: \n\t" \ - "sh %[temp5], "#J"(%[ppin]) \n\t" \ - "sh %[level], "#N"(%[pout]) \n\t" + "sh %[temp5], " #J "(%[ppin]) \n\t" \ + "sh %[level], " #N "(%[pout]) \n\t" static int QuantizeBlock(int16_t in[16], int16_t out[16], const VP8Matrix* const mtx) { @@ -254,14 +254,14 @@ static int Quantize2Blocks(int16_t in[32], int16_t out[32], // E..H - offsets in bytes to store first results to tmp buffer // E1..H1 - offsets in bytes to store second results to tmp buffer #define HORIZONTAL_PASS(A, E, F, G, H, E1, F1, G1, H1) \ - "lbu %[temp0], 0+"XSTR(BPS)"*"#A"(%[a]) \n\t" \ - "lbu %[temp1], 1+"XSTR(BPS)"*"#A"(%[a]) \n\t" \ - "lbu %[temp2], 2+"XSTR(BPS)"*"#A"(%[a]) \n\t" \ - "lbu %[temp3], 3+"XSTR(BPS)"*"#A"(%[a]) \n\t" \ - "lbu %[temp4], 0+"XSTR(BPS)"*"#A"(%[b]) \n\t" \ - "lbu %[temp5], 1+"XSTR(BPS)"*"#A"(%[b]) \n\t" \ - "lbu %[temp6], 2+"XSTR(BPS)"*"#A"(%[b]) \n\t" \ - "lbu %[temp7], 3+"XSTR(BPS)"*"#A"(%[b]) \n\t" \ + "lbu %[temp0], 0+"XSTR(BPS)"*" #A "(%[a]) \n\t" \ + "lbu %[temp1], 1+"XSTR(BPS)"*" #A "(%[a]) \n\t" \ + "lbu %[temp2], 2+"XSTR(BPS)"*" #A "(%[a]) \n\t" \ + "lbu %[temp3], 3+"XSTR(BPS)"*" #A "(%[a]) \n\t" \ + "lbu %[temp4], 0+"XSTR(BPS)"*" #A "(%[b]) \n\t" \ + "lbu %[temp5], 1+"XSTR(BPS)"*" #A "(%[b]) \n\t" \ + "lbu %[temp6], 2+"XSTR(BPS)"*" #A "(%[b]) \n\t" \ + "lbu %[temp7], 3+"XSTR(BPS)"*" #A "(%[b]) \n\t" \ "addu %[temp8], %[temp0], %[temp2] \n\t" \ "subu %[temp0], %[temp0], %[temp2] \n\t" \ "addu %[temp2], %[temp1], %[temp3] \n\t" \ @@ -278,14 +278,14 @@ static int Quantize2Blocks(int16_t in[32], int16_t out[32], "subu %[temp3], %[temp3], %[temp6] \n\t" \ "addu %[temp6], %[temp4], %[temp5] \n\t" \ "subu %[temp4], %[temp4], %[temp5] \n\t" \ - "sw %[temp7], "#E"(%[tmp]) \n\t" \ - "sw %[temp2], "#H"(%[tmp]) \n\t" \ - "sw %[temp8], "#F"(%[tmp]) \n\t" \ - "sw %[temp0], "#G"(%[tmp]) \n\t" \ - "sw %[temp1], "#E1"(%[tmp]) \n\t" \ - "sw %[temp3], "#H1"(%[tmp]) \n\t" \ - "sw %[temp6], "#F1"(%[tmp]) \n\t" \ - "sw %[temp4], "#G1"(%[tmp]) \n\t" + "sw %[temp7], " #E "(%[tmp]) \n\t" \ + "sw %[temp2], " #H "(%[tmp]) \n\t" \ + "sw %[temp8], " #F "(%[tmp]) \n\t" \ + "sw %[temp0], " #G "(%[tmp]) \n\t" \ + "sw %[temp1], " #E1 "(%[tmp]) \n\t" \ + "sw %[temp3], " #H1 "(%[tmp]) \n\t" \ + "sw %[temp6], " #F1 "(%[tmp]) \n\t" \ + "sw %[temp4], " #G1 "(%[tmp]) \n\t" // macro for one vertical pass in Disto4x4 (TTransform) // two calls of function TTransform are merged into single one @@ -300,10 +300,10 @@ static int Quantize2Blocks(int16_t in[32], int16_t out[32], // A1..D1 - offsets in bytes to load second results from tmp buffer // E..H - offsets in bytes to load from w buffer #define VERTICAL_PASS(A, B, C, D, A1, B1, C1, D1, E, F, G, H) \ - "lw %[temp0], "#A1"(%[tmp]) \n\t" \ - "lw %[temp1], "#C1"(%[tmp]) \n\t" \ - "lw %[temp2], "#B1"(%[tmp]) \n\t" \ - "lw %[temp3], "#D1"(%[tmp]) \n\t" \ + "lw %[temp0], " #A1 "(%[tmp]) \n\t" \ + "lw %[temp1], " #C1 "(%[tmp]) \n\t" \ + "lw %[temp2], " #B1 "(%[tmp]) \n\t" \ + "lw %[temp3], " #D1 "(%[tmp]) \n\t" \ "addu %[temp8], %[temp0], %[temp1] \n\t" \ "subu %[temp0], %[temp0], %[temp1] \n\t" \ "addu %[temp1], %[temp2], %[temp3] \n\t" \ @@ -324,18 +324,18 @@ static int Quantize2Blocks(int16_t in[32], int16_t out[32], "subu %[temp1], %[temp1], %[temp5] \n\t" \ "subu %[temp0], %[temp0], %[temp6] \n\t" \ "subu %[temp8], %[temp8], %[temp7] \n\t" \ - "lhu %[temp4], "#E"(%[w]) \n\t" \ - "lhu %[temp5], "#F"(%[w]) \n\t" \ - "lhu %[temp6], "#G"(%[w]) \n\t" \ - "lhu %[temp7], "#H"(%[w]) \n\t" \ + "lhu %[temp4], " #E "(%[w]) \n\t" \ + "lhu %[temp5], " #F "(%[w]) \n\t" \ + "lhu %[temp6], " #G "(%[w]) \n\t" \ + "lhu %[temp7], " #H "(%[w]) \n\t" \ "madd %[temp4], %[temp3] \n\t" \ "madd %[temp5], %[temp1] \n\t" \ "madd %[temp6], %[temp0] \n\t" \ "madd %[temp7], %[temp8] \n\t" \ - "lw %[temp0], "#A"(%[tmp]) \n\t" \ - "lw %[temp1], "#C"(%[tmp]) \n\t" \ - "lw %[temp2], "#B"(%[tmp]) \n\t" \ - "lw %[temp3], "#D"(%[tmp]) \n\t" \ + "lw %[temp0], " #A "(%[tmp]) \n\t" \ + "lw %[temp1], " #C "(%[tmp]) \n\t" \ + "lw %[temp2], " #B "(%[tmp]) \n\t" \ + "lw %[temp3], " #D "(%[tmp]) \n\t" \ "addu %[temp8], %[temp0], %[temp1] \n\t" \ "subu %[temp0], %[temp0], %[temp1] \n\t" \ "addu %[temp1], %[temp2], %[temp3] \n\t" \ @@ -413,70 +413,70 @@ static int Disto16x16(const uint8_t* const a, const uint8_t* const b, // A - offset in bytes to load from src and ref buffers // TEMP0..TEMP3 - registers for corresponding tmp elements #define HORIZONTAL_PASS(A, TEMP0, TEMP1, TEMP2, TEMP3) \ - "lw %["#TEMP1"], 0(%[args]) \n\t" \ - "lw %["#TEMP2"], 4(%[args]) \n\t" \ - "lbu %[temp16], 0+"XSTR(BPS)"*"#A"(%["#TEMP1"]) \n\t" \ - "lbu %[temp17], 0+"XSTR(BPS)"*"#A"(%["#TEMP2"]) \n\t" \ - "lbu %[temp18], 1+"XSTR(BPS)"*"#A"(%["#TEMP1"]) \n\t" \ - "lbu %[temp19], 1+"XSTR(BPS)"*"#A"(%["#TEMP2"]) \n\t" \ + "lw %[" #TEMP1 "], 0(%[args]) \n\t" \ + "lw %[" #TEMP2 "], 4(%[args]) \n\t" \ + "lbu %[temp16], 0+"XSTR(BPS)"*" #A "(%[" #TEMP1 "]) \n\t" \ + "lbu %[temp17], 0+"XSTR(BPS)"*" #A "(%[" #TEMP2 "]) \n\t" \ + "lbu %[temp18], 1+"XSTR(BPS)"*" #A "(%[" #TEMP1 "]) \n\t" \ + "lbu %[temp19], 1+"XSTR(BPS)"*" #A "(%[" #TEMP2 "]) \n\t" \ "subu %[temp20], %[temp16], %[temp17] \n\t" \ - "lbu %[temp16], 2+"XSTR(BPS)"*"#A"(%["#TEMP1"]) \n\t" \ - "lbu %[temp17], 2+"XSTR(BPS)"*"#A"(%["#TEMP2"]) \n\t" \ - "subu %["#TEMP0"], %[temp18], %[temp19] \n\t" \ - "lbu %[temp18], 3+"XSTR(BPS)"*"#A"(%["#TEMP1"]) \n\t" \ - "lbu %[temp19], 3+"XSTR(BPS)"*"#A"(%["#TEMP2"]) \n\t" \ - "subu %["#TEMP1"], %[temp16], %[temp17] \n\t" \ - "subu %["#TEMP2"], %[temp18], %[temp19] \n\t" \ - "addu %["#TEMP3"], %[temp20], %["#TEMP2"] \n\t" \ - "subu %["#TEMP2"], %[temp20], %["#TEMP2"] \n\t" \ - "addu %[temp20], %["#TEMP0"], %["#TEMP1"] \n\t" \ - "subu %["#TEMP0"], %["#TEMP0"], %["#TEMP1"] \n\t" \ - "mul %[temp16], %["#TEMP2"], %[c5352] \n\t" \ - "mul %[temp17], %["#TEMP2"], %[c2217] \n\t" \ - "mul %[temp18], %["#TEMP0"], %[c5352] \n\t" \ - "mul %[temp19], %["#TEMP0"], %[c2217] \n\t" \ - "addu %["#TEMP1"], %["#TEMP3"], %[temp20] \n\t" \ - "subu %[temp20], %["#TEMP3"], %[temp20] \n\t" \ - "sll %["#TEMP0"], %["#TEMP1"], 3 \n\t" \ - "sll %["#TEMP2"], %[temp20], 3 \n\t" \ + "lbu %[temp16], 2+"XSTR(BPS)"*" #A "(%[" #TEMP1 "]) \n\t" \ + "lbu %[temp17], 2+"XSTR(BPS)"*" #A "(%[" #TEMP2 "]) \n\t" \ + "subu %[" #TEMP0 "], %[temp18], %[temp19] \n\t" \ + "lbu %[temp18], 3+"XSTR(BPS)"*" #A "(%[" #TEMP1 "]) \n\t" \ + "lbu %[temp19], 3+"XSTR(BPS)"*" #A "(%[" #TEMP2 "]) \n\t" \ + "subu %[" #TEMP1 "], %[temp16], %[temp17] \n\t" \ + "subu %[" #TEMP2 "], %[temp18], %[temp19] \n\t" \ + "addu %[" #TEMP3 "], %[temp20], %[" #TEMP2 "] \n\t" \ + "subu %[" #TEMP2 "], %[temp20], %[" #TEMP2 "] \n\t" \ + "addu %[temp20], %[" #TEMP0 "], %[" #TEMP1 "] \n\t" \ + "subu %[" #TEMP0 "], %[" #TEMP0 "], %[" #TEMP1 "] \n\t" \ + "mul %[temp16], %[" #TEMP2 "], %[c5352] \n\t" \ + "mul %[temp17], %[" #TEMP2 "], %[c2217] \n\t" \ + "mul %[temp18], %[" #TEMP0 "], %[c5352] \n\t" \ + "mul %[temp19], %[" #TEMP0 "], %[c2217] \n\t" \ + "addu %[" #TEMP1 "], %[" #TEMP3 "], %[temp20] \n\t" \ + "subu %[temp20], %[" #TEMP3 "], %[temp20] \n\t" \ + "sll %[" #TEMP0 "], %[" #TEMP1 "], 3 \n\t" \ + "sll %[" #TEMP2 "], %[temp20], 3 \n\t" \ "addiu %[temp16], %[temp16], 1812 \n\t" \ "addiu %[temp17], %[temp17], 937 \n\t" \ "addu %[temp16], %[temp16], %[temp19] \n\t" \ "subu %[temp17], %[temp17], %[temp18] \n\t" \ - "sra %["#TEMP1"], %[temp16], 9 \n\t" \ - "sra %["#TEMP3"], %[temp17], 9 \n\t" + "sra %[" #TEMP1 "], %[temp16], 9 \n\t" \ + "sra %[" #TEMP3 "], %[temp17], 9 \n\t" // macro for one vertical pass in FTransform // temp0..temp15 holds tmp[0]..tmp[15] // A..D - offsets in bytes to store to out buffer // TEMP0, TEMP4, TEMP8 and TEMP12 - registers for corresponding tmp elements #define VERTICAL_PASS(A, B, C, D, TEMP0, TEMP4, TEMP8, TEMP12) \ - "addu %[temp16], %["#TEMP0"], %["#TEMP12"] \n\t" \ - "subu %[temp19], %["#TEMP0"], %["#TEMP12"] \n\t" \ - "addu %[temp17], %["#TEMP4"], %["#TEMP8"] \n\t" \ - "subu %[temp18], %["#TEMP4"], %["#TEMP8"] \n\t" \ - "mul %["#TEMP8"], %[temp19], %[c2217] \n\t" \ - "mul %["#TEMP12"], %[temp18], %[c2217] \n\t" \ - "mul %["#TEMP4"], %[temp19], %[c5352] \n\t" \ + "addu %[temp16], %[" #TEMP0 "], %[" #TEMP12 "] \n\t" \ + "subu %[temp19], %[" #TEMP0 "], %[" #TEMP12 "] \n\t" \ + "addu %[temp17], %[" #TEMP4 "], %[" #TEMP8 "] \n\t" \ + "subu %[temp18], %[" #TEMP4 "], %[" #TEMP8 "] \n\t" \ + "mul %[" #TEMP8 "], %[temp19], %[c2217] \n\t" \ + "mul %[" #TEMP12 "], %[temp18], %[c2217] \n\t" \ + "mul %[" #TEMP4 "], %[temp19], %[c5352] \n\t" \ "mul %[temp18], %[temp18], %[c5352] \n\t" \ "addiu %[temp16], %[temp16], 7 \n\t" \ - "addu %["#TEMP0"], %[temp16], %[temp17] \n\t" \ - "sra %["#TEMP0"], %["#TEMP0"], 4 \n\t" \ - "addu %["#TEMP12"], %["#TEMP12"], %["#TEMP4"] \n\t" \ - "subu %["#TEMP4"], %[temp16], %[temp17] \n\t" \ - "sra %["#TEMP4"], %["#TEMP4"], 4 \n\t" \ - "addiu %["#TEMP8"], %["#TEMP8"], 30000 \n\t" \ - "addiu %["#TEMP12"], %["#TEMP12"], 12000 \n\t" \ - "addiu %["#TEMP8"], %["#TEMP8"], 21000 \n\t" \ - "subu %["#TEMP8"], %["#TEMP8"], %[temp18] \n\t" \ - "sra %["#TEMP12"], %["#TEMP12"], 16 \n\t" \ - "sra %["#TEMP8"], %["#TEMP8"], 16 \n\t" \ - "addiu %[temp16], %["#TEMP12"], 1 \n\t" \ - "movn %["#TEMP12"], %[temp16], %[temp19] \n\t" \ - "sh %["#TEMP0"], "#A"(%[temp20]) \n\t" \ - "sh %["#TEMP4"], "#C"(%[temp20]) \n\t" \ - "sh %["#TEMP8"], "#D"(%[temp20]) \n\t" \ - "sh %["#TEMP12"], "#B"(%[temp20]) \n\t" + "addu %[" #TEMP0 "], %[temp16], %[temp17] \n\t" \ + "sra %[" #TEMP0 "], %[" #TEMP0 "], 4 \n\t" \ + "addu %[" #TEMP12 "], %[" #TEMP12 "], %[" #TEMP4 "] \n\t" \ + "subu %[" #TEMP4 "], %[temp16], %[temp17] \n\t" \ + "sra %[" #TEMP4 "], %[" #TEMP4 "], 4 \n\t" \ + "addiu %[" #TEMP8 "], %[" #TEMP8 "], 30000 \n\t" \ + "addiu %[" #TEMP12 "], %[" #TEMP12 "], 12000 \n\t" \ + "addiu %[" #TEMP8 "], %[" #TEMP8 "], 21000 \n\t" \ + "subu %[" #TEMP8 "], %[" #TEMP8 "], %[temp18] \n\t" \ + "sra %[" #TEMP12 "], %[" #TEMP12 "], 16 \n\t" \ + "sra %[" #TEMP8 "], %[" #TEMP8 "], 16 \n\t" \ + "addiu %[temp16], %[" #TEMP12 "], 1 \n\t" \ + "movn %[" #TEMP12 "], %[temp16], %[temp19] \n\t" \ + "sh %[" #TEMP0 "], " #A "(%[temp20]) \n\t" \ + "sh %[" #TEMP4 "], " #C "(%[temp20]) \n\t" \ + "sh %[" #TEMP8 "], " #D "(%[temp20]) \n\t" \ + "sh %[" #TEMP12 "], " #B "(%[temp20]) \n\t" static void FTransform(const uint8_t* src, const uint8_t* ref, int16_t* out) { int temp0, temp1, temp2, temp3, temp4, temp5, temp6, temp7, temp8; @@ -516,14 +516,14 @@ static void FTransform(const uint8_t* src, const uint8_t* ref, int16_t* out) { #if !defined(WORK_AROUND_GCC) #define GET_SSE_INNER(A, B, C, D) \ - "lbu %[temp0], "#A"(%[a]) \n\t" \ - "lbu %[temp1], "#A"(%[b]) \n\t" \ - "lbu %[temp2], "#B"(%[a]) \n\t" \ - "lbu %[temp3], "#B"(%[b]) \n\t" \ - "lbu %[temp4], "#C"(%[a]) \n\t" \ - "lbu %[temp5], "#C"(%[b]) \n\t" \ - "lbu %[temp6], "#D"(%[a]) \n\t" \ - "lbu %[temp7], "#D"(%[b]) \n\t" \ + "lbu %[temp0], " #A "(%[a]) \n\t" \ + "lbu %[temp1], " #A "(%[b]) \n\t" \ + "lbu %[temp2], " #B "(%[a]) \n\t" \ + "lbu %[temp3], " #B "(%[b]) \n\t" \ + "lbu %[temp4], " #C "(%[a]) \n\t" \ + "lbu %[temp5], " #C "(%[b]) \n\t" \ + "lbu %[temp6], " #D "(%[a]) \n\t" \ + "lbu %[temp7], " #D "(%[b]) \n\t" \ "subu %[temp0], %[temp0], %[temp1] \n\t" \ "subu %[temp2], %[temp2], %[temp3] \n\t" \ "subu %[temp4], %[temp4], %[temp5] \n\t" \ diff --git a/Source/LibWebP/src/dsp/dsp.enc_mips_dsp_r2.c b/Source/LibWebP/src/dsp/dsp.enc_mips_dsp_r2.c index ec58efe..1a3f968 100644 --- a/Source/LibWebP/src/dsp/dsp.enc_mips_dsp_r2.c +++ b/Source/LibWebP/src/dsp/dsp.enc_mips_dsp_r2.c @@ -27,25 +27,25 @@ static const int kC2 = 35468; // I - input (macro doesn't change it) #define ADD_SUB_HALVES_X4(O0, O1, O2, O3, O4, O5, O6, O7, \ I0, I1, I2, I3, I4, I5, I6, I7) \ - "addq.ph %["#O0"], %["#I0"], %["#I1"] \n\t" \ - "subq.ph %["#O1"], %["#I0"], %["#I1"] \n\t" \ - "addq.ph %["#O2"], %["#I2"], %["#I3"] \n\t" \ - "subq.ph %["#O3"], %["#I2"], %["#I3"] \n\t" \ - "addq.ph %["#O4"], %["#I4"], %["#I5"] \n\t" \ - "subq.ph %["#O5"], %["#I4"], %["#I5"] \n\t" \ - "addq.ph %["#O6"], %["#I6"], %["#I7"] \n\t" \ - "subq.ph %["#O7"], %["#I6"], %["#I7"] \n\t" + "addq.ph %[" #O0 "], %[" #I0 "], %[" #I1 "] \n\t" \ + "subq.ph %[" #O1 "], %[" #I0 "], %[" #I1 "] \n\t" \ + "addq.ph %[" #O2 "], %[" #I2 "], %[" #I3 "] \n\t" \ + "subq.ph %[" #O3 "], %[" #I2 "], %[" #I3 "] \n\t" \ + "addq.ph %[" #O4 "], %[" #I4 "], %[" #I5 "] \n\t" \ + "subq.ph %[" #O5 "], %[" #I4 "], %[" #I5 "] \n\t" \ + "addq.ph %[" #O6 "], %[" #I6 "], %[" #I7 "] \n\t" \ + "subq.ph %[" #O7 "], %[" #I6 "], %[" #I7 "] \n\t" // IO - input/output #define ABS_X8(IO0, IO1, IO2, IO3, IO4, IO5, IO6, IO7) \ - "absq_s.ph %["#IO0"], %["#IO0"] \n\t" \ - "absq_s.ph %["#IO1"], %["#IO1"] \n\t" \ - "absq_s.ph %["#IO2"], %["#IO2"] \n\t" \ - "absq_s.ph %["#IO3"], %["#IO3"] \n\t" \ - "absq_s.ph %["#IO4"], %["#IO4"] \n\t" \ - "absq_s.ph %["#IO5"], %["#IO5"] \n\t" \ - "absq_s.ph %["#IO6"], %["#IO6"] \n\t" \ - "absq_s.ph %["#IO7"], %["#IO7"] \n\t" + "absq_s.ph %[" #IO0 "], %[" #IO0 "] \n\t" \ + "absq_s.ph %[" #IO1 "], %[" #IO1 "] \n\t" \ + "absq_s.ph %[" #IO2 "], %[" #IO2 "] \n\t" \ + "absq_s.ph %[" #IO3 "], %[" #IO3 "] \n\t" \ + "absq_s.ph %[" #IO4 "], %[" #IO4 "] \n\t" \ + "absq_s.ph %[" #IO5 "], %[" #IO5 "] \n\t" \ + "absq_s.ph %[" #IO6 "], %[" #IO6 "] \n\t" \ + "absq_s.ph %[" #IO7 "], %[" #IO7 "] \n\t" // dpa.w.ph $ac0 temp0 ,temp1 // $ac += temp0[31..16] * temp1[31..16] + temp0[15..0] * temp1[15..0] @@ -56,15 +56,15 @@ static const int kC2 = 35468; #define MUL_HALF(O0, I0, I1, I2, I3, I4, I5, I6, I7, \ I8, I9, I10, I11, I12, I13, I14, I15) \ "mult $ac0, $zero, $zero \n\t" \ - "dpa.w.ph $ac0, %["#I2"], %["#I0"] \n\t" \ - "dpax.w.ph $ac0, %["#I5"], %["#I6"] \n\t" \ - "dpa.w.ph $ac0, %["#I8"], %["#I9"] \n\t" \ - "dpax.w.ph $ac0, %["#I11"], %["#I4"] \n\t" \ - "dpa.w.ph $ac0, %["#I12"], %["#I7"] \n\t" \ - "dpax.w.ph $ac0, %["#I13"], %["#I1"] \n\t" \ - "dpa.w.ph $ac0, %["#I14"], %["#I3"] \n\t" \ - "dpax.w.ph $ac0, %["#I15"], %["#I10"] \n\t" \ - "mflo %["#O0"], $ac0 \n\t" + "dpa.w.ph $ac0, %[" #I2 "], %[" #I0 "] \n\t" \ + "dpax.w.ph $ac0, %[" #I5 "], %[" #I6 "] \n\t" \ + "dpa.w.ph $ac0, %[" #I8 "], %[" #I9 "] \n\t" \ + "dpax.w.ph $ac0, %[" #I11 "], %[" #I4 "] \n\t" \ + "dpa.w.ph $ac0, %[" #I12 "], %[" #I7 "] \n\t" \ + "dpax.w.ph $ac0, %[" #I13 "], %[" #I1 "] \n\t" \ + "dpa.w.ph $ac0, %[" #I14 "], %[" #I3 "] \n\t" \ + "dpax.w.ph $ac0, %[" #I15 "], %[" #I10 "] \n\t" \ + "mflo %[" #O0 "], $ac0 \n\t" #define OUTPUT_EARLY_CLOBBER_REGS_17() \ OUTPUT_EARLY_CLOBBER_REGS_10(), \ @@ -77,69 +77,69 @@ static const int kC2 = 35468; // A - offset in bytes to load from src and ref buffers // TEMP0..TEMP3 - registers for corresponding tmp elements #define HORIZONTAL_PASS(A, TEMP0, TEMP1, TEMP2, TEMP3) \ - "lw %["#TEMP0"], 0(%[args]) \n\t" \ - "lw %["#TEMP1"], 4(%[args]) \n\t" \ - "lw %["#TEMP2"], "XSTR(BPS)"*"#A"(%["#TEMP0"]) \n\t" \ - "lw %["#TEMP3"], "XSTR(BPS)"*"#A"(%["#TEMP1"]) \n\t" \ - "preceu.ph.qbl %["#TEMP0"], %["#TEMP2"] \n\t" \ - "preceu.ph.qbl %["#TEMP1"], %["#TEMP3"] \n\t" \ - "preceu.ph.qbr %["#TEMP2"], %["#TEMP2"] \n\t" \ - "preceu.ph.qbr %["#TEMP3"], %["#TEMP3"] \n\t" \ - "subq.ph %["#TEMP0"], %["#TEMP0"], %["#TEMP1"] \n\t" \ - "subq.ph %["#TEMP2"], %["#TEMP2"], %["#TEMP3"] \n\t" \ - "rotr %["#TEMP0"], %["#TEMP0"], 16 \n\t" \ - "addq.ph %["#TEMP1"], %["#TEMP2"], %["#TEMP0"] \n\t" \ - "subq.ph %["#TEMP3"], %["#TEMP2"], %["#TEMP0"] \n\t" \ - "seh %["#TEMP0"], %["#TEMP1"] \n\t" \ - "sra %[temp16], %["#TEMP1"], 16 \n\t" \ - "seh %[temp19], %["#TEMP3"] \n\t" \ - "sra %["#TEMP3"], %["#TEMP3"], 16 \n\t" \ - "subu %["#TEMP2"], %["#TEMP0"], %[temp16] \n\t" \ - "addu %["#TEMP0"], %["#TEMP0"], %[temp16] \n\t" \ + "lw %[" #TEMP0 "], 0(%[args]) \n\t" \ + "lw %[" #TEMP1 "], 4(%[args]) \n\t" \ + "lw %[" #TEMP2 "], "XSTR(BPS)"*" #A "(%[" #TEMP0 "]) \n\t" \ + "lw %[" #TEMP3 "], "XSTR(BPS)"*" #A "(%[" #TEMP1 "]) \n\t" \ + "preceu.ph.qbl %[" #TEMP0 "], %[" #TEMP2 "] \n\t" \ + "preceu.ph.qbl %[" #TEMP1 "], %[" #TEMP3 "] \n\t" \ + "preceu.ph.qbr %[" #TEMP2 "], %[" #TEMP2 "] \n\t" \ + "preceu.ph.qbr %[" #TEMP3 "], %[" #TEMP3 "] \n\t" \ + "subq.ph %[" #TEMP0 "], %[" #TEMP0 "], %[" #TEMP1 "] \n\t" \ + "subq.ph %[" #TEMP2 "], %[" #TEMP2 "], %[" #TEMP3 "] \n\t" \ + "rotr %[" #TEMP0 "], %[" #TEMP0 "], 16 \n\t" \ + "addq.ph %[" #TEMP1 "], %[" #TEMP2 "], %[" #TEMP0 "] \n\t" \ + "subq.ph %[" #TEMP3 "], %[" #TEMP2 "], %[" #TEMP0 "] \n\t" \ + "seh %[" #TEMP0 "], %[" #TEMP1 "] \n\t" \ + "sra %[temp16], %[" #TEMP1 "], 16 \n\t" \ + "seh %[temp19], %[" #TEMP3 "] \n\t" \ + "sra %[" #TEMP3 "], %[" #TEMP3 "], 16 \n\t" \ + "subu %[" #TEMP2 "], %[" #TEMP0 "], %[temp16] \n\t" \ + "addu %[" #TEMP0 "], %[" #TEMP0 "], %[temp16] \n\t" \ "mul %[temp17], %[temp19], %[c2217] \n\t" \ - "mul %[temp18], %["#TEMP3"], %[c5352] \n\t" \ - "mul %["#TEMP1"], %[temp19], %[c5352] \n\t" \ - "mul %[temp16], %["#TEMP3"], %[c2217] \n\t" \ - "sll %["#TEMP2"], %["#TEMP2"], 3 \n\t" \ - "sll %["#TEMP0"], %["#TEMP0"], 3 \n\t" \ - "subu %["#TEMP3"], %[temp17], %[temp18] \n\t" \ - "addu %["#TEMP1"], %[temp16], %["#TEMP1"] \n\t" \ - "addiu %["#TEMP3"], %["#TEMP3"], 937 \n\t" \ - "addiu %["#TEMP1"], %["#TEMP1"], 1812 \n\t" \ - "sra %["#TEMP3"], %["#TEMP3"], 9 \n\t" \ - "sra %["#TEMP1"], %["#TEMP1"], 9 \n\t" + "mul %[temp18], %[" #TEMP3 "], %[c5352] \n\t" \ + "mul %[" #TEMP1 "], %[temp19], %[c5352] \n\t" \ + "mul %[temp16], %[" #TEMP3 "], %[c2217] \n\t" \ + "sll %[" #TEMP2 "], %[" #TEMP2 "], 3 \n\t" \ + "sll %[" #TEMP0 "], %[" #TEMP0 "], 3 \n\t" \ + "subu %[" #TEMP3 "], %[temp17], %[temp18] \n\t" \ + "addu %[" #TEMP1 "], %[temp16], %[" #TEMP1 "] \n\t" \ + "addiu %[" #TEMP3 "], %[" #TEMP3 "], 937 \n\t" \ + "addiu %[" #TEMP1 "], %[" #TEMP1 "], 1812 \n\t" \ + "sra %[" #TEMP3 "], %[" #TEMP3 "], 9 \n\t" \ + "sra %[" #TEMP1 "], %[" #TEMP1 "], 9 \n\t" // macro for one vertical pass in FTransform // temp0..temp15 holds tmp[0]..tmp[15] // A..D - offsets in bytes to store to out buffer // TEMP0, TEMP4, TEMP8 and TEMP12 - registers for corresponding tmp elements #define VERTICAL_PASS(A, B, C, D, TEMP0, TEMP4, TEMP8, TEMP12) \ - "addu %[temp16], %["#TEMP0"], %["#TEMP12"] \n\t" \ - "subu %[temp19], %["#TEMP0"], %["#TEMP12"] \n\t" \ - "addu %[temp17], %["#TEMP4"], %["#TEMP8"] \n\t" \ - "subu %[temp18], %["#TEMP4"], %["#TEMP8"] \n\t" \ - "mul %["#TEMP8"], %[temp19], %[c2217] \n\t" \ - "mul %["#TEMP12"], %[temp18], %[c2217] \n\t" \ - "mul %["#TEMP4"], %[temp19], %[c5352] \n\t" \ + "addu %[temp16], %[" #TEMP0 "], %[" #TEMP12 "] \n\t" \ + "subu %[temp19], %[" #TEMP0 "], %[" #TEMP12 "] \n\t" \ + "addu %[temp17], %[" #TEMP4 "], %[" #TEMP8 "] \n\t" \ + "subu %[temp18], %[" #TEMP4 "], %[" #TEMP8 "] \n\t" \ + "mul %[" #TEMP8 "], %[temp19], %[c2217] \n\t" \ + "mul %[" #TEMP12 "], %[temp18], %[c2217] \n\t" \ + "mul %[" #TEMP4 "], %[temp19], %[c5352] \n\t" \ "mul %[temp18], %[temp18], %[c5352] \n\t" \ "addiu %[temp16], %[temp16], 7 \n\t" \ - "addu %["#TEMP0"], %[temp16], %[temp17] \n\t" \ - "sra %["#TEMP0"], %["#TEMP0"], 4 \n\t" \ - "addu %["#TEMP12"], %["#TEMP12"], %["#TEMP4"] \n\t" \ - "subu %["#TEMP4"], %[temp16], %[temp17] \n\t" \ - "sra %["#TEMP4"], %["#TEMP4"], 4 \n\t" \ - "addiu %["#TEMP8"], %["#TEMP8"], 30000 \n\t" \ - "addiu %["#TEMP12"], %["#TEMP12"], 12000 \n\t" \ - "addiu %["#TEMP8"], %["#TEMP8"], 21000 \n\t" \ - "subu %["#TEMP8"], %["#TEMP8"], %[temp18] \n\t" \ - "sra %["#TEMP12"], %["#TEMP12"], 16 \n\t" \ - "sra %["#TEMP8"], %["#TEMP8"], 16 \n\t" \ - "addiu %[temp16], %["#TEMP12"], 1 \n\t" \ - "movn %["#TEMP12"], %[temp16], %[temp19] \n\t" \ - "sh %["#TEMP0"], "#A"(%[temp20]) \n\t" \ - "sh %["#TEMP4"], "#C"(%[temp20]) \n\t" \ - "sh %["#TEMP8"], "#D"(%[temp20]) \n\t" \ - "sh %["#TEMP12"], "#B"(%[temp20]) \n\t" + "addu %[" #TEMP0 "], %[temp16], %[temp17] \n\t" \ + "sra %[" #TEMP0 "], %[" #TEMP0 "], 4 \n\t" \ + "addu %[" #TEMP12 "], %[" #TEMP12 "], %[" #TEMP4 "] \n\t" \ + "subu %[" #TEMP4 "], %[temp16], %[temp17] \n\t" \ + "sra %[" #TEMP4 "], %[" #TEMP4 "], 4 \n\t" \ + "addiu %[" #TEMP8 "], %[" #TEMP8 "], 30000 \n\t" \ + "addiu %[" #TEMP12 "], %[" #TEMP12 "], 12000 \n\t" \ + "addiu %[" #TEMP8 "], %[" #TEMP8 "], 21000 \n\t" \ + "subu %[" #TEMP8 "], %[" #TEMP8 "], %[temp18] \n\t" \ + "sra %[" #TEMP12 "], %[" #TEMP12 "], 16 \n\t" \ + "sra %[" #TEMP8 "], %[" #TEMP8 "], 16 \n\t" \ + "addiu %[temp16], %[" #TEMP12 "], 1 \n\t" \ + "movn %[" #TEMP12 "], %[temp16], %[temp19] \n\t" \ + "sh %[" #TEMP0 "], " #A "(%[temp20]) \n\t" \ + "sh %[" #TEMP4 "], " #C "(%[temp20]) \n\t" \ + "sh %[" #TEMP8 "], " #D "(%[temp20]) \n\t" \ + "sh %[" #TEMP12 "], " #B "(%[temp20]) \n\t" static void FTransform(const uint8_t* src, const uint8_t* ref, int16_t* out) { const int c2217 = 2217; @@ -329,11 +329,11 @@ static int Disto16x16(const uint8_t* const a, const uint8_t* const b, // Intra predictions #define FILL_PART(J, SIZE) \ - "usw %[value], 0+"#J"*"XSTR(BPS)"(%[dst]) \n\t" \ - "usw %[value], 4+"#J"*"XSTR(BPS)"(%[dst]) \n\t" \ - ".if "#SIZE" == 16 \n\t" \ - "usw %[value], 8+"#J"*"XSTR(BPS)"(%[dst]) \n\t" \ - "usw %[value], 12+"#J"*"XSTR(BPS)"(%[dst]) \n\t" \ + "usw %[value], 0+" #J "*"XSTR(BPS)"(%[dst]) \n\t" \ + "usw %[value], 4+" #J "*"XSTR(BPS)"(%[dst]) \n\t" \ + ".if " #SIZE " == 16 \n\t" \ + "usw %[value], 8+" #J "*"XSTR(BPS)"(%[dst]) \n\t" \ + "usw %[value], 12+" #J "*"XSTR(BPS)"(%[dst]) \n\t" \ ".endif \n\t" #define FILL_8_OR_16(DST, VALUE, SIZE) do { \ @@ -348,7 +348,7 @@ static int Disto16x16(const uint8_t* const a, const uint8_t* const b, FILL_PART( 5, SIZE) \ FILL_PART( 6, SIZE) \ FILL_PART( 7, SIZE) \ - ".if "#SIZE" == 16 \n\t" \ + ".if " #SIZE " == 16 \n\t" \ FILL_PART( 8, 16) \ FILL_PART( 9, 16) \ FILL_PART(10, 16) \ @@ -425,7 +425,7 @@ HORIZONTAL_PRED(dst, left, 16) CLIPPING() \ "usw %[temp0], 0(%[dst]) \n\t" \ "usw %[temp1], 4(%[dst]) \n\t" \ - ".if "#SIZE" == 16 \n\t" \ + ".if " #SIZE " == 16 \n\t" \ "ulw %[temp0], 8(%[top]) \n\t" \ "ulw %[temp1], 12(%[top]) \n\t" \ CLIPPING() \ @@ -1060,8 +1060,8 @@ static void Intra4Preds(uint8_t* dst, const uint8_t* top) { #if !defined(WORK_AROUND_GCC) #define GET_SSE_INNER(A) \ - "lw %[temp0], "#A"(%[a]) \n\t" \ - "lw %[temp1], "#A"(%[b]) \n\t" \ + "lw %[temp0], " #A "(%[a]) \n\t" \ + "lw %[temp1], " #A "(%[b]) \n\t" \ "preceu.ph.qbr %[temp2], %[temp0] \n\t" \ "preceu.ph.qbl %[temp0], %[temp0] \n\t" \ "preceu.ph.qbr %[temp3], %[temp1] \n\t" \ @@ -1185,28 +1185,28 @@ static int SSE4x4(const uint8_t* a, const uint8_t* b) { // N - offset in bytes (n * 2) // N1 - offset in bytes ((n + 1) * 2) #define QUANTIZE_ONE(J, K, N, N1) \ - "ulw %[temp1], "#J"(%[ppin]) \n\t" \ - "ulw %[temp2], "#J"(%[ppsharpen]) \n\t" \ - "lhu %[temp3], "#K"(%[ppzthresh]) \n\t" \ - "lhu %[temp6], "#K"+4(%[ppzthresh]) \n\t" \ + "ulw %[temp1], " #J "(%[ppin]) \n\t" \ + "ulw %[temp2], " #J "(%[ppsharpen]) \n\t" \ + "lhu %[temp3], " #K "(%[ppzthresh]) \n\t" \ + "lhu %[temp6], " #K "+4(%[ppzthresh]) \n\t" \ "absq_s.ph %[temp4], %[temp1] \n\t" \ "ins %[temp3], %[temp6], 16, 16 \n\t" \ "addu.ph %[coeff], %[temp4], %[temp2] \n\t" \ "shra.ph %[sign], %[temp1], 15 \n\t" \ "li %[level], 0x10001 \n\t" \ "cmp.lt.ph %[temp3], %[coeff] \n\t" \ - "lhu %[temp1], "#J"(%[ppiq]) \n\t" \ + "lhu %[temp1], " #J "(%[ppiq]) \n\t" \ "pick.ph %[temp5], %[level], $0 \n\t" \ - "lw %[temp2], "#K"(%[ppbias]) \n\t" \ + "lw %[temp2], " #K "(%[ppbias]) \n\t" \ "beqz %[temp5], 0f \n\t" \ - "lhu %[temp3], "#J"(%[ppq]) \n\t" \ + "lhu %[temp3], " #J "(%[ppq]) \n\t" \ "beq %[temp5], %[level], 1f \n\t" \ "andi %[temp5], %[temp5], 0x1 \n\t" \ "andi %[temp4], %[coeff], 0xffff \n\t" \ "beqz %[temp5], 2f \n\t" \ "mul %[level], %[temp4], %[temp1] \n\t" \ - "sh $0, "#J"+2(%[ppin]) \n\t" \ - "sh $0, "#N1"(%[pout]) \n\t" \ + "sh $0, " #J "+2(%[ppin]) \n\t" \ + "sh $0, " #N1 "(%[pout]) \n\t" \ "addu %[level], %[level], %[temp2] \n\t" \ "sra %[level], %[level], 17 \n\t" \ "slt %[temp4], %[max_level], %[level] \n\t" \ @@ -1216,15 +1216,15 @@ static int SSE4x4(const uint8_t* a, const uint8_t* b) { "subu %[level], %[level], %[temp6] \n\t" \ "mul %[temp5], %[level], %[temp3] \n\t" \ "or %[ret], %[ret], %[level] \n\t" \ - "sh %[level], "#N"(%[pout]) \n\t" \ - "sh %[temp5], "#J"(%[ppin]) \n\t" \ + "sh %[level], " #N "(%[pout]) \n\t" \ + "sh %[temp5], " #J "(%[ppin]) \n\t" \ "j 3f \n\t" \ "2: \n\t" \ - "lhu %[temp1], "#J"+2(%[ppiq]) \n\t" \ + "lhu %[temp1], " #J "+2(%[ppiq]) \n\t" \ "srl %[temp5], %[coeff], 16 \n\t" \ "mul %[level], %[temp5], %[temp1] \n\t" \ - "lw %[temp2], "#K"+4(%[ppbias]) \n\t" \ - "lhu %[temp3], "#J"+2(%[ppq]) \n\t" \ + "lw %[temp2], " #K "+4(%[ppbias]) \n\t" \ + "lhu %[temp3], " #J "+2(%[ppq]) \n\t" \ "addu %[level], %[level], %[temp2] \n\t" \ "sra %[level], %[level], 17 \n\t" \ "srl %[temp6], %[sign], 16 \n\t" \ @@ -1233,20 +1233,20 @@ static int SSE4x4(const uint8_t* a, const uint8_t* b) { "xor %[level], %[level], %[temp6] \n\t" \ "subu %[level], %[level], %[temp6] \n\t" \ "mul %[temp5], %[level], %[temp3] \n\t" \ - "sh $0, "#J"(%[ppin]) \n\t" \ - "sh $0, "#N"(%[pout]) \n\t" \ + "sh $0, " #J "(%[ppin]) \n\t" \ + "sh $0, " #N "(%[pout]) \n\t" \ "or %[ret], %[ret], %[level] \n\t" \ - "sh %[temp5], "#J"+2(%[ppin]) \n\t" \ - "sh %[level], "#N1"(%[pout]) \n\t" \ + "sh %[temp5], " #J "+2(%[ppin]) \n\t" \ + "sh %[level], " #N1 "(%[pout]) \n\t" \ "j 3f \n\t" \ "1: \n\t" \ - "lhu %[temp1], "#J"(%[ppiq]) \n\t" \ - "lw %[temp2], "#K"(%[ppbias]) \n\t" \ - "ulw %[temp3], "#J"(%[ppq]) \n\t" \ + "lhu %[temp1], " #J "(%[ppiq]) \n\t" \ + "lw %[temp2], " #K "(%[ppbias]) \n\t" \ + "ulw %[temp3], " #J "(%[ppq]) \n\t" \ "andi %[temp5], %[coeff], 0xffff \n\t" \ "srl %[temp0], %[coeff], 16 \n\t" \ - "lhu %[temp6], "#J"+2(%[ppiq]) \n\t" \ - "lw %[coeff], "#K"+4(%[ppbias]) \n\t" \ + "lhu %[temp6], " #J "+2(%[ppiq]) \n\t" \ + "lw %[coeff], " #K "+4(%[ppbias]) \n\t" \ "mul %[level], %[temp5], %[temp1] \n\t" \ "mul %[temp4], %[temp0], %[temp6] \n\t" \ "addu %[level], %[level], %[temp2] \n\t" \ @@ -1259,15 +1259,15 @@ static int SSE4x4(const uint8_t* a, const uint8_t* b) { "subu.ph %[level], %[level], %[sign] \n\t" \ "mul.ph %[temp3], %[level], %[temp3] \n\t" \ "or %[ret], %[ret], %[level] \n\t" \ - "sh %[level], "#N"(%[pout]) \n\t" \ + "sh %[level], " #N "(%[pout]) \n\t" \ "srl %[level], %[level], 16 \n\t" \ - "sh %[level], "#N1"(%[pout]) \n\t" \ - "usw %[temp3], "#J"(%[ppin]) \n\t" \ + "sh %[level], " #N1 "(%[pout]) \n\t" \ + "usw %[temp3], " #J "(%[ppin]) \n\t" \ "j 3f \n\t" \ "0: \n\t" \ - "sh $0, "#N"(%[pout]) \n\t" \ - "sh $0, "#N1"(%[pout]) \n\t" \ - "usw $0, "#J"(%[ppin]) \n\t" \ + "sh $0, " #N "(%[pout]) \n\t" \ + "sh $0, " #N1 "(%[pout]) \n\t" \ + "usw $0, " #J "(%[ppin]) \n\t" \ "3: \n\t" static int QuantizeBlock(int16_t in[16], int16_t out[16], @@ -1326,37 +1326,37 @@ static int Quantize2Blocks(int16_t in[32], int16_t out[32], // A, B, C, D - offset in bytes to load from in buffer // TEMP0, TEMP1 - registers for corresponding tmp elements #define HORIZONTAL_PASS_WHT(A, B, C, D, TEMP0, TEMP1) \ - "lh %["#TEMP0"], "#A"(%[in]) \n\t" \ - "lh %["#TEMP1"], "#B"(%[in]) \n\t" \ - "lh %[temp8], "#C"(%[in]) \n\t" \ - "lh %[temp9], "#D"(%[in]) \n\t" \ - "ins %["#TEMP1"], %["#TEMP0"], 16, 16 \n\t" \ + "lh %[" #TEMP0 "], " #A "(%[in]) \n\t" \ + "lh %[" #TEMP1 "], " #B "(%[in]) \n\t" \ + "lh %[temp8], " #C "(%[in]) \n\t" \ + "lh %[temp9], " #D "(%[in]) \n\t" \ + "ins %[" #TEMP1 "], %[" #TEMP0 "], 16, 16 \n\t" \ "ins %[temp9], %[temp8], 16, 16 \n\t" \ - "subq.ph %[temp8], %["#TEMP1"], %[temp9] \n\t" \ - "addq.ph %[temp9], %["#TEMP1"], %[temp9] \n\t" \ - "precrq.ph.w %["#TEMP0"], %[temp8], %[temp9] \n\t" \ + "subq.ph %[temp8], %[" #TEMP1 "], %[temp9] \n\t" \ + "addq.ph %[temp9], %[" #TEMP1 "], %[temp9] \n\t" \ + "precrq.ph.w %[" #TEMP0 "], %[temp8], %[temp9] \n\t" \ "append %[temp8], %[temp9], 16 \n\t" \ - "subq.ph %["#TEMP1"], %["#TEMP0"], %[temp8] \n\t" \ - "addq.ph %["#TEMP0"], %["#TEMP0"], %[temp8] \n\t" \ - "rotr %["#TEMP1"], %["#TEMP1"], 16 \n\t" + "subq.ph %[" #TEMP1 "], %[" #TEMP0 "], %[temp8] \n\t" \ + "addq.ph %[" #TEMP0 "], %[" #TEMP0 "], %[temp8] \n\t" \ + "rotr %[" #TEMP1 "], %[" #TEMP1 "], 16 \n\t" // macro for one vertical pass in FTransformWHT // temp0..temp7 holds tmp[0]..tmp[15] // A, B, C, D - offsets in bytes to store to out buffer // TEMP0, TEMP2, TEMP4 and TEMP6 - registers for corresponding tmp elements #define VERTICAL_PASS_WHT(A, B, C, D, TEMP0, TEMP2, TEMP4, TEMP6) \ - "addq.ph %[temp8], %["#TEMP0"], %["#TEMP4"] \n\t" \ - "addq.ph %[temp9], %["#TEMP2"], %["#TEMP6"] \n\t" \ - "subq.ph %["#TEMP2"], %["#TEMP2"], %["#TEMP6"] \n\t" \ - "subq.ph %["#TEMP6"], %["#TEMP0"], %["#TEMP4"] \n\t" \ - "addqh.ph %["#TEMP0"], %[temp8], %[temp9] \n\t" \ - "subqh.ph %["#TEMP4"], %["#TEMP6"], %["#TEMP2"] \n\t" \ - "addqh.ph %["#TEMP2"], %["#TEMP2"], %["#TEMP6"] \n\t" \ - "subqh.ph %["#TEMP6"], %[temp8], %[temp9] \n\t" \ - "usw %["#TEMP0"], "#A"(%[out]) \n\t" \ - "usw %["#TEMP2"], "#B"(%[out]) \n\t" \ - "usw %["#TEMP4"], "#C"(%[out]) \n\t" \ - "usw %["#TEMP6"], "#D"(%[out]) \n\t" + "addq.ph %[temp8], %[" #TEMP0 "], %[" #TEMP4 "] \n\t" \ + "addq.ph %[temp9], %[" #TEMP2 "], %[" #TEMP6 "] \n\t" \ + "subq.ph %[" #TEMP2 "], %[" #TEMP2 "], %[" #TEMP6 "] \n\t" \ + "subq.ph %[" #TEMP6 "], %[" #TEMP0 "], %[" #TEMP4 "] \n\t" \ + "addqh.ph %[" #TEMP0 "], %[temp8], %[temp9] \n\t" \ + "subqh.ph %[" #TEMP4 "], %[" #TEMP6 "], %[" #TEMP2 "] \n\t" \ + "addqh.ph %[" #TEMP2 "], %[" #TEMP2 "], %[" #TEMP6 "] \n\t" \ + "subqh.ph %[" #TEMP6 "], %[temp8], %[temp9] \n\t" \ + "usw %[" #TEMP0 "], " #A "(%[out]) \n\t" \ + "usw %[" #TEMP2 "], " #B "(%[out]) \n\t" \ + "usw %[" #TEMP4 "], " #C "(%[out]) \n\t" \ + "usw %[" #TEMP6 "], " #D "(%[out]) \n\t" static void FTransformWHT(const int16_t* in, int16_t* out) { int temp0, temp1, temp2, temp3, temp4; @@ -1385,10 +1385,10 @@ static void FTransformWHT(const int16_t* in, int16_t* out) { // convert 8 coeffs at time // A, B, C, D - offsets in bytes to load from out buffer #define CONVERT_COEFFS_TO_BIN(A, B, C, D) \ - "ulw %[temp0], "#A"(%[out]) \n\t" \ - "ulw %[temp1], "#B"(%[out]) \n\t" \ - "ulw %[temp2], "#C"(%[out]) \n\t" \ - "ulw %[temp3], "#D"(%[out]) \n\t" \ + "ulw %[temp0], " #A "(%[out]) \n\t" \ + "ulw %[temp1], " #B "(%[out]) \n\t" \ + "ulw %[temp2], " #C "(%[out]) \n\t" \ + "ulw %[temp3], " #D "(%[out]) \n\t" \ "absq_s.ph %[temp0], %[temp0] \n\t" \ "absq_s.ph %[temp1], %[temp1] \n\t" \ "absq_s.ph %[temp2], %[temp2] \n\t" \ diff --git a/Source/LibWebP/src/dsp/dsp.filters_mips_dsp_r2.c b/Source/LibWebP/src/dsp/dsp.filters_mips_dsp_r2.c index 6c34efb..6a1f8f4 100644 --- a/Source/LibWebP/src/dsp/dsp.filters_mips_dsp_r2.c +++ b/Source/LibWebP/src/dsp/dsp.filters_mips_dsp_r2.c @@ -48,7 +48,7 @@ "srl %[temp0], %[length], 0x2 \n\t" \ "beqz %[temp0], 4f \n\t" \ " andi %[temp6], %[length], 0x3 \n\t" \ - ".if "#INVERSE" \n\t" \ + ".if " #INVERSE " \n\t" \ "lbu %[temp1], -1(%[src]) \n\t" \ "1: \n\t" \ "lbu %[temp2], 0(%[src]) \n\t" \ @@ -84,7 +84,7 @@ "lbu %[temp1], -1(%[src]) \n\t" \ "lbu %[temp2], 0(%[src]) \n\t" \ "addiu %[src], %[src], 1 \n\t" \ - ".if "#INVERSE" \n\t" \ + ".if " #INVERSE " \n\t" \ "addu %[temp3], %[temp1], %[temp2] \n\t" \ "sb %[temp3], -1(%[src]) \n\t" \ ".else \n\t" \ @@ -131,7 +131,7 @@ static WEBP_INLINE void PredictLine(const uint8_t* src, uint8_t* dst, "ulw %[temp3], 4(%[src]) \n\t" \ "ulw %[temp4], 4(%[pred]) \n\t" \ "addiu %[src], %[src], 8 \n\t" \ - ".if "#INVERSE" \n\t" \ + ".if " #INVERSE " \n\t" \ "addu.qb %[temp5], %[temp1], %[temp2] \n\t" \ "addu.qb %[temp6], %[temp3], %[temp4] \n\t" \ ".else \n\t" \ @@ -152,7 +152,7 @@ static WEBP_INLINE void PredictLine(const uint8_t* src, uint8_t* dst, "lbu %[temp2], 0(%[pred]) \n\t" \ "addiu %[src], %[src], 1 \n\t" \ "addiu %[pred], %[pred], 1 \n\t" \ - ".if "#INVERSE" \n\t" \ + ".if " #INVERSE " \n\t" \ "addu %[temp3], %[temp1], %[temp2] \n\t" \ ".else \n\t" \ "subu %[temp3], %[temp1], %[temp2] \n\t" \ @@ -177,7 +177,7 @@ static WEBP_INLINE void PredictLine(const uint8_t* src, uint8_t* dst, __asm__ volatile ( \ "lbu %[temp1], 0(%[src]) \n\t" \ "lbu %[temp2], 0(%[pred]) \n\t" \ - ".if "#INVERSE" \n\t" \ + ".if " #INVERSE " \n\t" \ "addu %[temp3], %[temp1], %[temp2] \n\t" \ ".else \n\t" \ "subu %[temp3], %[temp1], %[temp2] \n\t" \ diff --git a/Source/LibWebP/src/dsp/dsp.lossless_mips32.c b/Source/LibWebP/src/dsp/dsp.lossless_mips32.c index 68fbe85..abe97c1 100644 --- a/Source/LibWebP/src/dsp/dsp.lossless_mips32.c +++ b/Source/LibWebP/src/dsp/dsp.lossless_mips32.c @@ -285,28 +285,28 @@ static VP8LStreaks HuffmanCostCombinedCount(const uint32_t* X, // literal_ and successive histograms could be unaligned // so we must use ulw and usw #define ADD_TO_OUT(A, B, C, D, E, P0, P1, P2) \ - "ulw %[temp0], "#A"(%["#P0"]) \n\t" \ - "ulw %[temp1], "#B"(%["#P0"]) \n\t" \ - "ulw %[temp2], "#C"(%["#P0"]) \n\t" \ - "ulw %[temp3], "#D"(%["#P0"]) \n\t" \ - "ulw %[temp4], "#A"(%["#P1"]) \n\t" \ - "ulw %[temp5], "#B"(%["#P1"]) \n\t" \ - "ulw %[temp6], "#C"(%["#P1"]) \n\t" \ - "ulw %[temp7], "#D"(%["#P1"]) \n\t" \ + "ulw %[temp0], " #A "(%[" #P0 "]) \n\t" \ + "ulw %[temp1], " #B "(%[" #P0 "]) \n\t" \ + "ulw %[temp2], " #C "(%[" #P0 "]) \n\t" \ + "ulw %[temp3], " #D "(%[" #P0 "]) \n\t" \ + "ulw %[temp4], " #A "(%[" #P1 "]) \n\t" \ + "ulw %[temp5], " #B "(%[" #P1 "]) \n\t" \ + "ulw %[temp6], " #C "(%[" #P1 "]) \n\t" \ + "ulw %[temp7], " #D "(%[" #P1 "]) \n\t" \ "addu %[temp4], %[temp4], %[temp0] \n\t" \ "addu %[temp5], %[temp5], %[temp1] \n\t" \ "addu %[temp6], %[temp6], %[temp2] \n\t" \ "addu %[temp7], %[temp7], %[temp3] \n\t" \ - "addiu %["#P0"], %["#P0"], 16 \n\t" \ - ".if "#E" == 1 \n\t" \ - "addiu %["#P1"], %["#P1"], 16 \n\t" \ + "addiu %[" #P0 "], %[" #P0 "], 16 \n\t" \ + ".if " #E " == 1 \n\t" \ + "addiu %[" #P1 "], %[" #P1 "], 16 \n\t" \ ".endif \n\t" \ - "usw %[temp4], "#A"(%["#P2"]) \n\t" \ - "usw %[temp5], "#B"(%["#P2"]) \n\t" \ - "usw %[temp6], "#C"(%["#P2"]) \n\t" \ - "usw %[temp7], "#D"(%["#P2"]) \n\t" \ - "addiu %["#P2"], %["#P2"], 16 \n\t" \ - "bne %["#P0"], %[LoopEnd], 1b \n\t" \ + "usw %[temp4], " #A "(%[" #P2 "]) \n\t" \ + "usw %[temp5], " #B "(%[" #P2 "]) \n\t" \ + "usw %[temp6], " #C "(%[" #P2 "]) \n\t" \ + "usw %[temp7], " #D "(%[" #P2 "]) \n\t" \ + "addiu %[" #P2 "], %[" #P2 "], 16 \n\t" \ + "bne %[" #P0 "], %[LoopEnd], 1b \n\t" \ ".set pop \n\t" \ #define ASM_END_COMMON_0 \ diff --git a/Source/LibWebP/src/dsp/dsp.lossless_mips_dsp_r2.c b/Source/LibWebP/src/dsp/dsp.lossless_mips_dsp_r2.c index 821cda9..31ac181 100644 --- a/Source/LibWebP/src/dsp/dsp.lossless_mips_dsp_r2.c +++ b/Source/LibWebP/src/dsp/dsp.lossless_mips_dsp_r2.c @@ -29,14 +29,14 @@ static void FUNC_NAME(const TYPE* src, \ for (x = 0; x < (width >> 2); ++x) { \ int tmp1, tmp2, tmp3, tmp4; \ __asm__ volatile ( \ - ".ifc "#TYPE", uint8_t \n\t" \ + ".ifc " #TYPE ", uint8_t \n\t" \ "lbu %[tmp1], 0(%[src]) \n\t" \ "lbu %[tmp2], 1(%[src]) \n\t" \ "lbu %[tmp3], 2(%[src]) \n\t" \ "lbu %[tmp4], 3(%[src]) \n\t" \ "addiu %[src], %[src], 4 \n\t" \ ".endif \n\t" \ - ".ifc "#TYPE", uint32_t \n\t" \ + ".ifc " #TYPE ", uint32_t \n\t" \ "lw %[tmp1], 0(%[src]) \n\t" \ "lw %[tmp2], 4(%[src]) \n\t" \ "lw %[tmp3], 8(%[src]) \n\t" \ @@ -55,7 +55,7 @@ static void FUNC_NAME(const TYPE* src, \ "lwx %[tmp2], %[tmp2](%[color_map]) \n\t" \ "lwx %[tmp3], %[tmp3](%[color_map]) \n\t" \ "lwx %[tmp4], %[tmp4](%[color_map]) \n\t" \ - ".ifc "#TYPE", uint8_t \n\t" \ + ".ifc " #TYPE ", uint8_t \n\t" \ "ext %[tmp1], %[tmp1], 8, 8 \n\t" \ "ext %[tmp2], %[tmp2], 8, 8 \n\t" \ "ext %[tmp3], %[tmp3], 8, 8 \n\t" \ @@ -66,7 +66,7 @@ static void FUNC_NAME(const TYPE* src, \ "sb %[tmp4], 3(%[dst]) \n\t" \ "addiu %[dst], %[dst], 4 \n\t" \ ".endif \n\t" \ - ".ifc "#TYPE", uint32_t \n\t" \ + ".ifc " #TYPE ", uint32_t \n\t" \ "sw %[tmp1], 0(%[dst]) \n\t" \ "sw %[tmp2], 4(%[dst]) \n\t" \ "sw %[tmp3], 8(%[dst]) \n\t" \ diff --git a/Source/LibWebP/src/dsp/dsp.upsampling_mips_dsp_r2.c b/Source/LibWebP/src/dsp/dsp.upsampling_mips_dsp_r2.c index a7864a0..cb3adfe 100644 --- a/Source/LibWebP/src/dsp/dsp.upsampling_mips_dsp_r2.c +++ b/Source/LibWebP/src/dsp/dsp.upsampling_mips_dsp_r2.c @@ -34,15 +34,15 @@ G = G - t2 + kGCst; \ B = B + kBCst; \ __asm__ volatile ( \ - "shll_s.w %["#R"], %["#R"], 9 \n\t" \ - "shll_s.w %["#G"], %["#G"], 9 \n\t" \ - "shll_s.w %["#B"], %["#B"], 9 \n\t" \ - "precrqu_s.qb.ph %["#R"], %["#R"], $zero \n\t" \ - "precrqu_s.qb.ph %["#G"], %["#G"], $zero \n\t" \ - "precrqu_s.qb.ph %["#B"], %["#B"], $zero \n\t" \ - "srl %["#R"], %["#R"], 24 \n\t" \ - "srl %["#G"], %["#G"], 24 \n\t" \ - "srl %["#B"], %["#B"], 24 \n\t" \ + "shll_s.w %[" #R "], %[" #R "], 9 \n\t" \ + "shll_s.w %[" #G "], %[" #G "], 9 \n\t" \ + "shll_s.w %[" #B "], %[" #B "], 9 \n\t" \ + "precrqu_s.qb.ph %[" #R "], %[" #R "], $zero \n\t" \ + "precrqu_s.qb.ph %[" #G "], %[" #G "], $zero \n\t" \ + "precrqu_s.qb.ph %[" #B "], %[" #B "], $zero \n\t" \ + "srl %[" #R "], %[" #R "], 24 \n\t" \ + "srl %[" #G "], %[" #G "], 24 \n\t" \ + "srl %[" #B "], %[" #B "], 24 \n\t" \ : [R]"+r"(R), [G]"+r"(G), [B]"+r"(B) \ : \ ); \ diff --git a/Source/LibWebP/src/dsp/dsp.yuv_mips_dsp_r2.c b/Source/LibWebP/src/dsp/dsp.yuv_mips_dsp_r2.c index 66adde5..51cbe9e 100644 --- a/Source/LibWebP/src/dsp/dsp.yuv_mips_dsp_r2.c +++ b/Source/LibWebP/src/dsp/dsp.yuv_mips_dsp_r2.c @@ -39,12 +39,12 @@ "addu %[temp5], %[temp0], %[temp1] \n\t" \ "subu %[temp6], %[temp0], %[temp2] \n\t" \ "addu %[temp7], %[temp0], %[temp4] \n\t" \ -".if "#K" \n\t" \ +".if " #K " \n\t" \ "lbu %[temp0], 1(%[y]) \n\t" \ ".endif \n\t" \ "shll_s.w %[temp5], %[temp5], 9 \n\t" \ "shll_s.w %[temp6], %[temp6], 9 \n\t" \ -".if "#K" \n\t" \ +".if " #K " \n\t" \ "mul %[temp0], %[t_con_5], %[temp0] \n\t" \ ".endif \n\t" \ "shll_s.w %[temp7], %[temp7], 9 \n\t" \ @@ -54,9 +54,9 @@ "srl %[temp5], %[temp5], 24 \n\t" \ "srl %[temp6], %[temp6], 24 \n\t" \ "srl %[temp7], %[temp7], 24 \n\t" \ - "sb %[temp5], "#R"(%[dst]) \n\t" \ - "sb %[temp6], "#G"(%[dst]) \n\t" \ - "sb %[temp7], "#B"(%[dst]) \n\t" \ + "sb %[temp5], " #R "(%[dst]) \n\t" \ + "sb %[temp6], " #G "(%[dst]) \n\t" \ + "sb %[temp7], " #B "(%[dst]) \n\t" \ #define ASM_CLOBBER_LIST() \ : [temp0]"=&r"(temp0), [temp1]"=&r"(temp1), [temp2]"=&r"(temp2), \ -- 2.1.4
shibajee/buildroot
package/libfreeimage/0003-LibWebP-fix-compilation-issue-with-GCC-5.x-C-11.patch
patch
mit
86,331
libraw/dc_raw: fix gcc-6 failures With gcc-6, it is no longer allowed to narrow the type of constants in a constant array declaration. Fixes: http://autobuild.buildroot.org/results/081/0811531872f69f9febbdc482dfbdd7fb5c35d1c8/build-end.log Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> diff -durN a/Source/LibRawLite/internal/dcraw_common.cpp b/Source/LibRawLite/internal/dcraw_common.cpp --- a/Source/LibRawLite/internal/dcraw_common.cpp +++ b/Source/LibRawLite/internal/dcraw_common.cpp @@ -2479,7 +2479,7 @@ void CLASS kodak_radc_load_raw() { - static const char src[] = { + static const signed char src[] = { 1,1, 2,3, 3,4, 4,2, 5,7, 6,5, 7,6, 7,8, 1,0, 2,1, 3,3, 4,4, 5,2, 6,7, 7,6, 8,5, 8,8, 2,1, 2,3, 3,0, 3,2, 3,4, 4,6, 5,5, 6,7, 6,8, @@ -4519,7 +4519,7 @@ */ void CLASS vng_interpolate() { - static const signed char *cp, terms[] = { + static const int *cp, terms[] = { -2,-2,+0,-1,0,0x01, -2,-2,+0,+0,1,0x01, -2,-1,-1,+0,0,0x01, -2,-1,+0,-1,0,0x02, -2,-1,+0,+0,0,0x03, -2,-1,+0,+1,1,0x01, -2,+0,+0,-1,0,0x06, -2,+0,+0,+0,1,0x02, -2,+0,+0,+1,0,0x03,
shibajee/buildroot
package/libfreeimage/0004-fix-gcc-6.patch
patch
mit
1,136
config BR2_PACKAGE_LIBFREEIMAGE bool "libfreeimage" depends on BR2_INSTALL_LIBSTDCPP depends on !BR2_STATIC_LIBS depends on BR2_USE_WCHAR # compiler issue: "Error: invalid register number `63'" depends on !BR2_arc # Numerous build issues depends on !BR2_bfin help FreeImage is an Open Source library project for developers who would like to support popular graphics image formats like PNG, BMP, JPEG, TIFF and others as needed by today's multimedia applications. http://freeimage.sourceforge.net comment "libfreeimage needs a toolchain w/ C++, dynamic library, wchar" depends on !BR2_arc depends on !BR2_bfin depends on BR2_STATIC_LIBS || !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR
shibajee/buildroot
package/libfreeimage/Config.in
in
mit
709
# Locally computed sha256 fbfc65e39b3d4e2cb108c4ffa8c41fd02c07d4d436c594fff8dab1a6d5297f89 FreeImage3170.zip
shibajee/buildroot
package/libfreeimage/libfreeimage.hash
hash
mit
109
################################################################################ # # libfreeimage # ################################################################################ LIBFREEIMAGE_VERSION = 3.17.0 LIBFREEIMAGE_SITE = http://downloads.sourceforge.net/freeimage LIBFREEIMAGE_SOURCE = FreeImage$(subst .,,$(LIBFREEIMAGE_VERSION)).zip LIBFREEIMAGE_LICENSE = GPLv2 or GPLv3 or FreeImage Public License LIBFREEIMAGE_LICENSE_FILES = license-gplv2.txt license-gplv3.txt license-fi.txt LIBFREEIMAGE_INSTALL_STAGING = YES define LIBFREEIMAGE_EXTRACT_CMDS $(UNZIP) $(DL_DIR)/$(LIBFREEIMAGE_SOURCE) -d $(@D) mv $(@D)/FreeImage/* $(@D) rmdir $(@D)/FreeImage endef define LIBFREEIMAGE_BUILD_CMDS $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) endef define LIBFREEIMAGE_INSTALL_STAGING_CMDS $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install endef define LIBFREEIMAGE_INSTALL_TARGET_CMDS $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install endef $(eval $(generic-package))
shibajee/buildroot
package/libfreeimage/libfreeimage.mk
mk
mit
991
config BR2_PACKAGE_LIBFRIBIDI bool "libfribidi" help GNU FriBidi is an implementation of the Unicode Bidirectional Algorithm (bidi). http://www.fribidi.org/
shibajee/buildroot
package/libfribidi/Config.in
in
mit
169
# From http://www.fribidi.org/download/fribidi-0.19.7.tar.bz2.sha256 sha256 08222a6212bbc2276a2d55c3bf370109ae4a35b689acbc66571ad2a670595a8e fribidi-0.19.7.tar.bz2
shibajee/buildroot
package/libfribidi/libfribidi.hash
hash
mit
164
################################################################################ # # libfribidi # ################################################################################ LIBFRIBIDI_VERSION = 0.19.7 LIBFRIBIDI_SOURCE = fribidi-$(LIBFRIBIDI_VERSION).tar.bz2 LIBFRIBIDI_SITE = http://www.fribidi.org/download LIBFRIBIDI_LICENSE = LGPLv2.1+ LIBFRIBIDI_LICENSE_FILES = COPYING LIBFRIBIDI_INSTALL_STAGING = YES # Ships a beta libtool version hence our patch doesn't apply. # Run autoreconf to regenerate ltmain.sh. LIBFRIBIDI_AUTORECONF = YES LIBFRIBIDI_DEPENDENCIES = host-pkgconf ifeq ($(BR2_PACKAGE_LIBGLIB2),y) LIBFRIBIDI_DEPENDENCIES += libglib2 else LIBFRIBIDI_CONF_OPTS += --with-glib=no endif $(eval $(autotools-package))
shibajee/buildroot
package/libfribidi/libfribidi.mk
mk
mit
736
--- configure.in | 35 +++++++++++------------------------ 1 file changed, 11 insertions(+), 24 deletions(-) --- a/configure.in +++ b/configure.in @@ -8,30 +8,17 @@ AM_PROG_LIBTOOL AC_PROG_CXX -dnl check for libusb-config -AC_CHECK_TOOL(HAVELIBUSB, libusb-config) - -if test ! -z "$HAVELIBUSB"; then - LIBUSB_CFLAGS=`$HAVELIBUSB --cflags` - LIBUSB_LIBS=`$HAVELIBUSB --libs` - - CFLAGS="$CFLAGS $LIBUSB_CFLAGS" - LIBS="$LIBS $LIBUSB_LIBS" -else - AC_MSG_ERROR([*** libusb-config not found. You need a working libusb installation.]) -fi - -dnl check for version of libusb -AC_MSG_CHECKING([if libusb version is >= 0.1.7]) -libusb_version_needed="1007" -libusb_version=`$HAVELIBUSB --version | sed -e "s/libusb //" | awk 'BEGIN { FS = "."; } { printf "%d", ($''1 * 1000 + $''2) * 1000 + $''3;}'` +dnl check for libusb +PKG_CHECK_MODULES(LIBUSB, libusb >= 0.1.11) +CFLAGS="$CFLAGS $LIBUSB_CFLAGS" +LIBS="$LIBS $LIBUSB_LIBS" -if test $libusb_version -lt $libusb_version_needed; then - AC_MSG_RESULT(no) - AC_MSG_ERROR([*** libusb is too old ($libusb_version). You need a libusb installation newer or equal to 0.1.7.]) -else - AC_MSG_RESULT(yes) -fi +dnl Check for recent pkg-config which supports Requires.private +case `$PKG_CONFIG --version` in +0.?|0.1[0-7]) PKGCONFIG_REQUIRES="Requires"; ;; +*) PKGCONFIG_REQUIRES="Requires.private"; ;; +esac +AC_SUBST(PKGCONFIG_REQUIRES) ENABLE_ASYNC_MODE=0 AC_ARG_WITH(async-mode,
shibajee/buildroot
package/libftdi/0001_pkgconfig_libusb.patch
patch
mit
1,447
From d3d6ca63cb86727533d7d83c98e70002bb04f343 Mon Sep 17 00:00:00 2001 From: Samuel Martin <s.martin49@gmail.com> Date: Wed, 21 Jan 2015 11:18:59 +0100 Subject: [PATCH] libftdi.pc: requires libusb (fix static build) --- libftdi.pc.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libftdi.pc.in b/libftdi.pc.in index 2061b91..57f0a09 100644 --- a/libftdi.pc.in +++ b/libftdi.pc.in @@ -5,8 +5,8 @@ includedir=@includedir@ Name: libftdi Description: Library to program and control the FTDI USB controller -Requires: +Requires: libusb Version: @VERSION@ -Libs: -L${libdir} -lftdi -lusb +Libs: -L${libdir} -lftdi Cflags: -I${includedir} -- 2.1.0
shibajee/buildroot
package/libftdi/0002-libftdi.pc-requires-libusb-fix-static-build.patch
patch
mit
679
config BR2_PACKAGE_LIBFTDI bool "libftdi" depends on BR2_TOOLCHAIN_HAS_THREADS # libusb select BR2_PACKAGE_LIBUSB select BR2_PACKAGE_LIBUSB_COMPAT help Userspace access to FTDI USB interface chips http://www.intra2net.com/en/developer/libftdi/index.php if BR2_PACKAGE_LIBFTDI config BR2_PACKAGE_LIBTFDI_CPP bool "C++ bindings" depends on BR2_INSTALL_LIBSTDCPP depends on BR2_USE_WCHAR select BR2_PACKAGE_BOOST help C++ bindings for libftdi comment "libftdi C++ bindings need a toolchain w/ wchar, C++" depends on !BR2_USE_WCHAR || !BR2_INSTALL_LIBSTDCPP endif # BR2_PACKAGE_LIBFTDI comment "libftdi needs a toolchain w/ threads" depends on !BR2_TOOLCHAIN_HAS_THREADS
shibajee/buildroot
package/libftdi/Config.in
in
mit
694
# Locally computed (after checking the signature from http://www.intra2net.com/en/developer/libftdi/download.php) sha256 3176d5b5986438f33f5208e690a8bfe90941be501cc0a72118ce3d338d4b838e libftdi-0.20.tar.gz
shibajee/buildroot
package/libftdi/libftdi.hash
hash
mit
208
################################################################################ # # libftdi # ################################################################################ LIBFTDI_VERSION = 0.20 LIBFTDI_SITE = http://www.intra2net.com/en/developer/libftdi/download LIBFTDI_DEPENDENCIES = libusb-compat libusb HOST_LIBFTDI_DEPENDENCIES = host-libusb-compat host-libusb LIBFTDI_INSTALL_STAGING = YES LIBFTDI_CONFIG_SCRIPTS = libftdi-config LIBFTDI_AUTORECONF = YES LIBFDTI_CONF_OPTS = --without-examples # configure detect it automaticaly so we need to force it ifeq ($(BR2_PACKAGE_LIBTFDI_CPP),y) LIBFTDI_DEPENDENCIES += boost LIBFDTI_CONF_OPTS += --enable-libftdipp else LIBFDTI_CONF_OPTS += --disable-libftdipp endif $(eval $(autotools-package)) $(eval $(host-autotools-package))
shibajee/buildroot
package/libftdi/libftdi.mk
mk
mit
789
From 7e57ff280b55b45e74329b9988279e8831d32eab Mon Sep 17 00:00:00 2001 From: Samuel Martin <s.martin49@gmail.com> Date: Sun, 25 Jan 2015 09:45:04 +0100 Subject: [PATCH 1/2] cmake: use the standard CMake flag to drive the shared object build Remove the STATICLIBS CMake option (and the code handling it) and let the standard CMake flags drive the shared object build. Signed-off-by: Samuel Martin <s.martin49@gmail.com> --- CMakeLists.txt | 2 -- ftdipp/CMakeLists.txt | 15 +-------------- src/CMakeLists.txt | 13 +------------ 3 files changed, 2 insertions(+), 28 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 74f80f4..0ba0b08 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,8 +46,6 @@ set(CPACK_COMPONENT_SHAREDLIBS_GROUP "Development") set(CPACK_COMPONENT_STATICLIBS_GROUP "Development") set(CPACK_COMPONENT_HEADERS_GROUP "Development") -option ( STATICLIBS "Build static libraries" ON ) - # guess LIB_SUFFIX, don't take debian multiarch into account if ( NOT DEFINED LIB_SUFFIX ) if( CMAKE_SYSTEM_NAME MATCHES "Linux" diff --git a/ftdipp/CMakeLists.txt b/ftdipp/CMakeLists.txt index 7500211..27e7884 100644 --- a/ftdipp/CMakeLists.txt +++ b/ftdipp/CMakeLists.txt @@ -23,8 +23,7 @@ if (FTDIPP) set(FTDI_BUILD_CPP True PARENT_SCOPE) message(STATUS "Building libftdi1++") - # Shared library - add_library(ftdipp1 SHARED ${cpp_sources}) + add_library(ftdipp1 ${cpp_sources}) math(EXPR VERSION_FIXUP "${MAJOR_VERSION} + 1") # Compatiblity with previous releases set_target_properties(ftdipp1 PROPERTIES VERSION ${VERSION_FIXUP}.${MINOR_VERSION}.0 SOVERSION 2) @@ -41,18 +40,6 @@ if (FTDIPP) LIBRARY DESTINATION lib${LIB_SUFFIX} ARCHIVE DESTINATION lib${LIB_SUFFIX} ) - - # Static library - if ( STATICLIBS ) - add_library(ftdipp1-static STATIC ${cpp_sources}) - set_target_properties(ftdipp1-static PROPERTIES OUTPUT_NAME "ftdipp1") - set_target_properties(ftdipp1-static PROPERTIES CLEAN_DIRECT_OUTPUT 1) - - install ( TARGETS ftdipp1-static - ARCHIVE DESTINATION lib${LIB_SUFFIX} - COMPONENT staticlibs - ) - endif () install ( FILES ${cpp_headers} DESTINATION include/${PROJECT_NAME} diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9fd86a6..501d4a8 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -21,7 +21,7 @@ configure_file(ftdi_version_i.h.in "${CMAKE_CURRENT_BINARY_DIR}/ftdi_version_i.h set(c_sources ${CMAKE_CURRENT_SOURCE_DIR}/ftdi.c ${CMAKE_CURRENT_SOURCE_DIR}/ftdi_stream.c CACHE INTERNAL "List of c sources" ) set(c_headers ${CMAKE_CURRENT_SOURCE_DIR}/ftdi.h CACHE INTERNAL "List of c headers" ) -add_library(ftdi1 SHARED ${c_sources}) +add_library(ftdi1 ${c_sources}) math(EXPR VERSION_FIXUP "${MAJOR_VERSION} + 1") # Compatiblity with previous releases set_target_properties(ftdi1 PROPERTIES VERSION ${VERSION_FIXUP}.${MINOR_VERSION}.0 SOVERSION 2) @@ -38,17 +38,6 @@ install ( TARGETS ftdi1 ARCHIVE DESTINATION lib${LIB_SUFFIX} ) -if ( STATICLIBS ) - add_library(ftdi1-static STATIC ${c_sources}) - target_link_libraries(ftdi1-static ${LIBUSB_LIBRARIES}) - set_target_properties(ftdi1-static PROPERTIES OUTPUT_NAME "ftdi1") - set_target_properties(ftdi1-static PROPERTIES CLEAN_DIRECT_OUTPUT 1) - install ( TARGETS ftdi1-static - ARCHIVE DESTINATION lib${LIB_SUFFIX} - COMPONENT staticlibs - ) -endif () - install ( FILES ${c_headers} DESTINATION include/${PROJECT_NAME} COMPONENT headers -- 2.2.2
shibajee/buildroot
package/libftdi1/0001-cmake-use-the-standard-CMake-flag-to-drive-the-share.patch
patch
mit
3,680
From 81275d75ae88fe8ab1915d3ba260ea935e63c362 Mon Sep 17 00:00:00 2001 From: Samuel Martin <s.martin49@gmail.com> Date: Sun, 25 Jan 2015 10:01:17 +0100 Subject: [PATCH 2/2] cmake: fix FindUSB1.cmake Make sure all ldflags are correctly set, especially for static build. Signed-off-by: Samuel Martin <s.martin49@gmail.com> --- cmake/FindUSB1.cmake | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cmake/FindUSB1.cmake b/cmake/FindUSB1.cmake index b90e297..e7f1b3c 100644 --- a/cmake/FindUSB1.cmake +++ b/cmake/FindUSB1.cmake @@ -26,8 +26,12 @@ else (LIBUSB_INCLUDE_DIR AND LIBUSB_LIBRARIES) PATH_SUFFIXES libusb-1.0 PATHS ${PC_LIBUSB_INCLUDEDIR} ${PC_LIBUSB_INCLUDE_DIRS}) - FIND_LIBRARY(LIBUSB_LIBRARIES NAMES usb-1.0 - PATHS ${PC_LIBUSB_LIBDIR} ${PC_LIBUSB_LIBRARY_DIRS}) + set(LIBUSB_LIBRARIES ${PC_LIBUSB_STATIC_LDFLAGS} ${PC_LIBUSB_STATIC_LDFLAGS_OTHER}) + foreach(libname ${PC_LIBUSB_STATIC_LIBRARIES}) + FIND_LIBRARY(lib NAMES ${libname} + PATHS ${PC_LIBUSB_LIBDIR} ${PC_LIBUSB_LIBRARY_DIRS}) + list(APPEND LIBUSB_LIBRARIES ${lib}) + endforeach() include(FindPackageHandleStandardArgs) FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBUSB DEFAULT_MSG LIBUSB_LIBRARIES LIBUSB_INCLUDE_DIR) -- 2.2.2
shibajee/buildroot
package/libftdi1/0002-cmake-fix-FindUSB1.cmake.patch
patch
mit
1,260
From c215d5ecd985b57700e817920d0e99112b4a571b Mon Sep 17 00:00:00 2001 From: Samuel Martin <s.martin49@gmail.com> Date: Sun, 25 Jan 2015 13:35:24 +0100 Subject: [PATCH] cmake: do not check for g++ when FTDIPP is disabled Signed-off-by: Samuel Martin <s.martin49@gmail.com> --- CMakeLists.txt | 6 ++++-- ftdipp/CMakeLists.txt | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0ba0b08..e880211 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ # Project -project(libftdi1) +project(libftdi1 C) set(MAJOR_VERSION 1) set(MINOR_VERSION 2) set(PACKAGE libftdi1) @@ -145,7 +145,9 @@ else(DOCUMENTATION AND DOXYGEN_FOUND) endif(DOCUMENTATION AND DOXYGEN_FOUND) add_subdirectory(src) -add_subdirectory(ftdipp) +if(FTDIPP) + add_subdirectory(ftdipp) +endif() add_subdirectory(python) add_subdirectory(ftdi_eeprom) add_subdirectory(examples) diff --git a/ftdipp/CMakeLists.txt b/ftdipp/CMakeLists.txt index 27e7884..2d080f4 100644 --- a/ftdipp/CMakeLists.txt +++ b/ftdipp/CMakeLists.txt @@ -1,4 +1,5 @@ # Check +project(libftdipp1 C CXX) set(FTDI_BUILD_CPP False PARENT_SCOPE) option ( FTDIPP "Build C++ binding library libftdi1++" ON ) -- 2.2.2
shibajee/buildroot
package/libftdi1/0003-cmake-do-not-check-for-g-when-FTDIPP-is-disabled.patch
patch
mit
1,237
config BR2_PACKAGE_LIBFTDI1 bool "libftdi1" select BR2_PACKAGE_LIBUSB depends on BR2_TOOLCHAIN_HAS_THREADS # libusb help Userspace access to FTDI USB interface chips (version 1.x) http://www.intra2net.com/en/developer/libftdi/index.php if BR2_PACKAGE_LIBFTDI1 config BR2_PACKAGE_LIBFTDI1_LIBFTDIPP1 bool "libftdipp1" select BR2_PACKAGE_BOOST depends on BR2_INSTALL_LIBSTDCPP # boost depends on BR2_TOOLCHAIN_HAS_THREADS # boost depends on BR2_USE_WCHAR # boost help C++ bindings for libftdi comment "libftdipp1 needs a toolchain w/ C++, wchar" depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR config BR2_PACKAGE_LIBFTDI1_PYTHON_BINDINGS bool "python bindings" depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3 help Python bindings for libftdi config BR2_PACKAGE_LIBFTDI1_FDTI_EEPROM select BR2_PACKAGE_LIBCONFUSE bool "ftdi_eeprom tool" endif # BR2_PACKAGE_LIBFTDI1 comment "libftdi1 needs a toolchain w/ threads" depends on !BR2_TOOLCHAIN_HAS_THREADS
shibajee/buildroot
package/libftdi1/Config.in
in
mit
995
# Locally computed (after checking the signature from http://www.intra2net.com/en/developer/libftdi/download.php) sha256 9a8c95c94bfbcf36584a0a58a6e2003d9b133213d9202b76aec76302ffaa81f4 libftdi1-1.3.tar.bz2
shibajee/buildroot
package/libftdi1/libftdi1.hash
hash
mit
209
################################################################################ # # libftdi1 # ################################################################################ LIBFTDI1_VERSION = 1.3 LIBFTDI1_SOURCE = libftdi1-$(LIBFTDI1_VERSION).tar.bz2 LIBFTDI1_SITE = http://www.intra2net.com/en/developer/libftdi/download LIBFTDI1_INSTALL_STAGING = YES LIBFTDI1_DEPENDENCIES = libusb LIBFTDI1_LICENSE = LGPLv2 (libftdi1), GPLv2 with exception (ftdipp1) LIBFTDI1_LICENSE_FILES = LICENSE COPYING.GPL COPYING.LIB LIBFTDI1_CONF_OPTS = -DDOCUMENTATION=OFF -DEXAMPLES=OFF ifeq ($(BR2_PACKAGE_LIBFTDI1_LIBFTDIPP1),y) LIBFTDI1_DEPENDENCIES += boost LIBFTDI1_CONF_OPTS += -DFTDIPP=ON else LIBFTDI1_CONF_OPTS += -DFTDIPP=OFF endif ifeq ($(BR2_PACKAGE_LIBFTDI1_PYTHON_BINDINGS),y) LIBFTDI1_DEPENDENCIES += $(if $(BR2_PACKAGE_PYTHON),python,python3) host-swig LIBFTDI1_CONF_OPTS += -DPYTHON_BINDINGS=ON else LIBFTDI1_CONF_OPTS += -DPYTHON_BINDINGS=OFF endif ifeq ($(BR2_PACKAGE_LIBFTDI1_FDTI_EEPROM),y) # ftdi_eeprom optionally depends on libintl, so make sure gettext is built # _before_ libfitdi1 when gettext is enbaled. LIBFTDI1_DEPENDENCIES += libconfuse $(if $(BR2_PACKAGE_GETTEXT),gettext) LIBFTDI1_CONF_OPTS += -DFTDI_EEPROM=ON else LIBFTDI1_CONF_OPTS += -DFTDI_EEPROM=OFF endif $(eval $(cmake-package))
shibajee/buildroot
package/libftdi1/libftdi1.mk
mk
mit
1,309
Fix build on the AArch64 platform Upstream-Status: Submitted Signed-off-by: Riku Voipio <riku.voipio@linaro.org> --- a/include/fuse_kernel.h +++ b/include/fuse_kernel.h @@ -88,12 +88,7 @@ #ifndef _LINUX_FUSE_H #define _LINUX_FUSE_H -#include <sys/types.h> -#define __u64 uint64_t -#define __s64 int64_t -#define __u32 uint32_t -#define __s32 int32_t -#define __u16 uint16_t +#include <linux/types.h> /* * Version negotiation:
shibajee/buildroot
package/libfuse/0001-fix-aarch64-build.patch
patch
mit
438
config BR2_PACKAGE_LIBFUSE bool "libfuse" # Really doesn't like static, see fuse/lib/fuse.c depends on !BR2_STATIC_LIBS depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_USE_MMU # fork() help FUSE (Filesystem in UserSpacE) https://github.com/libfuse/libfuse comment "libfuse needs a toolchain w/ threads, dynamic library" depends on BR2_USE_MMU depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
shibajee/buildroot
package/libfuse/Config.in
in
mit
420
# Locally calculated after checking pgp signature sha256 832432d1ad4f833c20e13b57cf40ce5277a9d33e483205fc63c78111b3358874 fuse-2.9.7.tar.gz
shibajee/buildroot
package/libfuse/libfuse.hash
hash
mit
140
################################################################################ # # libfuse # ################################################################################ LIBFUSE_VERSION = 2.9.7 LIBFUSE_SOURCE = fuse-$(LIBFUSE_VERSION).tar.gz LIBFUSE_SITE = https://github.com/libfuse/libfuse/releases/download/fuse-$(LIBFUSE_VERSION) LIBFUSE_LICENSE = GPLv2, LGPLv2.1 LIBFUSE_LICENSE_FILES = COPYING COPYING.LIB LIBFUSE_INSTALL_STAGING = YES LIBFUSE_DEPENDENCIES = $(if $(BR2_PACKAGE_LIBICONV),libiconv) LIBFUSE_CONF_OPTS = \ --disable-example \ --enable-lib \ --enable-util define LIBFUSE_INSTALL_TARGET_CMDS cp -dpf $(STAGING_DIR)/usr/bin/fusermount $(TARGET_DIR)/usr/bin/ cp -dpf $(STAGING_DIR)/usr/lib/libfuse.so* $(TARGET_DIR)/usr/lib/ endef $(eval $(autotools-package))
shibajee/buildroot
package/libfuse/libfuse.mk
mk
mit
790
config BR2_PACKAGE_LIBG7221 bool "libg7221" help libg722_1 is a library for the ITU G.722.1 and Annex C wideband speech codecs. http://www.soft-switch.org
shibajee/buildroot
package/libg7221/Config.in
in
mit
167
################################################################################ # # libg7221 # ################################################################################ LIBG7221_VERSION = dbfc29d4806ecdace50379a2f4d68a992a6fec34 # we use the FreeSwitch fork because it contains pkgconf support LIBG7221_SITE = https://freeswitch.org/stash/scm/sd/libg7221.git LIBG7221_SITE_METHOD = git LIBG7221_LICENSE = Polycom LIBG7221_LICENSE_FILES = COPYING LIBG7221_AUTORECONF = YES LIBG7221_INSTALL_STAGING = YES $(eval $(autotools-package))
shibajee/buildroot
package/libg7221/libg7221.mk
mk
mit
542
From cca72c48b5643fa62e1d55b7b181e147f5ba7fe9 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin <llandwerlin@gmail.com> Date: Sun, 28 Mar 2010 21:47:38 +0200 Subject: [PATCH] Relax X11 dependency Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com> --- configure.in | 4 +++- gail/gailwindow.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 3801655..abaf417 100644 --- a/configure.in +++ b/configure.in @@ -86,7 +86,9 @@ GTK_REQUIRED_VERSION=2.9.4 PKG_CHECK_MODULES(DEP, $ATK_PACKAGES >= $ATK_REQUIRED_VERSION \ $GTK_PACKAGES >= $GTK_REQUIRED_VERSION) -if test "$gail_native_win32" != "yes"; then +AC_ARG_ENABLE(x, [ --disable-x disable x11 backend ],x11_backend=no,x11_backend=yes) + +if test "$gail_native_win32" != "yes" -a "$x11_backend" != "no"; then PKG_CHECK_MODULES(X, x11, :, [ # pkg-config modules not found (only present since X11R7 aka Xorg); use diff --git a/gail/gailwindow.c b/gail/gailwindow.c index 616b25e..add454b 100644 --- a/gail/gailwindow.c +++ b/gail/gailwindow.c @@ -1071,7 +1071,7 @@ gail_window_get_mdi_zorder (AtkComponent *component) return get_window_zorder (widget->window); } -#elif defined (GDK_WINDOWING_WIN32) +#elif defined (GDK_WINDOWING_WIN32) || defined (GDK_WINDOWING_DIRECTFB) static gint gail_window_get_mdi_zorder (AtkComponent *component) -- 1.7.0.2
shibajee/buildroot
package/libgail/0001-Relax-X11-dependencies.patch
patch
mit
1,398
config BR2_PACKAGE_LIBGAIL bool "libgail" depends on BR2_USE_WCHAR # pango -> libglib2 depends on BR2_TOOLCHAIN_HAS_THREADS # pango -> libglib2 depends on BR2_USE_MMU # pango -> libglib2 depends on BR2_INSTALL_LIBSTDCPP # pango -> freetype depends on BR2_TOOLCHAIN_HAS_SYNC_4 # pango -> harfbuzz depends on BR2_PACKAGE_LIBGTK2 depends on BR2_DEPRECATED_SINCE_2015_08 select BR2_PACKAGE_PANGO help GAIL provides accessibility support for gtk+ and libgnomecanvas by implementing AtkObjects for widgets in gtk+ and libgnomecanvas. The GAIL library is a GTK+ module. For example, if the module is loaded in a program which calls gtk_widget_get_accessible() for a GtkEntry an instance of GailEntry is returned. This module is normally used with the atk-bridge GTK+ module from at-spi to allow an assistive technology, e.g a screenreader, to query or drive the program. http://developer.gnome.org/projects/gap comment "libgail needs a toolchain w/ C++, wchar, threads" depends on BR2_PACKAGE_LIBGTK2 depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS depends on BR2_USE_MMU depends on BR2_TOOLCHAIN_HAS_SYNC_4 depends on BR2_DEPRECATED_SINCE_2015_08
shibajee/buildroot
package/libgail/Config.in
in
mit
1,226
# From http://ftp.gnome.org/pub/gnome/sources/gail/1.22/gail-1.22.3.sha256sum sha256 03f03029277eb4f0e2c15a825fe716245d8647ede0435645475110289b059ae8 gail-1.22.3.tar.bz2
shibajee/buildroot
package/libgail/libgail.hash
hash
mit
170