code
string
repo_name
string
path
string
language
string
license
string
size
int64
configure.ac: Check for libsystemd, not libsystemd-daemon. Newer versions of systemd do not provide libsystemd-daemon anymore. Therefore, use libsystemd instead. Signed-off-by: Thomas Claveirole <thomas.claveirole@green-communications.fr> diff --git a/configure.ac b/configure.ac index bb3674e..2b02ef4 100644 --- a/configure.ac +++ b/configure.ac @@ -28,7 +28,7 @@ AC_ARG_WITH([systemd], [], [with_systemd=check]) have_systemd=no if test "x$with_systemd" != "xno"; then - PKG_CHECK_MODULES(systemd, [libsystemd-daemon], + PKG_CHECK_MODULES(systemd, [libsystemd], [AC_DEFINE(HAVE_SYSTEMD, 1, [Define if systemd is available]) have_systemd=yes], have_systemd=no)
shibajee/buildroot
package/fcgiwrap/0002-link-with-libsystemd-instead-of-libsystemd-daemon.patch
patch
mit
685
config BR2_PACKAGE_FCGIWRAP bool "fcgiwrap" depends on BR2_USE_MMU # libfcgi select BR2_PACKAGE_LIBFCGI help fcgiwrap is a simple server for running CGI applications over FastCGI. It hopes to provide clean CGI support to Nginx (and other web servers that may need it). https://github.com/gnosek/fcgiwrap
shibajee/buildroot
package/fcgiwrap/Config.in
in
mit
321
# Locally calculated sha256 c72f2933669ebd21605975c5a11f26b9739e32e4f9d324fb9e1a1925e9c2ae88 fcgiwrap-99c942c90063c73734e56bacaa65f947772d9186.tar.gz
shibajee/buildroot
package/fcgiwrap/fcgiwrap.hash
hash
mit
151
################################################################################ # # fcgiwrap # ################################################################################ FCGIWRAP_VERSION = 99c942c90063c73734e56bacaa65f947772d9186 FCGIWRAP_SITE = $(call github,gnosek,fcgiwrap,$(FCGIWRAP_VERSION)) FCGIWRAP_DEPENDENCIES = host-pkgconf libfcgi FCGIWRAP_LICENSE = MIT FCGIWRAP_LICENSE_FILES = COPYING FCGIWRAP_AUTORECONF = YES ifeq ($(BR2_PACKAGE_SYSTEMD),y) FCGIWRAP_DEPENDENCIES += systemd FCGIWRAP_CONF_OPTS += --with-systemd else FCGIWRAP_CONF_OPTS += --without-systemd endif # libfcgi needs libm and fcgiwrap does not use libtool or pkgconf to # detect libfcgi, so we need to add -lm explicitely when using static # libs. ifeq ($(BR2_STATIC_LIBS),y) FCGIWRAP_CONF_OPTS += LIBS=-lm endif # fcgiwrap uses Autoconf, but not Automake, so we need to provide # these to make. FCGIWRAP_MAKE_ENV = $(TARGET_CONFIGURE_OPTS) $(eval $(autotools-package))
shibajee/buildroot
package/fcgiwrap/fcgiwrap.mk
mk
mit
958
config BR2_PACKAGE_FCONFIG bool "fconfig" help fconfig - get/set RedBoot configuration parameters from Linux. http://andrzejekiert.ovh.org/software.html.en
shibajee/buildroot
package/fconfig/Config.in
in
mit
165
# Locally computed sha256 4ff0e8f07e35e46b705c0dbe9d9544ede01ea092a69e3f7db03e55a3f2bb8eb7 fconfig-20080329.tar.gz
shibajee/buildroot
package/fconfig/fconfig.hash
hash
mit
115
################################################################################ # # fconfig # ################################################################################ FCONFIG_VERSION = 20080329 # Real upstream location has been disabled # FCONFIG_SITE = http://andrzejekiert.ovh.org/software/fconfig FCONFIG_SITE = http://sources.buildroot.net FCONFIG_LICENSE = GPLv2+ FCONFIG_LICENSE_FILES = fconfig.c define FCONFIG_BUILD_CMDS $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) endef define FCONFIG_INSTALL_TARGET_CMDS $(INSTALL) -D -m 0755 $(@D)/fconfig $(TARGET_DIR)/sbin/fconfig endef $(eval $(generic-package))
shibajee/buildroot
package/fconfig/fconfig.mk
mk
mit
623
config BR2_PACKAGE_FDK_AAC bool "fdk-aac" depends on BR2_INSTALL_LIBSTDCPP # These are the architectures supported by FDK AAC depends on BR2_i386 || BR2_x86_64 || BR2_arm || BR2_armeb || \ BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el || \ BR2_powerpc || BR2_sh || BR2_sh64 help The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding scheme for digital audio http://sourceforge.net/projects/opencore-amr/files/fdk-aac/ comment "fdk-aac needs a toolchain w/ C++" depends on !BR2_INSTALL_LIBSTDCPP depends on BR2_i386 || BR2_x86_64 || BR2_arm || BR2_armeb || \ BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el || \ BR2_powerpc || BR2_sh || BR2_sh64
shibajee/buildroot
package/fdk-aac/Config.in
in
mit
801
# Locally computed: sha256 5910fe788677ca13532e3f47b7afaa01d72334d46a2d5e1d1f080f1173ff15ab fdk-aac-0.1.4.tar.gz
shibajee/buildroot
package/fdk-aac/fdk-aac.hash
hash
mit
115
################################################################################ # # fdk-aac # ################################################################################ FDK_AAC_VERSION = 0.1.4 FDK_AAC_SITE = http://downloads.sourceforge.net/project/opencore-amr/fdk-aac FDK_AAC_LICENSE = fdk-aac license FDK_AAC_LICENSE_FILES = NOTICE FDK_AAC_INSTALL_STAGING = YES # Not compatible with GCC 6 which defaults to GNU++14 FDK_AAC_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) -std=gnu++98" $(eval $(autotools-package))
shibajee/buildroot
package/fdk-aac/fdk-aac.mk
mk
mit
522
config BR2_PACKAGE_FEH bool "feh" depends on BR2_PACKAGE_XORG7 depends on BR2_USE_MMU # fork() select BR2_PACKAGE_XLIB_LIBXINERAMA select BR2_PACKAGE_XLIB_LIBXT select BR2_PACKAGE_IMLIB2 select BR2_PACKAGE_IMLIB2_PNG select BR2_PACKAGE_IMLIB2_JPEG select BR2_PACKAGE_IMLIB2_X select BR2_PACKAGE_LIBCURL help feh is an X11 image viewer aimed mostly at console users. http://feh.finalrewind.org/
shibajee/buildroot
package/feh/Config.in
in
mit
412
# Locally calculated after checking pgp signature sha256 6e55289a3be4495a437a0b037c7b5e86edf64ec74ab63d2d26fa50df1b62b6b3 feh-2.16.1.tar.bz2
shibajee/buildroot
package/feh/feh.hash
hash
mit
143
################################################################################ # # feh # ################################################################################ FEH_VERSION = 2.16.1 FEH_SOURCE = feh-$(FEH_VERSION).tar.bz2 FEH_SITE = http://feh.finalrewind.org FEH_DEPENDENCIES = libcurl imlib2 libpng xlib_libXinerama xlib_libXt FEH_LICENSE = MIT FEH_LICENSE_FILES = COPYING define FEH_BUILD_CMDS $(MAKE1) CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS)" \ -C $(@D) all endef define FEH_INSTALL_TARGET_CMDS $(MAKE1) CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) " \ PREFIX=/usr DESTDIR=$(TARGET_DIR) -C $(@D) install endef $(eval $(generic-package))
shibajee/buildroot
package/feh/feh.mk
mk
mit
681
Fix checking for statically build OpenSSL with libz dependency Fixes http://autobuild.buildroot.net/results/48a/48ad6d3659cf1f04581b7e3d115bebf454ff17fd/ configure: Enabling OpenSSL support in /home/br/br/output/host/usr/i486-buildroot-linux-uclibc/sysroot/usr. checking for additional library dependencies of SSL... error configure: error: cannot link with SSL - check config.log In config.log multiple linking errors to libz can be found: configure:10099: /home/br/br/output/host/usr/bin/i486-ctng-linux-uclibc-gcc -o conftest -D_LARGEFILE_SOURCE -D_LARGEFILE64 /home/br/br/output/host/usr/i486-buildroot-linux-uclibc/sysroot/usr/lib/libcrypto.a(c_zlib.o): In function `zlib_stateful_c_zlib.c:(.text+0x56): undefined reference to `inflate' Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> diff -uNr fetchmail-6.3.26.org/configure.ac fetchmail-6.3.26/configure.ac --- fetchmail-6.3.26.org/configure.ac 2013-04-23 22:51:10.000000000 +0200 +++ fetchmail-6.3.26/configure.ac 2014-07-27 09:20:25.000000000 +0200 @@ -778,7 +778,7 @@ AC_MSG_ERROR([SSL support enabled, but OpenSSL not found]) fi LDFLAGS="$LDFLAGS -L$with_ssl/lib" - LIBS="$LIBS -lssl -lcrypto" + LIBS="-lssl -lcrypto $LIBS" dnl check if -ldl is needed AC_MSG_CHECKING([for additional library dependencies of SSL]) found=0
shibajee/buildroot
package/fetchmail/0001-fix-openssl-static-link.patch
patch
mit
1,322
Fetched from upstream git and tweaked for the release: https://gitlab.com/fetchmail/fetchmail/commit/a2ae6f8d15d7caf815d7bdd13df833fd1b2af5cc Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> diff -Nura fetchmail-6.3.26.orig/config.h.in fetchmail-6.3.26/config.h.in --- fetchmail-6.3.26.orig/config.h.in 2015-12-30 10:44:33.467746835 -0300 +++ fetchmail-6.3.26/config.h.in 2015-12-30 10:45:50.271403589 -0300 @@ -53,6 +53,10 @@ if you don't. */ #undef HAVE_DECL_SSLV2_CLIENT_METHOD +/* Define to 1 if you have the declaration of `SSLv3_client_method', and to 0 + if you don't. */ +#undef HAVE_DECL_SSLV3_CLIENT_METHOD + /* Define to 1 if you have the declaration of `strerror', and to 0 if you don't. */ #undef HAVE_DECL_STRERROR diff -Nura fetchmail-6.3.26.orig/configure.ac fetchmail-6.3.26/configure.ac --- fetchmail-6.3.26.orig/configure.ac 2015-12-30 10:44:33.465746766 -0300 +++ fetchmail-6.3.26/configure.ac 2015-12-30 10:46:03.708868409 -0300 @@ -803,6 +803,7 @@ case "$LIBS" in *-lssl*) AC_CHECK_DECLS([SSLv2_client_method],,,[#include <openssl/ssl.h>]) + AC_CHECK_DECLS([SSLv3_client_method],,,[#include <openssl/ssl.h>]) ;; esac diff -Nura fetchmail-6.3.26.orig/fetchmail.c fetchmail-6.3.26/fetchmail.c --- fetchmail-6.3.26.orig/fetchmail.c 2015-12-30 10:44:33.469746904 -0300 +++ fetchmail-6.3.26/fetchmail.c 2015-12-30 10:46:03.708868409 -0300 @@ -263,6 +263,12 @@ #ifdef SSL_ENABLE "+SSL" #endif +#if HAVE_DECL_SSLV2_CLIENT_METHOD + 0 == 0 + "-SSLv2" +#endif +#if HAVE_DECL_SSLV3_CLIENT_METHOD + 0 == 0 + "-SSLv3" +#endif #ifdef OPIE_ENABLE "+OPIE" #endif /* OPIE_ENABLE */ diff -Nura fetchmail-6.3.26.orig/socket.c fetchmail-6.3.26/socket.c --- fetchmail-6.3.26.orig/socket.c 2015-12-30 10:44:33.464746731 -0300 +++ fetchmail-6.3.26/socket.c 2015-12-30 10:46:03.709868443 -0300 @@ -910,11 +910,16 @@ #if HAVE_DECL_SSLV2_CLIENT_METHOD + 0 > 0 _ctx[sock] = SSL_CTX_new(SSLv2_client_method()); #else - report(stderr, GT_("Your operating system does not support SSLv2.\n")); + report(stderr, GT_("Your OpenSSL version does not support SSLv2.\n")); return -1; #endif } else if(!strcasecmp("ssl3",myproto)) { +#if HAVE_DECL_SSLV3_CLIENT_METHOD + 0 > 0 _ctx[sock] = SSL_CTX_new(SSLv3_client_method()); +#else + report(stderr, GT_("Your OpenSSL version does not support SSLv3.\n")); + return -1; +#endif } else if(!strcasecmp("tls1",myproto)) { _ctx[sock] = SSL_CTX_new(TLSv1_client_method()); } else if (!strcasecmp("ssl23",myproto)) {
shibajee/buildroot
package/fetchmail/0002-enable-libressl.patch
patch
mit
2,523
config BR2_PACKAGE_FETCHMAIL bool "fetchmail" select BR2_PACKAGE_CA_CERTIFICATES select BR2_PACKAGE_OPENSSL select BR2_PACKAGE_ZLIB select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE depends on BR2_USE_MMU # fork() help Fetchmail - the mail-retrieval daemon Client daemon to move mail from POP and IMAP to your local computer http://www.fetchmail.info/
shibajee/buildroot
package/fetchmail/Config.in
in
mit
377
# Locally computed: sha256 79b4c54cdbaf02c1a9a691d9948fcb1a77a1591a813e904283a8b614b757e850 fetchmail-6.3.26.tar.xz
shibajee/buildroot
package/fetchmail/fetchmail.hash
hash
mit
118
################################################################################ # # fetchmail # ################################################################################ FETCHMAIL_VERSION_MAJOR = 6.3 FETCHMAIL_VERSION = $(FETCHMAIL_VERSION_MAJOR).26 FETCHMAIL_SOURCE = fetchmail-$(FETCHMAIL_VERSION).tar.xz FETCHMAIL_SITE = http://downloads.sourceforge.net/project/fetchmail/branch_$(FETCHMAIL_VERSION_MAJOR) FETCHMAIL_LICENSE = GPLv2; some exceptions are mentioned in COPYING FETCHMAIL_LICENSE_FILES = COPYING FETCHMAIL_AUTORECONF = YES FETCHMAIL_GETTEXTIZE = YES FETCHMAIL_CONF_ENV += LIBS="-lz" FETCHMAIL_CONF_OPTS = \ --with-ssl=$(STAGING_DIR)/usr FETCHMAIL_DEPENDENCIES = \ ca-certificates \ openssl \ $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) # fetchmailconf.py script is not (yet) python3-compliant. # Prevent the pyc-compilation with python-3 from failing by removing this # non-critical script. ifeq ($(BR2_PACKAGE_PYTHON3),y) define FETCHMAIL_REMOVE_FETCHMAILCONF_PY $(RM) -f $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages/fetchmailconf.py endef FETCHMAIL_POST_INSTALL_TARGET_HOOKS += FETCHMAIL_REMOVE_FETCHMAILCONF_PY endif $(eval $(autotools-package))
shibajee/buildroot
package/fetchmail/fetchmail.mk
mk
mit
1,206
From 74f1c9b43b191a9d6b494e90a4a11677fca33c13 Mon Sep 17 00:00:00 2001 From: Joakim Plate <elupus@ecce.se> Date: Sun, 11 Sep 2011 19:04:51 +0200 Subject: [PATCH 01/13] Support raw dvdsub palette as stored on normal dvd's This is how the palette is stored on dvd's. Currently only xbmc passes the palette information to libavcodec this way. Patch part of the XBMC patch set for ffmpeg, downloaded from https://github.com/xbmc/FFmpeg/. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- libavcodec/dvdsubdec.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/libavcodec/dvdsubdec.c b/libavcodec/dvdsubdec.c index 39604f3..a711e16 100644 --- a/libavcodec/dvdsubdec.c +++ b/libavcodec/dvdsubdec.c @@ -64,6 +64,24 @@ static void yuv_a_to_rgba(const uint8_t *ycbcr, const uint8_t *alpha, uint32_t * } } +static void ayvu_to_argb(const uint8_t *ayvu, uint32_t *argb, int num_values) +{ + uint8_t *cm = ff_crop_tab + MAX_NEG_CROP; + uint8_t r, g, b; + int i, y, cb, cr, a; + int r_add, g_add, b_add; + + for (i = num_values; i > 0; i--) { + a = *ayvu++; + y = *ayvu++; + cr = *ayvu++; + cb = *ayvu++; + YUV_TO_RGB1_CCIR(cb, cr); + YUV_TO_RGB2_CCIR(r, g, b, y); + *argb++ = (a << 24) | (r << 16) | (g << 8) | b; + } +} + static int decode_run_2bit(GetBitContext *gb, int *color) { unsigned int v, t; @@ -697,6 +715,12 @@ static av_cold int dvdsub_init(AVCodecContext *avctx) parse_ifo_palette(ctx, ctx->ifo_str); if (ctx->palette_str) parse_palette(ctx, ctx->palette_str); + + if (!ctx->has_palette && avctx->extradata_size == 64) { + ayvu_to_argb((uint8_t*)avctx->extradata, ctx->palette, 16); + ctx->has_palette = 1; + } + if (ctx->has_palette) { int i; av_log(avctx, AV_LOG_DEBUG, "palette:"); -- 2.1.0
shibajee/buildroot
package/ffmpeg/0001-Support-raw-dvdsub-palette-as-stored-on-normal-dvd-s.patch
patch
mit
1,956
From 54200b3e6009c6870e33c02c8bbcf023fcd92cac Mon Sep 17 00:00:00 2001 From: Cory Fields <theuni-nospam-@xbmc.org> Date: Mon, 28 Jun 2010 01:55:31 -0400 Subject: [PATCH 03/13] if av_read_packet returns AVERROR_IO, we are done. ffmpeg's codecs might or might not handle returning any completed demuxed packets correctly Patch part of the XBMC patch set for ffmpeg, downloaded from https://github.com/xbmc/FFmpeg/. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- libavformat/utils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/utils.c b/libavformat/utils.c index ae6347a..3e8af50 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1304,6 +1304,8 @@ static int read_frame_internal(AVFormatContext *s, AVPacket *pkt) if (ret < 0) { if (ret == AVERROR(EAGAIN)) return ret; + if (ret == AVERROR(EIO)) + return ret; /* flush the parsers */ for (i = 0; i < s->nb_streams; i++) { st = s->streams[i]; -- 2.1.0
shibajee/buildroot
package/ffmpeg/0003-if-av_read_packet-returns-AVERROR_IO-we-are-done.-ff.patch
patch
mit
1,128
From e9236f6fe3fae1ad4a3a2b6b63db493b083f0b21 Mon Sep 17 00:00:00 2001 From: Cory Fields <theuni-nospam-@xbmc.org> Date: Mon, 28 Jun 2010 02:10:50 -0400 Subject: [PATCH 04/13] added: Ticket #7187, TV Teletext support for DVB EBU Teletext streams Patch part of the XBMC patch set for ffmpeg, downloaded from https://github.com/xbmc/FFmpeg/. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- libavcodec/avcodec.h | 4 ++++ libavformat/mpegts.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index dabae1b..dd6ef3f 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -520,6 +520,10 @@ enum AVCodecID { AV_CODEC_ID_PJS = MKBETAG('P','h','J','S'), AV_CODEC_ID_ASS = MKBETAG('A','S','S',' '), ///< ASS as defined in Matroska + /* data codecs */ + AV_CODEC_ID_VBI_DATA= 0x17500, + AV_CODEC_ID_VBI_TELETEXT, + /* other specific kind of codecs (generally used for attachments) */ AV_CODEC_ID_FIRST_UNKNOWN = 0x18000, ///< A dummy ID pointing at the start of various fake codecs. AV_CODEC_ID_TTF = 0x18000, diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 97da0a3..5dd28f1 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -729,6 +729,8 @@ static const StreamType DESC_types[] = { { 0x7b, AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_DTS }, { 0x56, AVMEDIA_TYPE_SUBTITLE, AV_CODEC_ID_DVB_TELETEXT }, { 0x59, AVMEDIA_TYPE_SUBTITLE, AV_CODEC_ID_DVB_SUBTITLE }, /* subtitling descriptor */ + { 0x45, AVMEDIA_TYPE_DATA, AV_CODEC_ID_VBI_DATA }, /* VBI Data descriptor */ + { 0x46, AVMEDIA_TYPE_DATA, AV_CODEC_ID_VBI_TELETEXT }, /* VBI Teletext descriptor */ { 0 }, }; -- 2.1.0
shibajee/buildroot
package/ffmpeg/0004-added-Ticket-7187-TV-Teletext-support-for-DVB-EBU-Te.patch
patch
mit
1,838
From 1f48ee2290e9041b0371eb9a9cb742e9568930a1 Mon Sep 17 00:00:00 2001 From: Joakim Plate <elupus@ecce.se> Date: Sun, 18 Sep 2011 19:16:34 +0200 Subject: [PATCH 05/13] Don't accept mpegts PMT that isn't current Patch part of the XBMC patch set for ffmpeg, downloaded from https://github.com/xbmc/FFmpeg/. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- libavformat/mpegts.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 5dd28f1..9f85aed 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -572,6 +572,7 @@ typedef struct SectionHeader { uint8_t tid; uint16_t id; uint8_t version; + uint8_t current; uint8_t sec_num; uint8_t last_sec_num; } SectionHeader; @@ -643,6 +644,7 @@ static int parse_section_header(SectionHeader *h, val = get8(pp, p_end); if (val < 0) return val; + h->current = val & 0x1; h->version = (val >> 1) & 0x1f; val = get8(pp, p_end); if (val < 0) @@ -1968,6 +1970,8 @@ static void pat_cb(MpegTSFilter *filter, const uint8_t *section, int section_len return; if (ts->skip_changes) return; + if (!h->current) + return; ts->stream->ts_id = h->id; -- 2.1.0
shibajee/buildroot
package/ffmpeg/0005-Don-t-accept-mpegts-PMT-that-isn-t-current.patch
patch
mit
1,337
From db98fbe37f2f7175ff03b8d582e940518ddf3642 Mon Sep 17 00:00:00 2001 From: Joakim Plate <elupus@ecce.se> Date: Sun, 18 Sep 2011 19:17:23 +0200 Subject: [PATCH 06/13] Don't reparse PMT unless it's version has changed Patch part of the XBMC patch set for ffmpeg, downloaded from https://github.com/xbmc/FFmpeg/. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- libavformat/mpegts.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 9f85aed..25007a6 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -88,6 +88,7 @@ struct MpegTSFilter { int es_id; int last_cc; /* last cc code (-1 if first packet) */ int64_t last_pcr; + int last_version; /* last version of data on this pid */ enum MpegTSFilterType type; union { MpegTSPESFilter pes_filter; @@ -450,6 +451,7 @@ static MpegTSFilter *mpegts_open_filter(MpegTSContext *ts, unsigned int pid, filter->es_id = -1; filter->last_cc = -1; filter->last_pcr= -1; + filter->last_version = -1; return filter; } @@ -1972,6 +1974,10 @@ static void pat_cb(MpegTSFilter *filter, const uint8_t *section, int section_len return; if (!h->current) return; + if (h->version == filter->last_version) + return; + filter->last_version = h->version; + av_dlog(ts->stream, "version=%d\n", filter->last_version); ts->stream->ts_id = h->id; -- 2.1.0
shibajee/buildroot
package/ffmpeg/0006-Don-t-reparse-PMT-unless-it-s-version-has-changed.patch
patch
mit
1,539
From fdd8caea6535434a877587f5325e914ba50ed17f Mon Sep 17 00:00:00 2001 From: Cory Fields <theuni-nospam-@xbmc.org> Date: Fri, 9 Jul 2010 16:43:31 -0400 Subject: [PATCH 07/13] Read PID timestamps as well as PCR timestamps to find location in mpegts stream Patch part of the XBMC patch set for ffmpeg, downloaded from https://github.com/xbmc/FFmpeg/. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- libavformat/mpegts.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 25007a6..d5a8a45 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -2459,6 +2459,44 @@ static void seek_back(AVFormatContext *s, AVIOContext *pb, int64_t pos) { av_log(s, pb->seekable ? AV_LOG_ERROR : AV_LOG_INFO, "Unable to seek back to the start\n"); } +static int parse_timestamp(int64_t *ts, const uint8_t *buf) +{ + int afc, flags; + const uint8_t *p; + + if(!(buf[1] & 0x40)) /* must be a start packet */ + return -1; + + afc = (buf[3] >> 4) & 3; + p = buf + 4; + if (afc == 0 || afc == 2) /* invalid or only adaption field */ + return -1; + if (afc == 3) + p += p[0] + 1; + if (p >= buf + TS_PACKET_SIZE) + return -1; + + if (p[0] != 0x00 || p[1] != 0x00 || p[2] != 0x01) /* packet_start_code_prefix */ + return -1; + + flags = p[3] | 0x100; /* stream type */ + if (!((flags >= 0x1c0 && flags <= 0x1df) || + (flags >= 0x1e0 && flags <= 0x1ef) || + (flags == 0x1bd) || (flags == 0x1fd))) + return -1; + + flags = p[7]; + if ((flags & 0xc0) == 0x80) { + *ts = ff_parse_pes_pts(p+9); + return 0; + } else if ((flags & 0xc0) == 0xc0) { + *ts = ff_parse_pes_pts(p+9+5); + return 0; + } + return -1; +} + + static int mpegts_read_header(AVFormatContext *s) { MpegTSContext *ts = s->priv_data; @@ -2658,6 +2696,7 @@ static av_unused int64_t mpegts_get_pcr(AVFormatContext *s, int stream_index, uint8_t buf[TS_PACKET_SIZE]; int pcr_l, pcr_pid = ((PESContext *)s->streams[stream_index]->priv_data)->pcr_pid; + int pid = ((PESContext*)s->streams[stream_index]->priv_data)->pid; int pos47 = ts->pos47_full % ts->raw_packet_size; pos = ((*ppos + ts->raw_packet_size - 1 - pos47) / ts->raw_packet_size) * @@ -2679,6 +2718,11 @@ static av_unused int64_t mpegts_get_pcr(AVFormatContext *s, int stream_index, *ppos = pos; return timestamp; } + if ((pid < 0 || (AV_RB16(buf + 1) & 0x1fff) == pid) && + parse_timestamp(&timestamp, buf) == 0) { + *ppos = pos; + return timestamp; + } pos += ts->raw_packet_size; } @@ -2778,7 +2822,7 @@ AVInputFormat ff_mpegts_demuxer = { .read_header = mpegts_read_header, .read_packet = mpegts_read_packet, .read_close = mpegts_read_close, - .read_timestamp = mpegts_get_dts, + .read_timestamp = mpegts_get_pcr, .flags = AVFMT_SHOW_IDS | AVFMT_TS_DISCONT, .priv_class = &mpegts_class, }; @@ -2790,7 +2834,7 @@ AVInputFormat ff_mpegtsraw_demuxer = { .read_header = mpegts_read_header, .read_packet = mpegts_raw_read_packet, .read_close = mpegts_read_close, - .read_timestamp = mpegts_get_dts, + .read_timestamp = mpegts_get_pcr, .flags = AVFMT_SHOW_IDS | AVFMT_TS_DISCONT, .priv_class = &mpegtsraw_class, }; -- 2.1.0
shibajee/buildroot
package/ffmpeg/0007-Read-PID-timestamps-as-well-as-PCR-timestamps-to-fin.patch
patch
mit
3,629
From c57e5b8154f5fe1457f4c64e04885a2cdfb37f51 Mon Sep 17 00:00:00 2001 From: Joakim Plate <elupus@ecce.se> Date: Sat, 22 Oct 2011 19:01:38 +0200 Subject: [PATCH 08/13] Get stream durations using read_timestamp Patch part of the XBMC patch set for ffmpeg, downloaded from https://github.com/xbmc/FFmpeg/. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- libavformat/utils.c | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/libavformat/utils.c b/libavformat/utils.c index 3e8af50..f4fb172 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2356,6 +2356,41 @@ static void estimate_timings_from_bit_rate(AVFormatContext *ic) #define DURATION_MAX_READ_SIZE 250000LL #define DURATION_MAX_RETRY 4 +static void av_estimate_timings_from_pts2(AVFormatContext *ic, int64_t old_offset) +{ + AVStream *st; + int i, step= 1024; + int64_t ts, pos; + + for(i=0;i<ic->nb_streams;i++) { + st = ic->streams[i]; + + pos = 0; + ts = ic->iformat->read_timestamp(ic, i, &pos, DURATION_MAX_READ_SIZE); + if (ts == AV_NOPTS_VALUE) + continue; + if (st->start_time > ts || st->start_time == AV_NOPTS_VALUE) + st->start_time = ts; + + pos = avio_size(ic->pb) - 1; + do { + pos -= step; + ts = ic->iformat->read_timestamp(ic, i, &pos, pos + step); + step += step; + } while (ts == AV_NOPTS_VALUE && pos >= step && step < DURATION_MAX_READ_SIZE); + + if (ts == AV_NOPTS_VALUE) + continue; + + if (st->duration < ts - st->start_time || st->duration == AV_NOPTS_VALUE) + st->duration = ts - st->start_time; + } + + fill_all_stream_timings(ic); + + avio_seek(ic->pb, old_offset, SEEK_SET); +} + /* only usable for MPEG-PS streams */ static void estimate_timings_from_pts(AVFormatContext *ic, int64_t old_offset) { @@ -2506,6 +2541,10 @@ static void estimate_timings(AVFormatContext *ic, int64_t old_offset) * the components */ fill_all_stream_timings(ic); ic->duration_estimation_method = AVFMT_DURATION_FROM_STREAM; + } else if (ic->iformat->read_timestamp && + file_size && ic->pb->seekable) { + /* get accurate estimate from the PTSes */ + av_estimate_timings_from_pts2(ic, old_offset); } else { /* less precise: use bitrate info */ estimate_timings_from_bit_rate(ic); -- 2.1.0
shibajee/buildroot
package/ffmpeg/0008-Get-stream-durations-using-read_timestamp.patch
patch
mit
2,539
From 4bcec3ef0042244b0ade00d132368d0872f73c72 Mon Sep 17 00:00:00 2001 From: Joakim Plate <elupus@ecce.se> Date: Wed, 8 Dec 2010 14:03:43 +0000 Subject: [PATCH 09/13] changed: allow 4 second skew between streams in mov before attempting to seek Patch part of the XBMC patch set for ffmpeg, downloaded from https://github.com/xbmc/FFmpeg/. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- libavformat/mov.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index 8d66c0a..127ffd9 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -4028,8 +4028,8 @@ static AVIndexEntry *mov_find_next_sample(AVFormatContext *s, AVStream **st) if (!sample || (!s->pb->seekable && current_sample->pos < sample->pos) || (s->pb->seekable && ((msc->pb != s->pb && dts < best_dts) || (msc->pb == s->pb && - ((FFABS(best_dts - dts) <= AV_TIME_BASE && current_sample->pos < sample->pos) || - (FFABS(best_dts - dts) > AV_TIME_BASE && dts < best_dts)))))) { + ((FFABS(best_dts - dts) <= 4*AV_TIME_BASE && current_sample->pos < sample->pos) || + (FFABS(best_dts - dts) > 4*AV_TIME_BASE && dts < best_dts)))))) { sample = current_sample; best_dts = dts; *st = avst; -- 2.1.0
shibajee/buildroot
package/ffmpeg/0009-changed-allow-4-second-skew-between-streams-in-mov-b.patch
patch
mit
1,462
From cb7c19124165508ae5f38a385a14f9c13b096a27 Mon Sep 17 00:00:00 2001 From: Joakim Plate <elupus@ecce.se> Date: Fri, 26 Nov 2010 20:56:48 +0000 Subject: [PATCH 10/13] fixed: memleak in mpegts demuxer on some malformed (??) mpegts files with too large pes packets at-visions sample file brokenStream.mpg Patch part of the XBMC patch set for ffmpeg, downloaded from https://github.com/xbmc/FFmpeg/. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- libavformat/mpegts.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index d5a8a45..e070f1f 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -832,6 +832,10 @@ static void reset_pes_packet_state(PESContext *pes) static void new_pes_packet(PESContext *pes, AVPacket *pkt) { + if(pkt->data) { + av_log(pes->stream, AV_LOG_ERROR, "ignoring previously allocated packet on stream %d\n", pkt->stream_index); + av_free_packet(pkt); + } av_init_packet(pkt); pkt->buf = pes->buffer; @@ -2649,6 +2653,8 @@ static int mpegts_read_packet(AVFormatContext *s, AVPacket *pkt) pkt->size = -1; ts->pkt = pkt; + ts->pkt->data = NULL; + ret = handle_packets(ts, 0); if (ret < 0) { av_free_packet(ts->pkt); -- 2.1.0
shibajee/buildroot
package/ffmpeg/0010-fixed-memleak-in-mpegts-demuxer-on-some-malformed-mp.patch
patch
mit
1,363
From c315a758a292200c22925603682e259849d6d558 Mon Sep 17 00:00:00 2001 From: Joakim Plate <elupus@ecce.se> Date: Mon, 28 Jun 2010 21:26:54 +0000 Subject: [PATCH 11/13] Speed up mpegts av_find_stream_info Patch part of the XBMC patch set for ffmpeg, downloaded from https://github.com/xbmc/FFmpeg/. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- libavformat/mpegts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index e070f1f..dd9e129 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -994,7 +994,7 @@ static int mpegts_push_data(MpegTSFilter *filter, goto skip; /* stream not present in PMT */ - if (!pes->st) { + if (ts->auto_guess && !pes->st) { if (ts->skip_changes) goto skip; -- 2.1.0
shibajee/buildroot
package/ffmpeg/0011-Speed-up-mpegts-av_find_stream_info.patch
patch
mit
998
From 939ebbbc46ca9995637415594f1815633587104f Mon Sep 17 00:00:00 2001 From: marc <mhocking@ubuntu-desktop.(none)> Date: Mon, 18 Feb 2013 17:18:18 +0000 Subject: [PATCH 12/13] dxva-h264 Fix dxva playback of streams that don't start with an I-Frame. Patch part of the XBMC patch set for ffmpeg, downloaded from https://github.com/xbmc/FFmpeg/. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- libavcodec/dxva2_h264.c | 8 ++++++++ libavcodec/h264.c | 1 + libavcodec/h264.h | 2 ++ libavcodec/h264_slice.c | 1 + 4 files changed, 12 insertions(+) diff --git a/libavcodec/dxva2_h264.c b/libavcodec/dxva2_h264.c index 6deccc3..85b25fd 100644 --- a/libavcodec/dxva2_h264.c +++ b/libavcodec/dxva2_h264.c @@ -451,6 +451,14 @@ static int dxva2_h264_end_frame(AVCodecContext *avctx) if (ctx_pic->slice_count <= 0 || ctx_pic->bitstream_size <= 0) return -1; + + // Wait for an I-frame before start decoding. Workaround for ATI UVD and UVD+ GPUs + if (!h->got_first_iframe) { + if (!(ctx_pic->pp.wBitFields & (1 << 15))) + return -1; + h->got_first_iframe = 1; + } + ret = ff_dxva2_common_end_frame(avctx, h->cur_pic_ptr->f, &ctx_pic->pp, sizeof(ctx_pic->pp), &ctx_pic->qm, sizeof(ctx_pic->qm), diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 222bf58..ea2ec17 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -1085,6 +1085,7 @@ void ff_h264_flush_change(H264Context *h) h->mmco_reset = 1; for (i = 0; i < h->nb_slice_ctx; i++) h->slice_ctx[i].list_count = 0; + h->got_first_iframe = 0; } /* forget old pics after a seek */ diff --git a/libavcodec/h264.h b/libavcodec/h264.h index b94f06b..bc9458b 100644 --- a/libavcodec/h264.h +++ b/libavcodec/h264.h @@ -741,6 +741,8 @@ typedef struct H264Context { int luma_weight_flag[2]; ///< 7.4.3.2 luma_weight_lX_flag int chroma_weight_flag[2]; ///< 7.4.3.2 chroma_weight_lX_flag + int got_first_iframe; + // Timestamp stuff int sei_buffering_period_present; ///< Buffering period SEI flag int initial_cpb_removal_delay[32]; ///< Initial timestamps for CPBs diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index 53f61ca..b171d78 100644 --- a/libavcodec/h264_slice.c +++ b/libavcodec/h264_slice.c @@ -1189,6 +1189,7 @@ static int h264_slice_header_init(H264Context *h, int reinit) ff_h264_free_tables(h, 0); h->first_field = 0; h->prev_interlaced_frame = 1; + h->got_first_iframe = 0; init_scan_tables(h); ret = ff_h264_alloc_tables(h); -- 2.1.0
shibajee/buildroot
package/ffmpeg/0012-dxva-h264-Fix-dxva-playback-of-streams-that-don-t-st.patch
patch
mit
2,742
Fix bfin compile error See gcc bug report: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77311 Signed-off-by: Waldemar Brodkorb <wbx@openadk.org> diff -Nur ffmpeg-2.8.7.orig/libavcodec/hevcdsp_template.c ffmpeg-2.8.7/libavcodec/hevcdsp_template.c --- ffmpeg-2.8.7.orig/libavcodec/hevcdsp_template.c 2016-03-29 04:25:16.000000000 +0200 +++ ffmpeg-2.8.7/libavcodec/hevcdsp_template.c 2016-08-12 21:32:36.728178969 +0200 @@ -1517,7 +1517,14 @@ #define TQ2 pix[2 * xstride + 3 * ystride] #define TQ3 pix[3 * xstride + 3 * ystride] -static void FUNC(hevc_loop_filter_luma)(uint8_t *_pix, +// Blackfin gcc 6.1.x fails with +// unable to find a register to spill in class CCREGS +#if defined(__bfin__) +#define disable_opt __attribute__ ((optimize("O1"))) +#else +#define disable_opt +#endif +static void disable_opt FUNC(hevc_loop_filter_luma)(uint8_t *_pix, ptrdiff_t _xstride, ptrdiff_t _ystride, int beta, int *_tc, uint8_t *_no_p, uint8_t *_no_q)
shibajee/buildroot
package/ffmpeg/0013-bfin-disable-optimization.patch
patch
mit
1,077
config BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS bool # fenv.h lacks FE_INVALID, FE_OVERFLOW & FE_UNDERFLOW on nios2 # ffmpeg's configure script only supports mips64 (r1) variant # No support for ARMv7-M in the ARM assembly logic default y if !BR2_nios2 && !BR2_mips_64r2 && !BR2_mips_64r6 && \ !BR2_ARM_CPU_ARMV7M menuconfig BR2_PACKAGE_FFMPEG bool "ffmpeg" depends on BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS help FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. http://www.ffmpeg.org if BR2_PACKAGE_FFMPEG config BR2_PACKAGE_FFMPEG_GPL bool "Enable GPL code" help allow use of GPL code, the resulting libs and binaries will be under GPL config BR2_PACKAGE_FFMPEG_NONFREE bool "Enable nonfree code" help allow use of nonfree code, the resulting libs and binaries will be unredistributable config BR2_PACKAGE_FFMPEG_FFMPEG bool "Build ffmpeg (the command line application)" default y help FFmpeg is a very fast video and audio converter. It can also grab from a live audio/video source. It is not needed if you want to link the FFmpeg libraries to your application. config BR2_PACKAGE_FFMPEG_FFPLAY bool "Build ffplay" select BR2_PACKAGE_FFMPEG_SWSCALE select BR2_PACKAGE_SDL help FFplay is a very simple and portable media player using the FFmpeg libraries and the SDL library. It is mostly used as a testbed for the various FFmpeg APIs. config BR2_PACKAGE_FFMPEG_FFSERVER bool "Build ffserver" depends on BR2_USE_MMU # fork() help FFserver is a streaming server for both audio and video. config BR2_PACKAGE_FFMPEG_FFPROBE bool "Build ffprobe" help FFprobe is a utility to determine the audio and video characteristics of a container file. config BR2_PACKAGE_FFMPEG_AVRESAMPLE bool "Build libavresample" help Avresample is a audio conversion library for compatibility. config BR2_PACKAGE_FFMPEG_POSTPROC bool "Build libpostproc" depends on BR2_PACKAGE_FFMPEG_GPL help Postproc is a library of video postprocessing routines. config BR2_PACKAGE_FFMPEG_SWSCALE bool "Build libswscale" help Swscale is a library of video scaling routines. config BR2_PACKAGE_FFMPEG_ENCODERS string "Enabled encoders" default "all" help Space-separated list of encoders to build in FFmpeg, or "all" to build all of them. Run ./configure --list-encoders in the ffmpeg sources directory to know the available options. config BR2_PACKAGE_FFMPEG_DECODERS string "Enabled decoders" default "all" help Space-separated list of decoders to build in FFmpeg, or "all" to build all of them. Run ./configure --list-decoders in the ffmpeg sources directory to know the available options. config BR2_PACKAGE_FFMPEG_MUXERS string "Enabled muxers" default "all" help Space-separated list of muxers to build in FFmpeg, or "all" to build all of them. Run ./configure --list-muxers in the ffmpeg sources directory to know the available options. config BR2_PACKAGE_FFMPEG_DEMUXERS string "Enabled demuxers" default "all" help Space-separated list of demuxers to build in FFmpeg, or "all" to build all of them. Run ./configure --list-demuxers in the ffmpeg sources directory to know the available options. config BR2_PACKAGE_FFMPEG_PARSERS string "Enabled parsers" default "all" help Space-separated list of parsers to build in FFmpeg, or "all" to build all of them. Run ./configure --list-parsers in the ffmpeg sources directory to know the available options. config BR2_PACKAGE_FFMPEG_BSFS string "Enabled bitstreams" default "all" help Space-separated list of bitstream filters to build in FFmpeg, or "all" to build all of them. Run ./configure --list-bsfs in the ffmpeg sources directory to know the available options. config BR2_PACKAGE_FFMPEG_PROTOCOLS string "Enabled protocols" default "all" help Space-separated list of protocols to build in FFmpeg, or "all" to build all of them. Run ./configure --list-protocols in the ffmpeg sources directory to know the available options. config BR2_PACKAGE_FFMPEG_FILTERS string "Enabled filters" default "all" help Space-separated list of filters to build in FFmpeg, or "all" to build all of them. Run ./configure --list-filters in the ffmpeg sources directory to know the available options. config BR2_PACKAGE_FFMPEG_INDEVS bool "Enable input devices" default y config BR2_PACKAGE_FFMPEG_OUTDEVS bool "Enable output devices" default y config BR2_PACKAGE_FFMPEG_EXTRACONF string "Additional parameters for ./configure" default "" help Extra parameters that will be appended to FFmpeg's ./configure commandline. endif
shibajee/buildroot
package/ffmpeg/Config.in
in
mit
4,711
# Locally calculated sha256 97be8a6c1cab2c52015544f76d40f6fd0babcb1b40cf601b4e57fb818564157c ffmpeg-2.8.7.tar.xz
shibajee/buildroot
package/ffmpeg/ffmpeg.hash
hash
mit
113
################################################################################ # # ffmpeg # ################################################################################ FFMPEG_VERSION = 2.8.7 FFMPEG_SOURCE = ffmpeg-$(FFMPEG_VERSION).tar.xz FFMPEG_SITE = http://ffmpeg.org/releases FFMPEG_INSTALL_STAGING = YES FFMPEG_LICENSE = LGPLv2.1+, libjpeg license FFMPEG_LICENSE_FILES = LICENSE.md COPYING.LGPLv2.1 ifeq ($(BR2_PACKAGE_FFMPEG_GPL),y) FFMPEG_LICENSE += and GPLv2+ FFMPEG_LICENSE_FILES += COPYING.GPLv2 endif FFMPEG_CONF_OPTS = \ --prefix=/usr \ --enable-avfilter \ --disable-version3 \ --enable-logging \ --enable-optimizations \ --disable-extra-warnings \ --enable-avdevice \ --enable-avcodec \ --enable-avformat \ --disable-x11grab \ --enable-network \ --disable-gray \ --enable-swscale-alpha \ --disable-small \ --enable-dct \ --enable-fft \ --enable-mdct \ --enable-rdft \ --disable-crystalhd \ --disable-dxva2 \ --enable-runtime-cpudetect \ --disable-hardcoded-tables \ --disable-memalign-hack \ --disable-mipsdspr1 \ --disable-mipsdspr2 \ --disable-msa \ --enable-hwaccels \ --disable-avisynth \ --disable-frei0r \ --disable-libopencore-amrnb \ --disable-libopencore-amrwb \ --disable-libopencv \ --disable-libcdio \ --disable-libdc1394 \ --disable-libfaac \ --disable-libgsm \ --disable-libilbc \ --disable-libnut \ --disable-libopenjpeg \ --disable-libschroedinger \ --disable-libvo-aacenc \ --disable-libvo-amrwbenc \ --disable-symver \ --disable-doc FFMPEG_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBICONV),libiconv) host-pkgconf ifeq ($(BR2_PACKAGE_FFMPEG_GPL),y) FFMPEG_CONF_OPTS += --enable-gpl else FFMPEG_CONF_OPTS += --disable-gpl endif ifeq ($(BR2_PACKAGE_FFMPEG_NONFREE),y) FFMPEG_CONF_OPTS += --enable-nonfree else FFMPEG_CONF_OPTS += --disable-nonfree endif ifeq ($(BR2_PACKAGE_FFMPEG_FFMPEG),y) FFMPEG_CONF_OPTS += --enable-ffmpeg else FFMPEG_CONF_OPTS += --disable-ffmpeg endif ifeq ($(BR2_PACKAGE_FFMPEG_FFPLAY),y) FFMPEG_DEPENDENCIES += sdl FFMPEG_CONF_OPTS += --enable-ffplay FFMPEG_CONF_ENV += SDL_CONFIG=$(STAGING_DIR)/usr/bin/sdl-config else FFMPEG_CONF_OPTS += --disable-ffplay endif ifeq ($(BR2_PACKAGE_FFMPEG_FFSERVER),y) FFMPEG_CONF_OPTS += --enable-ffserver else FFMPEG_CONF_OPTS += --disable-ffserver endif ifeq ($(BR2_PACKAGE_FFMPEG_AVRESAMPLE),y) FFMPEG_CONF_OPTS += --enable-avresample else FFMPEG_CONF_OPTS += --disable-avresample endif ifeq ($(BR2_PACKAGE_FFMPEG_FFPROBE),y) FFMPEG_CONF_OPTS += --enable-ffprobe else FFMPEG_CONF_OPTS += --disable-ffprobe endif ifeq ($(BR2_PACKAGE_FFMPEG_POSTPROC),y) FFMPEG_CONF_OPTS += --enable-postproc else FFMPEG_CONF_OPTS += --disable-postproc endif ifeq ($(BR2_PACKAGE_FFMPEG_SWSCALE),y) FFMPEG_CONF_OPTS += --enable-swscale else FFMPEG_CONF_OPTS += --disable-swscale endif ifneq ($(call qstrip,$(BR2_PACKAGE_FFMPEG_ENCODERS)),all) FFMPEG_CONF_OPTS += --disable-encoders \ $(foreach x,$(call qstrip,$(BR2_PACKAGE_FFMPEG_ENCODERS)),--enable-encoder=$(x)) endif ifneq ($(call qstrip,$(BR2_PACKAGE_FFMPEG_DECODERS)),all) FFMPEG_CONF_OPTS += --disable-decoders \ $(foreach x,$(call qstrip,$(BR2_PACKAGE_FFMPEG_DECODERS)),--enable-decoder=$(x)) endif ifneq ($(call qstrip,$(BR2_PACKAGE_FFMPEG_MUXERS)),all) FFMPEG_CONF_OPTS += --disable-muxers \ $(foreach x,$(call qstrip,$(BR2_PACKAGE_FFMPEG_MUXERS)),--enable-muxer=$(x)) endif ifneq ($(call qstrip,$(BR2_PACKAGE_FFMPEG_DEMUXERS)),all) FFMPEG_CONF_OPTS += --disable-demuxers \ $(foreach x,$(call qstrip,$(BR2_PACKAGE_FFMPEG_DEMUXERS)),--enable-demuxer=$(x)) endif ifneq ($(call qstrip,$(BR2_PACKAGE_FFMPEG_PARSERS)),all) FFMPEG_CONF_OPTS += --disable-parsers \ $(foreach x,$(call qstrip,$(BR2_PACKAGE_FFMPEG_PARSERS)),--enable-parser=$(x)) endif ifneq ($(call qstrip,$(BR2_PACKAGE_FFMPEG_BSFS)),all) FFMPEG_CONF_OPTS += --disable-bsfs \ $(foreach x,$(call qstrip,$(BR2_PACKAGE_FFMPEG_BSFS)),--enable-bsfs=$(x)) endif ifneq ($(call qstrip,$(BR2_PACKAGE_FFMPEG_PROTOCOLS)),all) FFMPEG_CONF_OPTS += --disable-protocols \ $(foreach x,$(call qstrip,$(BR2_PACKAGE_FFMPEG_PROTOCOLS)),--enable-protocol=$(x)) endif ifneq ($(call qstrip,$(BR2_PACKAGE_FFMPEG_FILTERS)),all) FFMPEG_CONF_OPTS += --disable-filters \ $(foreach x,$(call qstrip,$(BR2_PACKAGE_FFMPEG_FILTERS)),--enable-filter=$(x)) endif ifeq ($(BR2_PACKAGE_FFMPEG_INDEVS),y) FFMPEG_CONF_OPTS += --enable-indevs else FFMPEG_CONF_OPTS += --disable-indevs endif ifeq ($(BR2_PACKAGE_FFMPEG_OUTDEVS),y) FFMPEG_CONF_OPTS += --enable-outdevs else FFMPEG_CONF_OPTS += --disable-outdevs endif ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y) FFMPEG_CONF_OPTS += --enable-pthreads else FFMPEG_CONF_OPTS += --disable-pthreads endif ifeq ($(BR2_PACKAGE_ZLIB),y) FFMPEG_CONF_OPTS += --enable-zlib FFMPEG_DEPENDENCIES += zlib else FFMPEG_CONF_OPTS += --disable-zlib endif ifeq ($(BR2_PACKAGE_BZIP2),y) FFMPEG_CONF_OPTS += --enable-bzlib FFMPEG_DEPENDENCIES += bzip2 else FFMPEG_CONF_OPTS += --disable-bzlib endif ifeq ($(BR2_PACKAGE_FDK_AAC)$(BR2_PACKAGE_FFMPEG_NONFREE),yy) FFMPEG_CONF_OPTS += --enable-libfdk-aac FFMPEG_DEPENDENCIES += fdk-aac else FFMPEG_CONF_OPTS += --disable-libfdk-aac endif ifeq ($(BR2_PACKAGE_GNUTLS),y) FFMPEG_CONF_OPTS += --enable-gnutls --disable-openssl FFMPEG_DEPENDENCIES += gnutls else FFMPEG_CONF_OPTS += --disable-gnutls ifeq ($(BR2_PACKAGE_OPENSSL),y) # openssl isn't license compatible with GPL ifeq ($(BR2_PACKAGE_FFMPEG_GPL)x$(BR2_PACKAGE_FFMPEG_NONFREE),yx) FFMPEG_CONF_OPTS += --disable-openssl else FFMPEG_CONF_OPTS += --enable-openssl FFMPEG_DEPENDENCIES += openssl endif else FFMPEG_CONF_OPTS += --disable-openssl endif endif ifeq ($(BR2_PACKAGE_LIBDCADEC),y) FFMPEG_CONF_OPTS += --enable-libdcadec FFMPEG_DEPENDENCIES += libdcadec else FFMPEG_CONF_OPTS += --disable-libdcadec endif ifeq ($(BR2_PACKAGE_FFMPEG_GPL)$(BR2_PACKAGE_LIBEBUR128),yy) FFMPEG_DEPENDENCIES += libebur128 endif ifeq ($(BR2_PACKAGE_LIBOPENH264),y) FFMPEG_CONF_OPTS += --enable-libopenh264 FFMPEG_DEPENDENCIES += libopenh264 else FFMPEG_CONF_OPTS += --disable-libopenh264 endif ifeq ($(BR2_PACKAGE_LIBVORBIS),y) FFMPEG_DEPENDENCIES += libvorbis FFMPEG_CONF_OPTS += \ --enable-libvorbis \ --enable-muxer=ogg \ --enable-encoder=libvorbis endif ifeq ($(BR2_PACKAGE_LIBVA),y) FFMPEG_CONF_OPTS += --enable-vaapi FFMPEG_DEPENDENCIES += libva else FFMPEG_CONF_OPTS += --disable-vaapi endif ifeq ($(BR2_PACKAGE_LIBVDPAU),y) FFMPEG_CONF_OPTS += --enable-vdpau FFMPEG_DEPENDENCIES += libvdpau else FFMPEG_CONF_OPTS += --disable-vdpau endif ifeq ($(BR2_PACKAGE_OPUS),y) FFMPEG_CONF_OPTS += --enable-libopus FFMPEG_DEPENDENCIES += opus else FFMPEG_CONF_OPTS += --disable-libopus endif ifeq ($(BR2_PACKAGE_LIBVPX),y) FFMPEG_CONF_OPTS += --enable-libvpx FFMPEG_DEPENDENCIES += libvpx else FFMPEG_CONF_OPTS += --disable-libvpx endif ifeq ($(BR2_PACKAGE_LIBASS),y) FFMPEG_CONF_OPTS += --enable-libass FFMPEG_DEPENDENCIES += libass else FFMPEG_CONF_OPTS += --disable-libass endif ifeq ($(BR2_PACKAGE_LIBBLURAY),y) FFMPEG_CONF_OPTS += --enable-libbluray FFMPEG_DEPENDENCIES += libbluray else FFMPEG_CONF_OPTS += --disable-libbluray endif ifeq ($(BR2_PACKAGE_RTMPDUMP),y) FFMPEG_CONF_OPTS += --enable-librtmp FFMPEG_DEPENDENCIES += rtmpdump else FFMPEG_CONF_OPTS += --disable-librtmp endif ifeq ($(BR2_PACKAGE_LAME),y) FFMPEG_CONF_OPTS += --enable-libmp3lame FFMPEG_DEPENDENCIES += lame else FFMPEG_CONF_OPTS += --disable-libmp3lame endif ifeq ($(BR2_PACKAGE_LIBMODPLUG),y) FFMPEG_CONF_OPTS += --enable-libmodplug FFMPEG_DEPENDENCIES += libmodplug else FFMPEG_CONF_OPTS += --disable-libmodplug endif ifeq ($(BR2_PACKAGE_SPEEX),y) FFMPEG_CONF_OPTS += --enable-libspeex FFMPEG_DEPENDENCIES += speex else FFMPEG_CONF_OPTS += --disable-libspeex endif ifeq ($(BR2_PACKAGE_LIBTHEORA),y) FFMPEG_CONF_OPTS += --enable-libtheora FFMPEG_DEPENDENCIES += libtheora else FFMPEG_CONF_OPTS += --disable-libtheora endif ifeq ($(BR2_PACKAGE_WAVPACK),y) FFMPEG_CONF_OPTS += --enable-libwavpack FFMPEG_DEPENDENCIES += wavpack else FFMPEG_CONF_OPTS += --disable-libwavpack endif # ffmpeg freetype support require fenv.h which is only # available/working on glibc. # The microblaze variant doesn't provide the needed exceptions ifeq ($(BR2_PACKAGE_FREETYPE)$(BR2_TOOLCHAIN_USES_GLIBC)x$(BR2_microblaze),yyx) FFMPEG_CONF_OPTS += --enable-libfreetype FFMPEG_DEPENDENCIES += freetype else FFMPEG_CONF_OPTS += --disable-libfreetype endif ifeq ($(BR2_PACKAGE_FONTCONFIG),y) FFMPEG_CONF_OPTS += --enable-fontconfig FFMPEG_DEPENDENCIES += fontconfig else FFMPEG_CONF_OPTS += --disable-fontconfig endif ifeq ($(BR2_PACKAGE_X264)$(BR2_PACKAGE_FFMPEG_GPL),yy) FFMPEG_CONF_OPTS += --enable-libx264 FFMPEG_DEPENDENCIES += x264 else FFMPEG_CONF_OPTS += --disable-libx264 endif ifeq ($(BR2_PACKAGE_X265)$(BR2_PACKAGE_FFMPEG_GPL),yy) FFMPEG_CONF_OPTS += --enable-libx265 FFMPEG_DEPENDENCIES += x265 else FFMPEG_CONF_OPTS += --disable-libx265 endif ifeq ($(BR2_X86_CPU_HAS_MMX),y) FFMPEG_CONF_OPTS += --enable-yasm FFMPEG_DEPENDENCIES += host-yasm else ifeq ($(BR2_x86_i586),y) # Needed to work around a bug with gcc 5.x: # error: 'asm' operand has impossible constraints FFMPEG_CONF_OPTS += --disable-inline-asm endif FFMPEG_CONF_OPTS += --disable-yasm FFMPEG_CONF_OPTS += --disable-mmx endif ifeq ($(BR2_X86_CPU_HAS_SSE),y) FFMPEG_CONF_OPTS += --enable-sse else FFMPEG_CONF_OPTS += --disable-sse endif ifeq ($(BR2_X86_CPU_HAS_SSE2),y) FFMPEG_CONF_OPTS += --enable-sse2 else FFMPEG_CONF_OPTS += --disable-sse2 endif ifeq ($(BR2_X86_CPU_HAS_SSE3),y) FFMPEG_CONF_OPTS += --enable-sse3 else FFMPEG_CONF_OPTS += --disable-sse3 endif ifeq ($(BR2_X86_CPU_HAS_SSSE3),y) FFMPEG_CONF_OPTS += --enable-ssse3 else FFMPEG_CONF_OPTS += --disable-ssse3 endif ifeq ($(BR2_X86_CPU_HAS_SSE4),y) FFMPEG_CONF_OPTS += --enable-sse4 else FFMPEG_CONF_OPTS += --disable-sse4 endif ifeq ($(BR2_X86_CPU_HAS_SSE42),y) FFMPEG_CONF_OPTS += --enable-sse42 else FFMPEG_CONF_OPTS += --disable-sse42 endif ifeq ($(BR2_X86_CPU_HAS_AVX),y) FFMPEG_CONF_OPTS += --enable-avx else FFMPEG_CONF_OPTS += --disable-avx endif ifeq ($(BR2_X86_CPU_HAS_AVX2),y) FFMPEG_CONF_OPTS += --enable-avx2 else FFMPEG_CONF_OPTS += --disable-avx2 endif # Explicitly disable everything that doesn't match for ARM # FFMPEG "autodetects" by compiling an extended instruction via AS # This works on compilers that aren't built for generic by default ifeq ($(BR2_ARM_CPU_ARMV4),y) FFMPEG_CONF_OPTS += --disable-armv5te endif ifeq ($(BR2_ARM_CPU_ARMV6)$(BR2_ARM_CPU_ARMV7A),y) FFMPEG_CONF_OPTS += --enable-armv6 else FFMPEG_CONF_OPTS += --disable-armv6 --disable-armv6t2 endif ifeq ($(BR2_ARM_CPU_HAS_VFPV2),y) FFMPEG_CONF_OPTS += --enable-vfp else FFMPEG_CONF_OPTS += --disable-vfp endif ifeq ($(BR2_ARM_CPU_HAS_NEON),y) FFMPEG_CONF_OPTS += --enable-neon else FFMPEG_CONF_OPTS += --disable-neon endif ifeq ($(BR2_mips)$(BR2_mipsel)$(BR2_mips64)$(BR2_mips64el),y) ifeq ($(BR2_MIPS_SOFT_FLOAT),y) FFMPEG_CONF_OPTS += --disable-mipsfpu else FFMPEG_CONF_OPTS += --enable-mipsfpu endif ifeq ($(BR2_mips_32r2),y) FFMPEG_CONF_OPTS += \ --enable-mips32r2 else FFMPEG_CONF_OPTS += \ --disable-mips32r2 endif endif # MIPS ifeq ($(BR2_POWERPC_CPU_HAS_ALTIVEC),y) FFMPEG_CONF_OPTS += --enable-altivec else FFMPEG_CONF_OPTS += --disable-altivec endif ifeq ($(BR2_STATIC_LIBS),) FFMPEG_CONF_OPTS += --enable-pic else FFMPEG_CONF_OPTS += --disable-pic endif ifneq ($(call qstrip,$(BR2_GCC_TARGET_CPU)),) FFMPEG_CONF_OPTS += --cpu=$(BR2_GCC_TARGET_CPU) else ifneq ($(call qstrip,$(BR2_GCC_TARGET_ARCH)),) FFMPEG_CONF_OPTS += --cpu=$(BR2_GCC_TARGET_ARCH) endif FFMPEG_CONF_OPTS += $(call qstrip,$(BR2_PACKAGE_FFMPEG_EXTRACONF)) # Override FFMPEG_CONFIGURE_CMDS: FFmpeg does not support --target and others define FFMPEG_CONFIGURE_CMDS (cd $(FFMPEG_SRCDIR) && rm -rf config.cache && \ $(TARGET_CONFIGURE_OPTS) \ $(TARGET_CONFIGURE_ARGS) \ $(FFMPEG_CONF_ENV) \ ./configure \ --enable-cross-compile \ --cross-prefix=$(TARGET_CROSS) \ --sysroot=$(STAGING_DIR) \ --host-cc="$(HOSTCC)" \ --arch=$(BR2_ARCH) \ --target-os="linux" \ --disable-stripping \ --pkg-config="$(PKG_CONFIG_HOST_BINARY)" \ $(SHARED_STATIC_LIBS_OPTS) \ $(FFMPEG_CONF_OPTS) \ ) endef $(eval $(autotools-package))
shibajee/buildroot
package/ffmpeg/ffmpeg.mk
mk
mit
12,166
config BR2_PACKAGE_FFTW bool "fftw" help Library for computing Fast Fourier Transforms. This library computes Fast Fourier Transforms (FFT) in one or more dimensions. It is extremely fast. This package contains the shared library version of the fftw libraries in double precision. http://www.fftw.org if BR2_PACKAGE_FFTW config BR2_PACKAGE_FFTW_USE_SSE bool config BR2_PACKAGE_FFTW_USE_SSE2 bool config BR2_PACKAGE_FFTW_USE_NEON bool choice prompt "fftw precision" default BR2_PACKAGE_FFTW_PRECISION_DOUBLE help Selects fftw precision config BR2_PACKAGE_FFTW_PRECISION_SINGLE bool "single" select BR2_PACKAGE_FFTW_USE_SSE if BR2_X86_CPU_HAS_SSE select BR2_PACKAGE_FFTW_USE_SSE2 if BR2_X86_CPU_HAS_SSE2 select BR2_PACKAGE_FFTW_USE_NEON if BR2_ARM_CPU_HAS_NEON && !BR2_ARM_SOFT_FLOAT help Compile fftw in single precision, i.e. use 'float' for floating point type. config BR2_PACKAGE_FFTW_PRECISION_DOUBLE bool "double" select BR2_PACKAGE_FFTW_USE_SSE2 if BR2_X86_CPU_HAS_SSE2 help Compile fftw in double precision (the default), i.e. use 'double' for floating point type. config BR2_PACKAGE_FFTW_PRECISION_LONG_DOUBLE bool "long double" # long-double precision require long-double trigonometric routines depends on !(BR2_TOOLCHAIN_BUILDROOT_UCLIBC && \ (BR2_arm || BR2_mips || BR2_mipsel)) help Compile fftw in long double precision, i.e. use 'long double' for floating point type. config BR2_PACKAGE_FFTW_PRECISION_QUAD bool "quad" # quad-precision needs to have a gcc with libquadmath depends on (BR2_i386 || BR2_x86_64) && BR2_USE_WCHAR help Compile fftw in quadruple precision, i.e. use '__float128' for floating point type. endchoice config BR2_PACKAGE_FFTW_FAST bool "optimise for speed over accuracy" help Optimise for fast math functions, at the expense of accuracy. Say 'y' if you need speed and can live with inaccuracies in the results. Say 'n' (the default) if accuracy is of utmost importance. This basically uses gcc's -Ofast optimisation level, which in turn is basically using gcc's -ffast-math. See the gcc manual for what this means. endif
shibajee/buildroot
package/fftw/Config.in
in
mit
2,167
# From http://www.fftw.org/fftw-3.3.4.tar.gz.md5sum md5 2edab8c06b24feeb3b82bbb3ebf3e7b3 fftw-3.3.4.tar.gz
shibajee/buildroot
package/fftw/fftw.hash
hash
mit
107
################################################################################ # # fftw # ################################################################################ FFTW_VERSION = 3.3.4 FFTW_SITE = http://www.fftw.org FFTW_INSTALL_STAGING = YES FFTW_LICENSE = GPLv2+ FFTW_LICENSE_FILES = COPYING # fortran support only enables generation and installation of fortran sources ifeq ($(BR2_TOOLCHAIN_HAS_FORTRAN),y) FFTW_CONF_OPTS += --enable-fortran FFTW_CONF_ENV += FLIBS="-lgfortran -lm" else FFTW_CONF_OPTS += --disable-fortran endif FFTW_CONF_OPTS += $(if $(BR2_PACKAGE_FFTW_PRECISION_SINGLE),--enable,--disable)-single FFTW_CONF_OPTS += $(if $(BR2_PACKAGE_FFTW_PRECISION_LONG_DOUBLE),--enable,--disable)-long-double FFTW_CONF_OPTS += $(if $(BR2_PACKAGE_FFTW_PRECISION_QUAD),--enable,--disable)-quad-precision FFTW_CFLAGS = $(TARGET_CFLAGS) ifeq ($(BR2_PACKAGE_FFTW_FAST),y) FFTW_CFLAGS += -O3 -ffast-math endif # x86 optimisations FFTW_CONF_OPTS += $(if $(BR2_PACKAGE_FFTW_USE_SSE),--enable,--disable)-sse FFTW_CONF_OPTS += $(if $(BR2_PACKAGE_FFTW_USE_SSE2),--enable,--disable)-sse2 # ARM optimisations FFTW_CONF_OPTS += $(if $(BR2_PACKAGE_FFTW_USE_NEON),--enable,--disable)-neon FFTW_CFLAGS += $(if $(BR2_PACKAGE_FFTW_USE_NEON),-mfpu=neon) # Generic optimisations ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y) FFTW_CONF_OPTS += --enable-threads FFTW_CONF_OPTS += $(if $(BR2_GCC_ENABLE_OPENMP),--without,--with)-combined-threads else FFTW_CONF_OPTS += --disable-threads endif FFTW_CONF_OPTS += $(if $(BR2_GCC_ENABLE_OPENMP),--enable,--disable)-openmp FFTW_CONF_OPTS += CFLAGS="$(FFTW_CFLAGS)" $(eval $(autotools-package))
shibajee/buildroot
package/fftw/fftw.mk
mk
mit
1,633
fix dependency in Makefiles there is no longer a sysdep.h file. Signed-off-by: Francois Perrad <francois.perrad@gadz.org> diff --git a/Makefile b/Makefile index 976d00a..7f73c44 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ libficl.so.$(MAJOR).$(MINOR): $(OBJECTS) -o libficl.so.$(MAJOR).$(MINOR) $(OBJECTS) ln -sf libficl.so.$(MAJOR).$(MINOR) libficl.so -main: main.o ficl.h sysdep.h libficl.so.$(MAJOR).$(MINOR) +main: main.o ficl.h libficl.so.$(MAJOR).$(MINOR) $(CC) $(CFLAGS) $(LDFLAGS) main.o -o main -L. -lficl -lm ln -sf libficl.so.$(MAJOR).$(MINOR) libficl.so.$(MAJOR) diff --git a/Makefile.ansi b/Makefile.ansi index e510fcd..170e6eb 100644 --- a/Makefile.ansi +++ b/Makefile.ansi @@ -29,7 +29,7 @@ libficl.so.$(MAJOR).$(MINOR): $(OBJECTS) -o libficl.so.$(MAJOR).$(MINOR) $(OBJECTS) ln -sf libficl.so.$(MAJOR).$(MINOR) libficl.so -main: main.o ficl.h sysdep.h libficl.so.$(MAJOR).$(MINOR) +main: main.o ficl.h libficl.so.$(MAJOR).$(MINOR) $(CC) main.o -o main -L. -lficl -lm ln -sf libficl.so.$(MAJOR).$(MINOR) libficl.so.$(MAJOR) diff --git a/Makefile.linux b/Makefile.linux index d447e7e..7f2cdfe 100644 --- a/Makefile.linux +++ b/Makefile.linux @@ -29,7 +29,7 @@ libficl.so.$(MAJOR).$(MINOR): $(OBJECTS) -o libficl.so.$(MAJOR).$(MINOR) $(OBJECTS) ln -sf libficl.so.$(MAJOR).$(MINOR) libficl.so -main: main.o ficl.h sysdep.h libficl.so.$(MAJOR).$(MINOR) +main: main.o ficl.h libficl.so.$(MAJOR).$(MINOR) $(CC) main.o -o main -L. -lficl -lm ln -sf libficl.so.$(MAJOR).$(MINOR) libficl.so.$(MAJOR) --
shibajee/buildroot
package/ficl/0001-fix-Makefile.patch
patch
mit
1,560
config BR2_PACKAGE_FICL bool "ficl" help Ficl is a programming language interpreter designed to be embedded into other systems as a command, macro, and development prototyping language. Ficl is an acronym for "Forth Inspired Command Language". http://ficl.sourceforge.net
shibajee/buildroot
package/ficl/Config.in
in
mit
290
# Locally computed: sha256 4daf74f3d3d6f8b86ea7cb47bc24931d50b4809b50ba34ca32e0ca1e972bd3a3 ficl-4.1.0.tar.gz
shibajee/buildroot
package/ficl/ficl.hash
hash
mit
112
################################################################################ # # ficl # ################################################################################ FICL_VERSION_MAJOR = 4.1 FICL_VERSION = $(FICL_VERSION_MAJOR).0 FICL_SITE = http://downloads.sourceforge.net/project/ficl/ficl-all/ficl$(FICL_VERSION_MAJOR) FICL_LICENSE = BSD-2c FICL_LICENSE_FILES = ReadMe.txt FICL_INSTALL_STAGING = YES ifeq ($(BR2_STATIC_LIBS),y) FICL_BUILD_TARGETS += ficl define FICL_INSTALL_STATIC_BIN $(INSTALL) -D -m 0755 $(@D)/ficl $(TARGET_DIR)/usr/bin/ficl endef endif ifeq ($(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS),y) FICL_BUILD_TARGETS += libficl.a define FICL_INSTALL_STATIC_LIB $(INSTALL) -D -m 0644 $(@D)/libficl.a $(STAGING_DIR)/usr/lib/libficl.a endef endif ifeq ($(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),y) FICL_BUILD_TARGETS += main libficl.so.$(FICL_VERSION) define FICL_INSTALL_SHARED_BIN $(INSTALL) -D -m 0755 $(@D)/main $(TARGET_DIR)/usr/bin/ficl endef define FICL_INSTALL_SHARED_LIB $(INSTALL) -D -m 0755 $(@D)/libficl.so.$(FICL_VERSION) $(1)/usr/lib/libficl.so.$(FICL_VERSION) ln -sf libficl.so.$(FICL_VERSION) $(1)/usr/lib/libficl.so.4 ln -sf libficl.so.$(FICL_VERSION) $(1)/usr/lib/libficl.so endef endif define FICL_BUILD_CMDS $(MAKE) -C $(@D) -f Makefile.linux $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS) -fPIC -I. -Dlinux" CPPFLAGS="" $(FICL_BUILD_TARGETS) endef define FICL_INSTALL_STAGING_CMDS $(FICL_INSTALL_STATIC_LIB) $(call FICL_INSTALL_SHARED_LIB,$(STAGING_DIR)) $(INSTALL) -D -m 0644 $(@D)/ficl.h $(STAGING_DIR)/usr/include/ficl.h $(INSTALL) -D -m 0644 $(@D)/ficllocal.h $(STAGING_DIR)/usr/include/ficllocal.h $(INSTALL) -D -m 0644 $(@D)/ficlplatform/unix.h $(STAGING_DIR)/usr/include/ficlplatform/unix.h endef define FICL_INSTALL_TARGET_CMDS $(FICL_INSTALL_STATIC_BIN) $(FICL_INSTALL_SHARED_BIN) $(call FICL_INSTALL_SHARED_LIB,$(TARGET_DIR)) endef $(eval $(generic-package))
shibajee/buildroot
package/ficl/ficl.mk
mk
mit
1,943
config BR2_PACKAGE_FILE bool "file" select BR2_PACKAGE_ZLIB help Program to identify a file's format by scanning binary data for known patterns. http://www.darwinsys.com/file/
shibajee/buildroot
package/file/Config.in
in
mit
189
# Locally calculated sha256 0ecb5e146b8655d1fa84159a847ee619fc102575205a0ff9c6cc60fc5ee2e012 file-5.28.tar.gz
shibajee/buildroot
package/file/file.hash
hash
mit
110
################################################################################ # # file # ################################################################################ FILE_VERSION = 5.28 FILE_SITE = ftp://ftp.astron.com/pub/file FILE_DEPENDENCIES = host-file zlib HOST_FILE_DEPENDENCIES = host-zlib FILE_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99' FILE_INSTALL_STAGING = YES FILE_LICENSE = BSD-2c, one file BSD-4c, one file BSD-3c FILE_LICENSE_FILES = COPYING src/mygetopt.h src/vasprintf.c $(eval $(autotools-package)) $(eval $(host-autotools-package))
shibajee/buildroot
package/file/file.mk
mk
mit
560
config BR2_PACKAGE_FILEMQ bool "filemq" select BR2_PACKAGE_OPENSSL select BR2_PACKAGE_CZMQ select BR2_PACKAGE_ZEROMQ depends on BR2_INSTALL_LIBSTDCPP # zeromq depends on BR2_USE_WCHAR # util-linux depends on BR2_TOOLCHAIN_HAS_THREADS # zeromq depends on BR2_USE_MMU # czmq help FileMQ is a publish-subscribe file service based on 0MQ. http://github.com/zeromq/filemq comment "filemq needs a toolchain w/ C++, wchar, threads" depends on BR2_USE_MMU depends on !(BR2_INSTALL_LIBSTDCPP && BR2_USE_WCHAR && \ BR2_TOOLCHAIN_HAS_THREADS)
shibajee/buildroot
package/filemq/Config.in
in
mit
553
# Locally calculated sha256 c373eddd5154cfe63f6cc6b3255ec20dca1f70c1f1881b611930931df47babad filemq-e59951489045825d6fc5bdc6a5a5ecf1abf51943.tar.gz
shibajee/buildroot
package/filemq/filemq.hash
hash
mit
149
################################################################################ # # filemq # ################################################################################ FILEMQ_VERSION = e59951489045825d6fc5bdc6a5a5ecf1abf51943 FILEMQ_SITE = $(call github,zeromq,filemq,$(FILEMQ_VERSION)) FILEMQ_AUTORECONF = YES FILEMQ_CONF_ENV = fmq_have_asciidoc=no FILEMQ_INSTALL_STAGING = YES FILEMQ_DEPENDENCIES = czmq openssl zeromq FILEMQ_LICENSE = LGPLv3+ with exceptions FILEMQ_LICENSE_FILES = COPYING COPYING.LESSER define FILEMQ_CREATE_CONFIG_DIR mkdir -p $(@D)/config endef FILEMQ_POST_PATCH_HOOKS += FILEMQ_CREATE_CONFIG_DIR $(eval $(autotools-package))
shibajee/buildroot
package/filemq/filemq.mk
mk
mit
662
config BR2_PACKAGE_FINDUTILS bool "findutils" depends on BR2_USE_WCHAR depends on BR2_USE_MMU # fork() depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS help Basic directory searching utilities. Provides the common 'find', 'xargs', 'locate', and 'updatedb' binaries. http://www.gnu.org/software/findutils/findutils.html comment "findutils needs a toolchain w/ wchar" depends on BR2_USE_MMU depends on !BR2_USE_WCHAR depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
shibajee/buildroot
package/findutils/Config.in
in
mit
471
# Locally calculated after checking pgp signature sha256 ded4c9f73731cd48fec3b6bdaccce896473b6d8e337e9612e16cf1431bb1169d findutils-4.6.0.tar.gz
shibajee/buildroot
package/findutils/findutils.hash
hash
mit
145
################################################################################ # # findutils # ################################################################################ FINDUTILS_VERSION = 4.6.0 FINDUTILS_SITE = $(BR2_GNU_MIRROR)/findutils FINDUTILS_LICENSE = GPLv3+ FINDUTILS_LICENSE_FILES = COPYING FINDUTILS_CONF_ENV = \ gl_cv_func_stdin=yes \ ac_cv_func_working_mktime=yes \ gl_cv_func_wcwidth_works=yes $(eval $(autotools-package))
shibajee/buildroot
package/findutils/findutils.mk
mk
mit
451
config BR2_PACKAGE_FIO bool "fio" depends on BR2_USE_MMU # fork() depends on !BR2_STATIC_LIBS depends on BR2_TOOLCHAIN_HAS_SYNC_4 depends on BR2_TOOLCHAIN_HAS_THREADS # fio uses posix_madvise(), which is not part of any official # release of uClibc, but is part of uClibc Git, and backported # in Buildroot patch set of uClibc 0.9.33. Therefore, we # disable the build of fio for external uClibc toolchains # (which use an unknown uClibc version) depends on !BR2_TOOLCHAIN_EXTERNAL_UCLIBC # fio uses fallocate() which becomes fallocate64() while compiling with # largefile support, but fallocate64() is not available on nios2 depends on !BR2_nios2 help fio is an I/O tool meant to be used both for benchmark and stress/hardware verification. http://git.kernel.dk/?p=fio.git;a=summary comment "fio needs a toolchain w/ dynamic library, threads" depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS depends on BR2_TOOLCHAIN_HAS_SYNC_4 depends on !BR2_nios2 depends on BR2_USE_MMU
shibajee/buildroot
package/fio/Config.in
in
mit
1,012
################################################################################ # # fio # ################################################################################ FIO_VERSION = fio-2.13 FIO_SITE = git://git.kernel.dk/fio.git FIO_LICENSE = GPLv2 + special obligations FIO_LICENSE_FILES = COPYING ifeq ($(BR2_PACKAGE_LIBAIO),y) FIO_DEPENDENCIES += libaio endif ifeq ($(BR2_PACKAGE_NUMACTL),y) FIO_DEPENDENCIES += numactl endif ifeq ($(BR2_PACKAGE_ZLIB),y) FIO_DEPENDENCIES += zlib endif define FIO_CONFIGURE_CMDS (cd $(@D); ./configure --cc="$(TARGET_CC)" --extra-cflags="$(TARGET_CFLAGS)") endef define FIO_BUILD_CMDS $(MAKE) -C $(@D) endef define FIO_INSTALL_TARGET_CMDS $(INSTALL) -D $(@D)/fio $(TARGET_DIR)/usr/bin/fio endef $(eval $(generic-package))
shibajee/buildroot
package/fio/fio.mk
mk
mit
774
diff -uN fis.orig/crc.c fis/crc.c --- fis.orig/crc.c 1970-01-01 10:00:00.000000000 +1000 +++ fis/crc.c 2008-04-01 11:39:13.000000000 +1100 @@ -0,0 +1,88 @@ +/* + * crc.c + * + * $Id: crc.c,v 1.1 2006/02/13 09:58:08 andrzej Exp $ + * + * Gary S. Brown's CRC + * Code based on Gary S. Brown CRC (1986). + * Generation polynomial is: + * X^32+X^26+X^23+X^22+X^16+X^12+X^11+X^10+X^8+X^7+X^5+X^4+X^2+X^1+X^0 + * + * Copyright (C) 2006 Ekiert sp z o.o. + * Author: Andrzej Ekiert <a.ekiert@ekiert.com> + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version + * 2 of the License, or (at your option) any later version. + */ + +#include <stdint.h> + +#include "crc.h" + +static const uint32_t crc32_tab[] = { + 0x00000000L, 0x77073096L, 0xee0e612cL, 0x990951baL, 0x076dc419L, + 0x706af48fL, 0xe963a535L, 0x9e6495a3L, 0x0edb8832L, 0x79dcb8a4L, + 0xe0d5e91eL, 0x97d2d988L, 0x09b64c2bL, 0x7eb17cbdL, 0xe7b82d07L, + 0x90bf1d91L, 0x1db71064L, 0x6ab020f2L, 0xf3b97148L, 0x84be41deL, + 0x1adad47dL, 0x6ddde4ebL, 0xf4d4b551L, 0x83d385c7L, 0x136c9856L, + 0x646ba8c0L, 0xfd62f97aL, 0x8a65c9ecL, 0x14015c4fL, 0x63066cd9L, + 0xfa0f3d63L, 0x8d080df5L, 0x3b6e20c8L, 0x4c69105eL, 0xd56041e4L, + 0xa2677172L, 0x3c03e4d1L, 0x4b04d447L, 0xd20d85fdL, 0xa50ab56bL, + 0x35b5a8faL, 0x42b2986cL, 0xdbbbc9d6L, 0xacbcf940L, 0x32d86ce3L, + 0x45df5c75L, 0xdcd60dcfL, 0xabd13d59L, 0x26d930acL, 0x51de003aL, + 0xc8d75180L, 0xbfd06116L, 0x21b4f4b5L, 0x56b3c423L, 0xcfba9599L, + 0xb8bda50fL, 0x2802b89eL, 0x5f058808L, 0xc60cd9b2L, 0xb10be924L, + 0x2f6f7c87L, 0x58684c11L, 0xc1611dabL, 0xb6662d3dL, 0x76dc4190L, + 0x01db7106L, 0x98d220bcL, 0xefd5102aL, 0x71b18589L, 0x06b6b51fL, + 0x9fbfe4a5L, 0xe8b8d433L, 0x7807c9a2L, 0x0f00f934L, 0x9609a88eL, + 0xe10e9818L, 0x7f6a0dbbL, 0x086d3d2dL, 0x91646c97L, 0xe6635c01L, + 0x6b6b51f4L, 0x1c6c6162L, 0x856530d8L, 0xf262004eL, 0x6c0695edL, + 0x1b01a57bL, 0x8208f4c1L, 0xf50fc457L, 0x65b0d9c6L, 0x12b7e950L, + 0x8bbeb8eaL, 0xfcb9887cL, 0x62dd1ddfL, 0x15da2d49L, 0x8cd37cf3L, + 0xfbd44c65L, 0x4db26158L, 0x3ab551ceL, 0xa3bc0074L, 0xd4bb30e2L, + 0x4adfa541L, 0x3dd895d7L, 0xa4d1c46dL, 0xd3d6f4fbL, 0x4369e96aL, + 0x346ed9fcL, 0xad678846L, 0xda60b8d0L, 0x44042d73L, 0x33031de5L, + 0xaa0a4c5fL, 0xdd0d7cc9L, 0x5005713cL, 0x270241aaL, 0xbe0b1010L, + 0xc90c2086L, 0x5768b525L, 0x206f85b3L, 0xb966d409L, 0xce61e49fL, + 0x5edef90eL, 0x29d9c998L, 0xb0d09822L, 0xc7d7a8b4L, 0x59b33d17L, + 0x2eb40d81L, 0xb7bd5c3bL, 0xc0ba6cadL, 0xedb88320L, 0x9abfb3b6L, + 0x03b6e20cL, 0x74b1d29aL, 0xead54739L, 0x9dd277afL, 0x04db2615L, + 0x73dc1683L, 0xe3630b12L, 0x94643b84L, 0x0d6d6a3eL, 0x7a6a5aa8L, + 0xe40ecf0bL, 0x9309ff9dL, 0x0a00ae27L, 0x7d079eb1L, 0xf00f9344L, + 0x8708a3d2L, 0x1e01f268L, 0x6906c2feL, 0xf762575dL, 0x806567cbL, + 0x196c3671L, 0x6e6b06e7L, 0xfed41b76L, 0x89d32be0L, 0x10da7a5aL, + 0x67dd4accL, 0xf9b9df6fL, 0x8ebeeff9L, 0x17b7be43L, 0x60b08ed5L, + 0xd6d6a3e8L, 0xa1d1937eL, 0x38d8c2c4L, 0x4fdff252L, 0xd1bb67f1L, + 0xa6bc5767L, 0x3fb506ddL, 0x48b2364bL, 0xd80d2bdaL, 0xaf0a1b4cL, + 0x36034af6L, 0x41047a60L, 0xdf60efc3L, 0xa867df55L, 0x316e8eefL, + 0x4669be79L, 0xcb61b38cL, 0xbc66831aL, 0x256fd2a0L, 0x5268e236L, + 0xcc0c7795L, 0xbb0b4703L, 0x220216b9L, 0x5505262fL, 0xc5ba3bbeL, + 0xb2bd0b28L, 0x2bb45a92L, 0x5cb36a04L, 0xc2d7ffa7L, 0xb5d0cf31L, + 0x2cd99e8bL, 0x5bdeae1dL, 0x9b64c2b0L, 0xec63f226L, 0x756aa39cL, + 0x026d930aL, 0x9c0906a9L, 0xeb0e363fL, 0x72076785L, 0x05005713L, + 0x95bf4a82L, 0xe2b87a14L, 0x7bb12baeL, 0x0cb61b38L, 0x92d28e9bL, + 0xe5d5be0dL, 0x7cdcefb7L, 0x0bdbdf21L, 0x86d3d2d4L, 0xf1d4e242L, + 0x68ddb3f8L, 0x1fda836eL, 0x81be16cdL, 0xf6b9265bL, 0x6fb077e1L, + 0x18b74777L, 0x88085ae6L, 0xff0f6a70L, 0x66063bcaL, 0x11010b5cL, + 0x8f659effL, 0xf862ae69L, 0x616bffd3L, 0x166ccf45L, 0xa00ae278L, + 0xd70dd2eeL, 0x4e048354L, 0x3903b3c2L, 0xa7672661L, 0xd06016f7L, + 0x4969474dL, 0x3e6e77dbL, 0xaed16a4aL, 0xd9d65adcL, 0x40df0b66L, + 0x37d83bf0L, 0xa9bcae53L, 0xdebb9ec5L, 0x47b2cf7fL, 0x30b5ffe9L, + 0xbdbdf21cL, 0xcabac28aL, 0x53b39330L, 0x24b4a3a6L, 0xbad03605L, + 0xcdd70693L, 0x54de5729L, 0x23d967bfL, 0xb3667a2eL, 0xc4614ab8L, + 0x5d681b02L, 0x2a6f2b94L, 0xb40bbe37L, 0xc30c8ea1L, 0x5a05df1bL, + 0x2d02ef8dL + }; + +uint32_t crc32(uint8_t *s, uint32_t len) +{ + uint32_t i, val = 0; + + for (i = 0; i < len; i++) { + val = crc32_tab[(val^s[i]) & 0xff] ^ (val >> 8); + } + return val; +} + diff -uN fis.orig/crc.h fis/crc.h --- fis.orig/crc.h 1970-01-01 10:00:00.000000000 +1000 +++ fis/crc.h 2008-04-01 11:39:13.000000000 +1100 @@ -0,0 +1,25 @@ +/* + * crc.h + * + * $Id: crc.h,v 1.1 2006/02/13 09:58:08 andrzej Exp $ + * + * Gary S. Brown's CRC - header. + * + * Copyright (C) 2006 Ekiert sp z o.o. + * Author: Andrzej Ekiert <a.ekiert@ekiert.com> + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version + * 2 of the License, or (at your option) any later version. + */ + +#ifndef CRC_H +#define CRC_H + +#include <stdint.h> + +uint32_t crc32(uint8_t *s, uint32_t len); + +#endif //CRC_H + diff -uN fis.orig/fis.c fis/fis.c --- fis.orig/fis.c 2007-05-03 06:42:51.000000000 +1000 +++ fis/fis.c 2008-04-01 11:52:11.000000000 +1100 @@ -30,6 +30,7 @@ #include <sys/stat.h> #include <fcntl.h> +#include "crc.h" // Report an error and terminate: @@ -141,8 +142,8 @@ static void dump_desc(FILE* f, const struct fis_image_desc* d) { - fprintf(f,"%16s: addr = 0x%08x, size = 0x%08x\n", - d->name, d->flash_base, d->size); + fprintf(f,"%16s: flash addr = 0x%08x, mem addr = 0x%08x, size = 0x%08x, checksum = 0x%08x\n", + d->name, d->flash_base, d->mem_base, d->size, d->file_cksum); for (unsigned int i=0; i<(sizeof(d->skips)/4); ++i) { if (d->skips[i]==0x736b6970 || d->skips[i]==0x70696b73) { // "skip" uint32_t offset = d->skips[i+1]; @@ -332,6 +333,7 @@ d->size = swap_end_32(d->size); d->entry_point = swap_end_32(d->entry_point); d->data_length = swap_end_32(d->data_length); + d->file_cksum = swap_end_32(d->file_cksum); for (unsigned int i=0; i<(sizeof(d->skips)/4); ++i) { d->skips[i] = swap_end_32(d->skips[i]); } @@ -446,19 +448,25 @@ char* arg=argv[i]; if (strcmp(arg,"-l")==0) { if (i==argc-1) { - fatal("argumnet missing for -l"); + fatal("argument missing for -l"); } ++i; d->size = str_to_int_maybe_hex(argv[i]); } else if (strcmp(arg,"-f")==0) { if (i==argc-1) { - fatal("argumnet missing for -f"); + fatal("argument missing for -f"); } ++i; d->flash_base = str_to_int_maybe_hex(argv[i]); + } else if (strcmp(arg,"-m")==0) { + if (i==argc-1) { + fatal("argument missing for -m"); + } + ++i; + d->mem_base = str_to_int_maybe_hex(argv[i]); } else if (strcmp(arg,"-n")==0) { if (i==argc-1) { - fatal("argumnet missing for -n"); + fatal("argument missing for -n"); } ++i; char* name = argv[i]; @@ -499,6 +507,66 @@ save_dir(fd,offset,size,swap_endianness,dir); } +static void fis_checksum(const char* device, int offset, int size, bool swap_endianness, + int argc, char* argv[]) +{ + char* name = NULL; + char* filename = NULL; + + for (int i=0; i<argc; ++i) { + char* arg=argv[i]; + if (strcmp(arg,"-f")==0) { + if (i==argc-1) { + fatal("argument missing for -f"); + } + ++i; + filename = argv[i]; + } else if (strcmp(arg,"-n")==0) { + if (i==argc-1) { + fatal("argument missing for -n"); + } + ++i; + name = argv[i]; + if (strlen(name)>=16) { + fatal("name too long, max 16 chars including terminating null"); + } + } else { + fputs("Unrecognised option '",stderr); + fputs(arg,stderr); + fputs("'\n",stderr); + exit(1); + } + } + + if (name == NULL || filename == NULL) + fatal("filename and partition name must be specified"); + + int fd; + char *buf; + struct stat stat_buf; + uint32_t crc; + + CHECK(fd=open(filename,O_RDONLY),-1); + CHECK(stat(filename, &stat_buf),-1); + buf = (char*)chk_malloc(stat_buf.st_size); + CHECK(read(fd,buf,stat_buf.st_size),-1); + crc = crc32(buf,stat_buf.st_size); + close(fd); + free(buf); + + CHECK(fd=open(device,O_RDWR),-1); + dir_t dir; + load_dir(fd,offset,&size,swap_endianness,&dir); + iter_t after = NULL; + FOR_EACH_DIR_ENTRY(dir,i) { + if (strcmp(get(i)->name, name) == 0) { + get(i)->file_cksum = crc; + get(i)->data_length = stat_buf.st_size; + break; + } + } + save_dir(fd,offset,size,swap_endianness,dir); +} static void fis_delete(const char* device, int offset, int size, bool swap_endianness, char* name) @@ -526,8 +594,9 @@ fputs("Usage:\n" " fis [options] list\n" " fis [options] init\n" - " fis [options] create -f address -l size -n name\n" + " fis [options] create -f address -l size -n name [-m memory_address]\n" " fis [options] delete name\n" + " fis [options] checksum -f filename -n name\n" "Options:\n" " -d device specify /dev/mtd* device containing directory\n" " -o offset specify offset into device of start of directory\n" @@ -597,9 +666,14 @@ fis_create(device,offset,size,swap_endianness, argc-i-1,&argv[i+1]); break; + } else if (strcmp(arg,"checksum")==0) { + check_dev(device); + fis_checksum(device,offset,size,swap_endianness, + argc-i-1,&argv[i+1]); + break; } else if (strcmp(arg,"delete")==0) { if (i!=argc-2) { - fatal("Exactly one argumnet required after 'delete'"); + fatal("Exactly one argument required after 'delete'"); } ++i; char* name = argv[i];
shibajee/buildroot
package/fis/0001-checksum.patch
patch
mit
10,417
--- fis.orig/fis.c 2010-05-12 10:22:10.000000000 -0700 +++ fis/fis.c 2010-05-12 10:19:24.000000000 -0700 @@ -142,8 +142,8 @@ static void dump_desc(FILE* f, const struct fis_image_desc* d) { - fprintf(f,"%16s: flash addr = 0x%08x, mem addr = 0x%08x, size = 0x%08x, checksum = 0x%08x\n", - d->name, d->flash_base, d->mem_base, d->size, d->file_cksum); + fprintf(f,"%-16s 0x%08x 0x%08x 0x%08x 0x%08x 0x%08x\n", + d->name, d->flash_base, d->mem_base, d->size, d->entry_point, d->file_cksum); for (unsigned int i=0; i<(sizeof(d->skips)/4); ++i) { if (d->skips[i]==0x736b6970 || d->skips[i]==0x70696b73) { // "skip" uint32_t offset = d->skips[i+1]; @@ -400,6 +400,7 @@ CHECK(fd=open(device,O_RDONLY),-1); dir_t dir; load_dir(fd,offset,&size,swap_endianness,&dir); + fprintf(stdout,"Name FLASH addr Mem addr Length Entry point Checksum\n"); FOR_EACH_DIR_ENTRY(dir,i) { dump_desc(stdout,get(i)); }
shibajee/buildroot
package/fis/0003-list_output.patch
patch
mit
983
--- fis.orig/fis.c 2010-05-12 11:09:22.000000000 -0700 +++ fis/fis.c 2010-05-12 11:05:45.000000000 -0700 @@ -401,9 +401,24 @@ dir_t dir; load_dir(fd,offset,&size,swap_endianness,&dir); fprintf(stdout,"Name FLASH addr Mem addr Length Entry point Checksum\n"); - FOR_EACH_DIR_ENTRY(dir,i) { - dump_desc(stdout,get(i)); - } + uint32_t last_addr = 0; + bool image_found; + do { + uint32_t lowest_addr = 0xffffffff; + iter_t index; + image_found = false; + FOR_EACH_DIR_ENTRY(dir,i) { + const struct fis_image_desc *d = get(i); + if ((d->flash_base >= last_addr) && (d->flash_base < lowest_addr)) { + lowest_addr = d->flash_base; + image_found = true; + index = i; + } + } + if (image_found) + dump_desc(stdout,get(index)); + last_addr = lowest_addr + 1; + } while (image_found == true); }
shibajee/buildroot
package/fis/0004-sorted_list.patch
patch
mit
892
config BR2_PACKAGE_FIS bool "fis" help fis - manipulate RedBoot partition table from Linux.
shibajee/buildroot
package/fis/Config.in
in
mit
97
################################################################################ # # fis # ################################################################################ FIS_SITE = http://svn.chezphil.org/utils/trunk FIS_SITE_METHOD = svn FIS_VERSION = 2892 FIS_LICENSE = GPLv2+ FIS_LICENSE_FILES = fis.c define FIS_BUILD_CMDS $(TARGET_CC) $(TARGET_CFLAGS) -std=c99 -o $(@D)/fis \ $(@D)/fis.c $(@D)/crc.c $(TARGE_LDFLAGS) endef define FIS_INSTALL_TARGET_CMDS $(INSTALL) -m 0755 -D $(@D)/fis $(TARGET_DIR)/sbin/fis endef $(eval $(generic-package))
shibajee/buildroot
package/fis/fis.mk
mk
mit
557
The sed expression is wrong, any flags with '-g' in any position gets zapped, for example: -mfloat-gprs=double (for powerpc e500) -> -mfloatprs=double. Which gives build errors and is perfectly valid in real use scenarios to switch from e500v1 (single precision) code to e500v2 (double precision) code. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> diff -Nura flac-1.3.1.orig/configure flac-1.3.1/configure --- flac-1.3.1.orig/configure 2014-11-27 20:43:29.921303105 -0300 +++ flac-1.3.1/configure 2014-11-27 20:45:33.460250179 -0300 @@ -19870,11 +19870,10 @@ if test "x$debug" = xtrue; then CPPFLAGS="-DDEBUG $CPPFLAGS" - CFLAGS=$(echo "$CFLAGS" | sed 's/-g//') - CFLAGS="-g $CFLAGS" + CFLAGS=$(echo "-g $CFLAGS") else CPPFLAGS="-DNDEBUG $CPPFLAGS" - CFLAGS=$(echo "$CFLAGS" | sed 's/-O2//;s/-g//') + CFLAGS=$(echo "$CFLAGS" | sed 's/-O2//') CFLAGS="-O3 -funroll-loops $CFLAGS" fi
shibajee/buildroot
package/flac/0001-configure-don-t-try-to-unset-g-from-CFLAGS.patch
patch
mit
911
Fix musl compile since it does not define __sigemptyset Downloaded from http://git.alpinelinux.org/cgit/aports/commit/main/flac/sigemptyset.patch?id=49fd0f4cebc46e2753d6a60e450078446f7f18a7 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> --- ./src/libFLAC/cpu.c.orig +++ ./src/libFLAC/cpu.c @@ -243,7 +243,7 @@ struct sigaction sigill_save; struct sigaction sigill_sse; sigill_sse.sa_sigaction = sigill_handler_sse_os; - __sigemptyset(&sigill_sse.sa_mask); + sigemptyset(&sigill_sse.sa_mask); sigill_sse.sa_flags = SA_SIGINFO | SA_RESETHAND; /* SA_RESETHAND just in case our SIGILL return jump breaks, so we don't get stuck in a loop */ if(0 == sigaction(SIGILL, &sigill_sse, &sigill_save)) {
shibajee/buildroot
package/flac/0002-sigemptyset.patch
patch
mit
721
config BR2_PACKAGE_FLAC bool "flac" depends on BR2_USE_WCHAR help FLAC is an Open Source lossless audio codec. http://flac.sourceforge.net/ comment "flac needs a toolchain w/ wchar" depends on !BR2_USE_WCHAR
shibajee/buildroot
package/flac/Config.in
in
mit
220
# From http://downloads.xiph.org/releases/flac/SHA256SUMS.txt sha256 4773c0099dba767d963fd92143263be338c48702172e8754b9bc5103efe1c56c flac-1.3.1.tar.xz
shibajee/buildroot
package/flac/flac.hash
hash
mit
152
################################################################################ # # flac # ################################################################################ FLAC_VERSION = 1.3.1 FLAC_SITE = http://downloads.xiph.org/releases/flac FLAC_SOURCE = flac-$(FLAC_VERSION).tar.xz FLAC_INSTALL_STAGING = YES FLAC_DEPENDENCIES = $(if $(BR2_PACKAGE_LIBICONV),libiconv) FLAC_LICENSE = Xiph BSD-like (libFLAC), GPLv2+ (tools), LGPLv2.1+ (other libraries) FLAC_LICENSE_FILES = COPYING.Xiph COPYING.GPL COPYING.LGPL FLAC_CONF_OPTS = \ --disable-cpplibs \ --disable-xmms-plugin \ --disable-altivec ifeq ($(BR2_PACKAGE_LIBOGG),y) FLAC_CONF_OPTS += --with-ogg=$(STAGING_DIR)/usr FLAC_DEPENDENCIES += libogg else FLAC_CONF_OPTS += --disable-ogg endif ifeq ($(BR2_X86_CPU_HAS_SSE),y) FLAC_DEPENDENCIES += host-nasm FLAC_CONF_OPTS += --enable-sse else FLAC_CONF_OPTS += --disable-sse endif $(eval $(autotools-package))
shibajee/buildroot
package/flac/flac.mk
mk
mit
921
config BR2_PACKAGE_FLANN bool "flann" depends on BR2_INSTALL_LIBSTDCPP depends on !BR2_STATIC_LIBS # all gcc versions fail to build flann on Microblaze due to # gcc bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69401 depends on !BR2_microblaze help FLANN is a library for performing fast approximate nearest neighbor searches in high dimensional spaces. It contains a collection of algorithms we found to work best for nearest neighbor search and a system for automatically choosing the best algorithm and optimum parameters depending on the dataset. http://www.cs.ubc.ca/research/flann/ if BR2_PACKAGE_FLANN config BR2_PACKAGE_FLANN_EXAMPLES bool "flann examples" help Build and install flann example applications. endif comment "flann needs a toolchain w/ C++, dynamic library" depends on !BR2_microblaze depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS
shibajee/buildroot
package/flann/Config.in
in
mit
903
# Locally calculated sha256 3fec86866987c792c3fce7ecc8ba9d09a003f5d2d1a1ad94864550aad73a5c0b flann-3645f0c30a47267e56e5acdecfc7bac2b76bc3d5.tar.gz
shibajee/buildroot
package/flann/flann.hash
hash
mit
148
################################################################################ # # flann # ################################################################################ FLANN_VERSION = 3645f0c30a47267e56e5acdecfc7bac2b76bc3d5 FLANN_SITE = $(call github,mariusmuja,flann,$(FLANN_VERSION)) FLANN_INSTALL_STAGING = YES FLANN_LICENSE = BSD-3c FLANN_LICENSE_FILES = COPYING FLANN_CONF_OPTS = \ -DBUILD_C_BINDINGS=ON \ -DBUILD_PYTHON_BINDINGS=OFF \ -DBUILD_MATLAB_BINDINGS=OFF \ -DBUILD_EXAMPLES=$(if $(BR2_PACKAGE_FLANN_EXAMPLES),ON,OFF) \ -DUSE_OPENMP=$(if $(BR2_GCC_ENABLE_OPENMP),ON,OFF) \ -DPYTHON_EXECUTABLE=OFF $(eval $(cmake-package))
shibajee/buildroot
package/flann/flann.mk
mk
mit
650
comment "flannel needs a toolchain w/ threads" depends on BR2_PACKAGE_HOST_GO_ARCH_SUPPORTS && \ BR2_PACKAGE_HOST_GO_CGO_LINKING_SUPPORTS depends on !BR2_TOOLCHAIN_HAS_THREADS config BR2_PACKAGE_FLANNEL bool "flannel" depends on BR2_PACKAGE_HOST_GO_ARCH_SUPPORTS depends on BR2_PACKAGE_HOST_GO_CGO_LINKING_SUPPORTS depends on BR2_TOOLCHAIN_HAS_THREADS help Flannel is a virtual network that gives a subnet to each host for use with container runtimes. https://github.com/coreos/flannel
shibajee/buildroot
package/flannel/Config.in
in
mit
506
# Locally computed: sha256 dbbcb08c0e70713b0c920387a9967e5b30ef833c8118c847edbbca4f68ff0562 v0.5.5.tar.gz
shibajee/buildroot
package/flannel/flannel.hash
hash
mit
106
################################################################################ # # flannel # ################################################################################ FLANNEL_VERSION = v0.5.5 FLANNEL_SITE = https://github.com/coreos/flannel/archive FLANNEL_SOURCE = $(FLANNEL_VERSION).tar.gz FLANNEL_LICENSE = Apache-2.0 FLANNEL_LICENSE_FILES = LICENSE FLANNEL_DEPENDENCIES = host-go FLANNEL_MAKE_ENV = \ $(HOST_GO_TARGET_ENV) \ GOBIN="$(@D)/bin" \ GOPATH="$(@D)/gopath" \ CGO_ENABLED=1 FLANNEL_GLDFLAGS = \ -X github.com/coreos/flannel/version.Version=$(FLANNEL_VERSION) \ ifeq ($(BR2_STATIC_LIBS),y) FLANNEL_GLDFLAGS += -extldflags '-static' endif define FLANNEL_CONFIGURE_CMDS # Put sources at prescribed GOPATH location. mkdir -p $(@D)/gopath/src/github.com/coreos ln -s $(@D) $(@D)/gopath/src/github.com/coreos/flannel endef define FLANNEL_BUILD_CMDS cd $(@D) && $(FLANNEL_MAKE_ENV) $(HOST_DIR)/usr/bin/go \ build -v -o $(@D)/bin/flanneld -ldflags "$(FLANNEL_GLDFLAGS)" . endef define FLANNEL_INSTALL_TARGET_CMDS # Install flannel to its well known location. $(INSTALL) -D -m 0755 $(@D)/bin/flanneld $(TARGET_DIR)/opt/bin/flanneld $(INSTALL) -D -m 0755 $(@D)/dist/mk-docker-opts.sh $(TARGET_DIR)/opt/bin/mk-docker-opts.sh endef $(eval $(generic-package))
shibajee/buildroot
package/flannel/flannel.mk
mk
mit
1,293
config BR2_PACKAGE_FLASHBENCH bool "flashbench" help Flashbench - Identify characteristics of flash media. This is the tool used to identify the properties of SD cards and other media for the Linaro flash memory survey. https://wiki.linaro.org/WorkingGroups/KernelConsolidation/Projects/FlashCardSurvey
shibajee/buildroot
package/flashbench/Config.in
in
mit
322
################################################################################ # # flashbench # ################################################################################ FLASHBENCH_VERSION = 2e30b1968a66147412f21002ea844122a0d5e2f0 FLASHBENCH_SITE = git://git.linaro.org/people/arnd/flashbench.git FLASHBENCH_LICENSE = GPLv2 FLASHBENCH_LICENSE_FILES = COPYING FLASHBENCH_CFLAGS = $(TARGET_CFLAGS) ifeq ($(BR2_microblaze)$(BR2_sh2a),y) # microblaze and sh2a toolchains only provide LLONG_MAX when used with gnu99 dialect FLASHBENCH_CFLAGS += -std=gnu99 endif define FLASHBENCH_BUILD_CMDS $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(FLASHBENCH_CFLAGS)" \ LDFLAGS="$(TARGET_LDFLAGS) -lrt" endef define FLASHBENCH_INSTALL_TARGET_CMDS $(INSTALL) -m 755 -D $(@D)/flashbench $(TARGET_DIR)/usr/bin/flashbench $(INSTALL) -m 755 -D $(@D)/erase $(TARGET_DIR)/usr/bin/erase endef $(eval $(generic-package))
shibajee/buildroot
package/flashbench/flashbench.mk
mk
mit
927
linux_spi: add missing include Some defines (e.g. _IOC_SIZEBITS) are defined in linux/ioctl.h, so it must be included before it is used, by SPI_IOC_MESSAGE from linux/spi/spidev.h Fixes build errors with the musl C library, as seen in these Buildroot autobuilder failures: http://autobuild.buildroot.org/results/2a3/2a3744007c630c267575a638ebcd83a4b97644f5/build-end.log http://autobuild.buildroot.org/results/3de/3de936d9be79e151e66af15193084d82a0f2c04a/build-end.log Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> diff -durN flashrom-0.9.8.orig/linux_spi.c flashrom-0.9.8/linux_spi.c --- flashrom-0.9.8.orig/linux_spi.c 2015-10-28 19:42:38.480285847 +0100 +++ flashrom-0.9.8/linux_spi.c 2015-10-28 19:43:15.492994613 +0100 @@ -27,6 +27,7 @@ #include <ctype.h> #include <unistd.h> #include <linux/types.h> +#include <linux/ioctl.h> #include <linux/spi/spidev.h> #include <sys/ioctl.h> #include "flash.h"
shibajee/buildroot
package/flashrom/0001-spi.patch
patch
mit
934
hwaccess: sys/io.h is not specific to glibc Under Linux, sys/io.h provides inb and outb, so we really need it. However, its inclusion is conditional to the _GLIBC_ define. This is usually OK under Linux, since both glibc and uClibc define it (uclibc fakes being glibc). But the musl C library does not impersonate glibc, so we're missing including sys/io.h in this case. Change the include from checking _GLIBC_ to checking whether this is Linux, looking for the __linux__ define. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> diff -durN flashrom-0.9.8.orig/hwaccess.h flashrom-0.9.8/hwaccess.h --- flashrom-0.9.8.orig/hwaccess.h 2015-02-10 09:03:10.000000000 +0100 +++ flashrom-0.9.8/hwaccess.h 2015-10-28 20:01:54.259202484 +0100 @@ -27,7 +27,7 @@ #include "platform.h" #if IS_X86 -#if defined(__GLIBC__) +#if defined(__linux__) #include <sys/io.h> #endif #endif
shibajee/buildroot
package/flashrom/0002-sys-io.h.patch
patch
mit
888
config BR2_PACKAGE_FLASHROM bool "flashrom" select BR2_PACKAGE_PCIUTILS select BR2_PACKAGE_LIBUSB select BR2_PACKAGE_LIBUSB_COMPAT select BR2_PACKAGE_LIBFTDI # dmidecode is only a runtime dependency select BR2_PACKAGE_DMIDECODE depends on BR2_i386 || BR2_x86_64 depends on BR2_TOOLCHAIN_HAS_THREADS # libusb help flashrom is a utility for identifying, reading, writing, verifying and erasing flash chips. It is designed to flash BIOS/EFI/coreboot/firmware/optionROM images on mainboards, network/graphics/storage controller cards, and various other programmer devices. http://flashrom.org/ comment "flashrom needs a toolchain w/ threads" depends on BR2_i386 || BR2_x86_64 depends on !BR2_TOOLCHAIN_HAS_THREADS
shibajee/buildroot
package/flashrom/Config.in
in
mit
743
# Locally computed sha256 13dc7c895e583111ecca370363a3527d237d178a134a94b20db7df177c05f934 flashrom-0.9.8.tar.bz2
shibajee/buildroot
package/flashrom/flashrom.hash
hash
mit
114
################################################################################ # # flashrom # ################################################################################ FLASHROM_VERSION = 0.9.8 FLASHROM_SOURCE = flashrom-$(FLASHROM_VERSION).tar.bz2 FLASHROM_SITE = http://download.flashrom.org/releases FLASHROM_DEPENDENCIES = pciutils libusb libusb-compat libftdi host-pkgconf FLASHROM_LICENSE = GPLv2+ FLASHROM_LICENSE_FILES = COPYING define FLASHROM_BUILD_CMDS $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) endef define FLASHROM_INSTALL_TARGET_CMDS $(INSTALL) -m 0755 -D $(@D)/flashrom $(TARGET_DIR)/usr/sbin/flashrom endef $(eval $(generic-package))
shibajee/buildroot
package/flashrom/flashrom.mk
mk
mit
683
diff -rup flex-2.5.33.orig/Makefile.in flex-2.5.33/Makefile.in --- flex-2.5.33.orig/Makefile.in 2007-01-18 17:29:25.000000000 +0100 +++ flex-2.5.33/Makefile.in 2007-01-18 18:28:22.000000000 +0100 @@ -105,7 +105,6 @@ am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)" libLIBRARIES_INSTALL = $(INSTALL_DATA) LIBRARIES = $(lib_LIBRARIES) -AR = ar ARFLAGS = cru libfl_a_AR = $(AR) $(ARFLAGS) libfl_a_LIBADD =
shibajee/buildroot
package/flex/0001-prog-ar.patch
patch
mit
427
From a5cbe929ac3255d371e698f62dc256afe7006466 Mon Sep 17 00:00:00 2001 From: Will Estes <westes575@gmail.com> Date: Sat, 27 Feb 2016 11:56:05 -0500 Subject: [PATCH] Fixed incorrect integer type Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> --- Status: upstream flex.skl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flex.skl b/src/flex.skl index 36a526a..64f853d 100644 --- a/flex.skl +++ b/flex.skl @@ -1703,7 +1703,7 @@ int yyFlexLexer::yy_get_next_buffer() else { - yy_size_t num_to_read = + int num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; while ( num_to_read <= 0 )
shibajee/buildroot
package/flex/0002-fix-CVE-2016-6354.patch
patch
mit
661
config BR2_PACKAGE_FLEX bool "flex" select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE help A fast lexical analyser generator. A tool for generating programs that perform pattern-matching on text. http://flex.sourceforge.net/
shibajee/buildroot
package/flex/Config.in
in
mit
246
# Locally computed: sha256 bf693433a3effe6b1f42e44abd787491e4e213984b1859545b92267a86088dd3 flex-2.5.37.tar.gz
shibajee/buildroot
package/flex/flex.hash
hash
mit
113
################################################################################ # # flex # ################################################################################ FLEX_VERSION = 2.5.37 FLEX_SITE = http://download.sourceforge.net/project/flex FLEX_INSTALL_STAGING = YES FLEX_LICENSE = FLEX FLEX_LICENSE_FILES = COPYING FLEX_DEPENDENCIES = \ $(if $(BR2_PACKAGE_GETTEXT_IF_LOCALE),gettext) host-m4 FLEX_CONF_ENV = ac_cv_path_M4=/usr/bin/m4 # we don't have a host-gettext/libintl HOST_FLEX_DEPENDENCIES = host-m4 define FLEX_DISABLE_PROGRAM $(SED) 's/^bin_PROGRAMS.*//' $(@D)/Makefile.in endef FLEX_POST_PATCH_HOOKS += FLEX_DISABLE_PROGRAM # flex++ symlink is broken when flex binary is not installed define FLEX_REMOVE_BROKEN_SYMLINK rm -f $(TARGET_DIR)/usr/bin/flex++ endef FLEX_POST_INSTALL_TARGET_HOOKS += FLEX_REMOVE_BROKEN_SYMLINK $(eval $(autotools-package)) $(eval $(host-autotools-package))
shibajee/buildroot
package/flex/flex.mk
mk
mit
913
config BR2_PACKAGE_FLICKCURL bool "flickcurl" select BR2_PACKAGE_LIBCURL select BR2_PACKAGE_LIBXML2 # Ensure that libcurl is built with crypto support, since # flickcurl must access https:// URLs. select BR2_PACKAGE_OPENSSL if !(BR2_PACKAGE_GNUTLS || BR2_PACKAGE_LIBNSS) select BR2_PACKAGE_CA_CERTIFICATES # runtime help Flickcurl is a C library for the Flickr API, handling creating the requests, signing, token management, calling the API, marshalling request parameters and decoding responses. http://librdf.org/flickcurl/ config BR2_PACKAGE_FLICKCURL_UTILS bool "flickcurl utilities" depends on BR2_PACKAGE_FLICKCURL help Install flickcurl utilites (flickcurl + flickrdf) to target.
shibajee/buildroot
package/flickcurl/Config.in
in
mit
718
# Locally calculated after checking pgp signature sha256 ff42a36c7c1c7d368246f6bc9b7d792ed298348e5f0f5d432e49f6803562f5a3 flickcurl-1.26.tar.gz
shibajee/buildroot
package/flickcurl/flickcurl.hash
hash
mit
144
################################################################################ # # flickcurl # ################################################################################ FLICKCURL_VERSION = 1.26 FLICKCURL_SITE = http://download.dajobe.org/flickcurl FLICKCURL_LICENSE = LGPLv2.1+ or GPLv2+ or Apache 2.0+ FLICKCURL_LICENSE_FILES = COPYING COPYING.LIB LICENSE-2.0.txt LICENSE.html FLICKCURL_INSTALL_STAGING = YES FLICKCURL_CONFIG_SCRIPTS = flickcurl-config FLICKCURL_CONF_OPTS = --without-curl-config --without-xml2-config --without-raptor FLICKCURL_DEPENDENCIES = libcurl libxml2 host-pkgconf ifeq ($(BR2_PACKAGE_FLICKCURL_UTILS),) define FLICKCURL_REMOVE_UTILS rm -f $(TARGET_DIR)/usr/bin/flickcurl $(TARGET_DIR)/usr/bin/flickrdf endef FLICKCURL_POST_INSTALL_TARGET_HOOKS += FLICKCURL_REMOVE_UTILS endif $(eval $(autotools-package))
shibajee/buildroot
package/flickcurl/flickcurl.mk
mk
mit
845
From 658f3243238efe951f6242fa384e990d77078afc Mon Sep 17 00:00:00 2001 From: Samuel Martin <s.martin49@gmail.com> Date: Fri, 27 Dec 2013 17:42:39 +0100 Subject: [PATCH] now honor DESTDIR env. var. Flite used a handwritten a Makefile which doesn't honor DESTDIR environment variable, though it uses autoconf. Signed-off-by: Samuel Martin <s.martin49@gmail.com> --- config/config.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/config.in b/config/config.in index 914d2bf..43f1a56 100644 --- a/flite-1.4-release/config/config.in +++ b/flite-1.4-release/config/config.in @@ -49,6 +49,6 @@ include $(TOP)/config/$(langvox).lv prefix = @prefix@ exec_prefix = @exec_prefix@ EXEEXT = @EXEEXT@ -INSTALLBINDIR = @bindir@ -INSTALLLIBDIR = @libdir@ -INSTALLINCDIR = @includedir@/flite +INSTALLBINDIR = $(DESTDIR)@bindir@ +INSTALLLIBDIR = $(DESTDIR)@libdir@ +INSTALLINCDIR = $(DESTDIR)@includedir@/flite -- 1.8.5.2
shibajee/buildroot
package/flite/0001-now-honor-DESTDIR-env.-var.patch
patch
mit
960
Use pkg-config to determine alsa link flags. This fixes static linking. Signed-off-by: Baruch Siach <baruch@tkos.co.il> diff -Nuar flite-1.4-release.orig/configure.in flite-1.4-release/configure.in --- flite-1.4-release.orig/flite-1.4-release/configure.in 2009-08-14 23:46:38.000000000 +0300 +++ flite-1.4-release/flite-1.4-release/configure.in 2014-04-30 18:52:33.253297236 +0300 @@ -275,7 +275,10 @@ #endif], [AUDIODRIVER="alsa" AUDIODEFS=-DCST_AUDIO_ALSA - AUDIOLIBS=-lasound]) + AUDIOLIBS=`pkg-config --libs alsa` + if test "$shared" = false; then + AUDIOLIBS=`pkg-config --libs --static alsa` + fi]) AC_CHECK_HEADER(mmsystem.h, [AUDIODRIVER="wince" AUDIODEFS=-DCST_AUDIO_WINCE
shibajee/buildroot
package/flite/0002-fix-alsa-static.patch
patch
mit
817
[PATCH] fix alsa version check Check the entire alsa version, and not just the subminor - As this broke with the recent alsa 1.0.x -> 1.1.0 release. It is not clear what major/minor versions the check was supposed to be against (0.9 or 1.0). I went with 1.0.11 to be on the safe side. Signed-off-by: Peter Korsgaard <peter@korsgaard.com> --- flite-1.4-release/configure.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: flite-1.4/flite-1.4-release/configure.in =================================================================== --- flite-1.4.orig/flite-1.4-release/configure.in +++ flite-1.4/flite-1.4-release/configure.in @@ -270,7 +270,7 @@ # the one I know -- you can still specific --with-audio=alsa AC_TRY_COMPILE([#include <alsa/version.h>], [int j= - #if SND_LIB_SUBMINOR >= 11 + #if SND_LIB_VERSION >= 0x1000b 3; #endif], [AUDIODRIVER="alsa"
shibajee/buildroot
package/flite/0003-fix-alsa-version-check.patch
patch
mit
971
config BR2_PACKAGE_FLITE bool "flite" depends on BR2_USE_WCHAR help Flite: a small, fast run time synthesis engine. Flite (festival-lite) is a small, fast run-time synthesis engine developed at CMU and primarily designed for small embedded machines and/or large servers. Flite is designed as an alternative synthesis engine to Festival for voices built using the FestVox suite of voice building tools. http://www.speech.cs.cmu.edu/flite comment "flite needs a toolchain w/ wchar" depends on !BR2_USE_WCHAR
shibajee/buildroot
package/flite/Config.in
in
mit
534
# locally computed hash sha256 45c662160aeca6560589f78daf42ab62c6111dd4d244afc28118c4e6f553cd0c flite-1.4-release.tar.bz2
shibajee/buildroot
package/flite/flite.hash
hash
mit
122
################################################################################ # # flite # ################################################################################ FLITE_VERSION = 1.4 FLITE_SOURCE = flite-$(FLITE_VERSION)-release.tar.bz2 FLITE_SITE = http://www.speech.cs.cmu.edu/flite/packed/flite-$(FLITE_VERSION) # $ tar tf flite-1.4-release.tar.bz2 # ... # flite-1.4-release//install-sh # flite-1.4-release//mkinstalldirs # flite-1.4-release//Exports.def # flite-1.4-release//flite.sln # flite-1.4-release//fliteDll.vcproj # flite-1.4-release/config/Makefile # flite-1.4-release/config/common_make_rules # flite-1.4-release/config/project.mak # flite-1.4-release/config/config.in # flite-1.4-release/config/system.mak.in # # So, we set FLITE_STRIP_COMPONENTS=0 to avoid writing to "/", and then # build in flite-1.4-release/ FLITE_STRIP_COMPONENTS = 0 FLITE_SUBDIR = flite-$(FLITE_VERSION)-release FLITE_LICENSE = BSD-4c FLITE_LICENSE_FILES = $(FLITE_SUBDIR)/COPYING FLITE_INSTALL_STAGING = YES # Patching configure.in FLITE_AUTORECONF = YES FLITE_DEPENDENCIES = host-pkgconf # Sadly, Flite does not support parallel build, especially when building its # shared libraries. FLITE_MAKE = $(MAKE1) ifeq ($(BR2_PACKAGE_ALSA_LIB),y) FLITE_DEPENDENCIES += alsa-lib FLITE_CONF_OPTS += --with-audio=alsa else FLITE_CONF_OPTS += --with-audio=oss endif $(eval $(autotools-package))
shibajee/buildroot
package/flite/flite.mk
mk
mit
1,391
config BR2_PACKAGE_FLOT bool "flot" select BR2_PACKAGE_JQUERY help Flot is a pure Javascript plotting library for jQuery. It produces graphical plots of arbitrary datasets on-the-fly client-side. The focus is on simple usage (all settings are optional), attractive looks and interactive features like zooming and mouse tracking. The plugin works with Internet Explorer 6+, Firefox 2.x+, Safari 3.0+, Opera 9.5+ and Konqueror 4.x+ with the HTML canvas tag. http://www.flotcharts.org/ if BR2_PACKAGE_FLOT comment "flot plugins" config BR2_PACKAGE_FLOT_CANVAS bool "canvas" help Flot plugin to render axis tick labels directly to the canvas config BR2_PACKAGE_FLOT_CATEGORIES bool "categories" help Flot plugin for plotting textual data or categories config BR2_PACKAGE_FLOT_CROSSHAIR bool "crosshair" help Flot plugin for showing crosshairs when the mouse hovers over the plot config BR2_PACKAGE_FLOT_ERRORBARS bool "errorbars" help Flot plugin for plotting error bars config BR2_PACKAGE_FLOT_FILLBETWEEN bool "fillbetween" help Flot plugin for computing bottoms for filled line and bar charts config BR2_PACKAGE_FLOT_IMAGE bool "image" help Flot plugin for plotting images config BR2_PACKAGE_FLOT_NAVIGATE bool "navigate" help Flot plugin for adding panning and zooming capabilities to a plot config BR2_PACKAGE_FLOT_PIE bool "pie" help Flot plugin for rendering pie charts config BR2_PACKAGE_FLOT_RESIZE bool "resize" help Flot plugin for automatically redrawing plots when the placeholder size changes. config BR2_PACKAGE_FLOT_SELECTION bool "selection" help Flot plugin for selecting regions config BR2_PACKAGE_FLOT_STACK bool "stack" help Flot plugin for stacking data sets config BR2_PACKAGE_FLOT_SYMBOL bool "symbol" help Flot plugin that adds some extra symbols for plotting points config BR2_PACKAGE_FLOT_THRESHOLD bool "threshold" help Flot plugin for thresholding data config BR2_PACKAGE_FLOT_TIME bool "time" help Flot plugin for handling time axes endif
shibajee/buildroot
package/flot/Config.in
in
mit
2,094
# Locally calculated sha256 ef9a873befe3ff5ea42ebf1c3657887265a1717744ca8ed0c2bd3dd736d16b21 flot-0.8.3.tar.gz
shibajee/buildroot
package/flot/flot.hash
hash
mit
111
################################################################################ # # flot # ################################################################################ FLOT_VERSION = 0.8.3 FLOT_SITE = http://www.flotcharts.org/downloads FLOT_LICENSE = MIT FLOT_LICENSE_FILES = LICENSE.txt FLOT_FILES = jquery.flot $(addprefix jquery.flot.,\ $(if $(BR2_PACKAGE_FLOT_CANVAS),canvas) \ $(if $(BR2_PACKAGE_FLOT_CATEGORIES),categories) \ $(if $(BR2_PACKAGE_FLOT_CROSSHAIR),crosshair) \ $(if $(BR2_PACKAGE_FLOT_ERRORBARS),errorbars) \ $(if $(BR2_PACKAGE_FLOT_FILLBETWEEN),fillbetween) \ $(if $(BR2_PACKAGE_FLOT_IMAGE),image) \ $(if $(BR2_PACKAGE_FLOT_NAVIGATE),navigate) \ $(if $(BR2_PACKAGE_FLOT_PIE),pie) \ $(if $(BR2_PACKAGE_FLOT_RESIZE),resize) \ $(if $(BR2_PACKAGE_FLOT_SELECTION),selection) \ $(if $(BR2_PACKAGE_FLOT_STACK),stack) \ $(if $(BR2_PACKAGE_FLOT_SYMBOL),symbol) \ $(if $(BR2_PACKAGE_FLOT_THRESHOLD),threshold) \ $(if $(BR2_PACKAGE_FLOT_TIME),time) \ ) define FLOT_INSTALL_TARGET_CMDS for i in $(FLOT_FILES); do \ $(INSTALL) -m 0644 -D $(@D)/$$i.min.js $(TARGET_DIR)/var/www/$$i.js || exit 1; \ done endef $(eval $(generic-package))
shibajee/buildroot
package/flot/flot.mk
mk
mit
1,170
Disable tests, slower to build and would need host-fltk. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> diff -Nura fltk-1.3.2.orig/Makefile fltk-1.3.2/Makefile --- fltk-1.3.2.orig/Makefile 2013-10-27 18:19:39.693208127 -0300 +++ fltk-1.3.2/Makefile 2013-10-27 18:20:08.032136885 -0300 @@ -18,7 +18,7 @@ include makeinclude -DIRS = $(IMAGEDIRS) src $(CAIRODIR) fluid test documentation +DIRS = $(IMAGEDIRS) src $(CAIRODIR) fluid documentation all: makeinclude fltk-config for dir in $(DIRS); do\
shibajee/buildroot
package/fltk/0001-disable-tests.patch
patch
mit
518
From http://www.fltk.org/str.php?L2920 However it's not yet applied apparently until bundled jpeg is upgraded. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> diff -Nura fltk-1.3.2.orig/src/Fl_JPEG_Image.cxx fltk-1.3.2/src/Fl_JPEG_Image.cxx --- fltk-1.3.2.orig/src/Fl_JPEG_Image.cxx 2014-07-03 12:56:27.731197463 -0300 +++ fltk-1.3.2/src/Fl_JPEG_Image.cxx 2014-07-03 12:56:57.907218257 -0300 @@ -155,7 +155,7 @@ jpeg_create_decompress(&dinfo); jpeg_stdio_src(&dinfo, fp); - jpeg_read_header(&dinfo, 1); + jpeg_read_header(&dinfo, TRUE); dinfo.quantize_colors = (boolean)FALSE; dinfo.out_color_space = JCS_RGB; @@ -333,7 +333,7 @@ jpeg_create_decompress(&dinfo); jpeg_mem_src(&dinfo, data); - jpeg_read_header(&dinfo, 1); + jpeg_read_header(&dinfo, TRUE); dinfo.quantize_colors = (boolean)FALSE; dinfo.out_color_space = JCS_RGB;
shibajee/buildroot
package/fltk/0002-jpeg-9.patch
patch
mit
904
config BR2_PACKAGE_FLTK bool "fltk" depends on BR2_INSTALL_LIBSTDCPP depends on BR2_PACKAGE_XORG7 depends on BR2_USE_MMU # fork() select BR2_PACKAGE_JPEG select BR2_PACKAGE_LIBPNG select BR2_PACKAGE_XLIB_LIBXT select BR2_PACKAGE_XLIB_LIBX11 select BR2_PACKAGE_XLIB_LIBXEXT help A cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. http://www.fltk.org/ comment "fltk needs a toolchain w/ C++" depends on BR2_USE_MMU && BR2_PACKAGE_XORG7 depends on !BR2_INSTALL_LIBSTDCPP
shibajee/buildroot
package/fltk/Config.in
in
mit
527
# From http://www.fltk.org/software.php?VERSION=1.3.3 md5 9ccdb0d19dc104b87179bd9fd10822e3 fltk-1.3.3-source.tar.gz # Locally generated sha256 f8398d98d7221d40e77bc7b19e761adaf2f1ef8bb0c30eceb7beb4f2273d0d97 fltk-1.3.3-source.tar.gz
shibajee/buildroot
package/fltk/fltk.hash
hash
mit
233
################################################################################ # # fltk # ################################################################################ FLTK_VERSION = 1.3.3 FLTK_SOURCE = fltk-$(FLTK_VERSION)-source.tar.gz FLTK_SITE = http://fltk.org/pub/fltk/$(FLTK_VERSION) FLTK_INSTALL_STAGING = YES # We force --libdir=/usr/lib, because by default, it is set to # ${exec_prefix}/lib, which doesn't match the condition used by the # fltk build system to decide whether it should pass a -rpath,/usr/lib # or not. Since this rpath breaks the build, we want the fltk build # system to not pass it, which requires having --libdir set to # /usr/lib. FLTK_CONF_OPTS = --enable-threads --with-x --disable-gl \ --disable-localjpeg --disable-localpng --disable-localzlib \ --libdir=/usr/lib FLTK_DEPENDENCIES = jpeg libpng xlib_libX11 xlib_libXext xlib_libXt FLTK_CONFIG_SCRIPTS = fltk-config FLTK_LICENSE = LGPLv2 with exceptions FLTK_LICENSE_FILES = COPYING ifeq ($(BR2_PACKAGE_CAIRO),y) FLTK_CONF_OPTS += --enable-cairo FLTK_DEPENDENCIES += cairo endif ifeq ($(BR2_PACKAGE_XLIB_LIBXCURSOR),y) FLTK_DEPENDENCIES += xlib_libXcursor FLTK_CONF_OPTS += --enable-xcursor else FLTK_CONF_OPTS += --disable-xcursor endif ifeq ($(BR2_PACKAGE_XLIB_LIBXFIXES),y) FLTK_DEPENDENCIES += xlib_libXfixes FLTK_CONF_OPTS += --enable-xfixes else FLTK_CONF_OPTS += --disable-xfixes endif ifeq ($(BR2_PACKAGE_XLIB_LIBXFT),y) FLTK_CONF_ENV += ac_cv_path_FTCONFIG=$(STAGING_DIR)/usr/bin/freetype-config FLTK_DEPENDENCIES += xlib_libXft else FLTK_CONF_OPTS += --disable-xft endif ifeq ($(BR2_PACKAGE_XLIB_LIBXINERAMA),y) FLTK_DEPENDENCIES += xlib_libXinerama else FLTK_CONF_OPTS += --disable-xinerama endif $(eval $(autotools-package))
shibajee/buildroot
package/fltk/fltk.mk
mk
mit
1,737
config BR2_PACKAGE_FLUXBOX bool "fluxbox" depends on BR2_PACKAGE_XORG7 depends on BR2_INSTALL_LIBSTDCPP depends on BR2_USE_MMU # fork() select BR2_PACKAGE_XLIB_LIBX11 # Runtime dependency, needed by startup script select BR2_PACKAGE_XAPP_XMODMAP help The Fluxbox lightweight window manager for X http://fluxbox.org comment "fluxbox needs a toolchain w/ C++" depends on BR2_USE_MMU depends on BR2_PACKAGE_XORG7 && !BR2_INSTALL_LIBSTDCPP
shibajee/buildroot
package/fluxbox/Config.in
in
mit
454
# Locally computed: sha256 fc8c75fe94c54ed5a5dd3fd4a752109f8949d6df67a48e5b11a261403c382ec0 fluxbox-1.3.7.tar.xz
shibajee/buildroot
package/fluxbox/fluxbox.hash
hash
mit
115
################################################################################ # # fluxbox # ################################################################################ FLUXBOX_VERSION = 1.3.7 FLUXBOX_SOURCE = fluxbox-$(FLUXBOX_VERSION).tar.xz FLUXBOX_SITE = http://downloads.sourceforge.net/project/fluxbox/fluxbox/$(FLUXBOX_VERSION) FLUXBOX_LICENSE = MIT FLUXBOX_LICENSE_FILES = COPYING FLUXBOX_CONF_OPTS = \ --x-includes=$(STAGING_DIR)/usr/include/X11 \ --x-libraries=$(STAGING_DIR)/usr/lib FLUXBOX_DEPENDENCIES = xlib_libX11 $(if $(BR2_PACKAGE_LIBICONV),libiconv) ifeq ($(BR2_PACKAGE_FREETYPE),y) FLUXBOX_CONF_OPTS += --enable-freetype2 FLUXBOX_DEPENDENCIES += freetype else FLUXBOX_CONF_OPTS += --disable-freetype2 endif ifeq ($(BR2_PACKAGE_IMLIB2_X),y) FLUXBOX_CONF_OPTS += --enable-imlib2 FLUXBOX_DEPENDENCIES += imlib2 else FLUXBOX_CONF_OPTS += --disable-imlib2 endif ifeq ($(BR2_PACKAGE_LIBFRIBIDI),y) FLUXBOX_CONF_OPTS += --enable-fribidi FLUXBOX_DEPENDENCIES += libfribidi else FLUXBOX_CONF_OPTS += --disable-fribidi endif ifeq ($(BR2_PACKAGE_XLIB_LIBXFT),y) FLUXBOX_CONF_OPTS += --enable-xft FLUXBOX_DEPENDENCIES += xlib_libXft else FLUXBOX_CONF_OPTS += --disable-xft endif ifeq ($(BR2_PACKAGE_XLIB_LIBXRENDER),y) FLUXBOX_CONF_OPTS += --enable-xrender FLUXBOX_DEPENDENCIES += xlib_libXrender else FLUXBOX_CONF_OPTS += --disable-xrender endif ifeq ($(BR2_PACKAGE_XLIB_LIBXPM),y) FLUXBOX_CONF_OPTS += --enable-xpm FLUXBOX_DEPENDENCIES += xlib_libXpm else FLUXBOX_CONF_OPTS += --disable-xpm endif ifeq ($(BR2_PACKAGE_XLIB_LIBXINERAMA),y) FLUXBOX_CONF_OPTS += --enable-xinerama FLUXBOX_DEPENDENCIES += xlib_libXinerama else FLUXBOX_CONF_OPTS += --disable-xinerama endif ifeq ($(BR2_PACKAGE_XLIB_LIBXEXT),y) FLUXBOX_CONF_OPTS += --enable-xext FLUXBOX_DEPENDENCIES += xlib_libXext else FLUXBOX_CONF_OPTS += --disable-xext endif ifeq ($(BR2_PACKAGE_XLIB_LIBXRANDR),y) FLUXBOX_CONF_OPTS += --enable-xrandr FLUXBOX_DEPENDENCIES += xlib_libXrandr else FLUXBOX_CONF_OPTS += --disable-xrandr endif define FLUXBOX_INSTALL_XSESSION_FILE $(INSTALL) -m 0755 -D package/fluxbox/xsession \ $(TARGET_DIR)/root/.xsession endef FLUXBOX_POST_INSTALL_TARGET_HOOKS += FLUXBOX_INSTALL_XSESSION_FILE $(eval $(autotools-package))
shibajee/buildroot
package/fluxbox/fluxbox.mk
mk
mit
2,241
#!/bin/sh exec startfluxbox
shibajee/buildroot
package/fluxbox/xsession
none
mit
28