diff options
author | Andreas Müller <schnitzeltony@googlemail.com> | 2017-01-19 08:53:26 +0100 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-01-25 16:00:01 +0100 |
commit | 0bb9d1dedcb9512a186f27aebcf6f71615ad0da4 (patch) | |
tree | fabcc827a235f8df73b4fec9cd6398c45cf9ef49 /meta-oe/recipes-support/fltk | |
parent | afe081f582f43e299846196c3e3cd2faa89bcc8f (diff) | |
download | meta-openembedded-0bb9d1dedcb9512a186f27aebcf6f71615ad0da4.tar.gz |
fltk: update 1.3.3 -> 1.3.4-1
* fix-boolean-issue-with-jpeg9.patch was applied upstream
* rebased fltk-no-freetype-config.patch and add Upstream-Status
* fix reconfigure by disabling autoheader
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/fltk')
-rw-r--r-- | meta-oe/recipes-support/fltk/fltk/fix-boolean-issue-with-jpeg9.patch | 40 | ||||
-rw-r--r-- | meta-oe/recipes-support/fltk/fltk/fltk-no-freetype-config.patch | 40 | ||||
-rw-r--r-- | meta-oe/recipes-support/fltk/fltk_1.3.4-1.bb (renamed from meta-oe/recipes-support/fltk/fltk_1.3.3.bb) | 18 |
3 files changed, 38 insertions, 60 deletions
diff --git a/meta-oe/recipes-support/fltk/fltk/fix-boolean-issue-with-jpeg9.patch b/meta-oe/recipes-support/fltk/fltk/fix-boolean-issue-with-jpeg9.patch deleted file mode 100644 index 014184d533..0000000000 --- a/meta-oe/recipes-support/fltk/fltk/fix-boolean-issue-with-jpeg9.patch +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | From 14c22398f8370e33a798360ed0dad513af8f1470 Mon Sep 17 00:00:00 2001 | ||
2 | From: AlbrechtS <AlbrechtS@ea41ed52-d2ee-0310-a9c1-e6b18d33e121> | ||
3 | Date: Sun, 15 Mar 2015 19:32:33 +0000 | ||
4 | Subject: [PATCH] Fix 'boolean' issue with jpeg-9 library compatibility (STR | ||
5 | #2920). | ||
6 | |||
7 | According to comments in STR #2920 and my own tests this is also | ||
8 | compatible with older jpeg libraries (at least jpeg-8). | ||
9 | |||
10 | Upstream-Status: Backport | ||
11 | |||
12 | --- | ||
13 | src/Fl_JPEG_Image.cxx | 4 ++-- | ||
14 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
15 | |||
16 | diff --git a/src/Fl_JPEG_Image.cxx b/src/Fl_JPEG_Image.cxx | ||
17 | index 47120a7..6cebe88 100644 | ||
18 | --- a/src/Fl_JPEG_Image.cxx | ||
19 | +++ b/src/Fl_JPEG_Image.cxx | ||
20 | @@ -155,7 +155,7 @@ Fl_JPEG_Image::Fl_JPEG_Image(const char *filename) // I - File to load | ||
21 | |||
22 | jpeg_create_decompress(&dinfo); | ||
23 | jpeg_stdio_src(&dinfo, fp); | ||
24 | - jpeg_read_header(&dinfo, 1); | ||
25 | + jpeg_read_header(&dinfo, TRUE); | ||
26 | |||
27 | dinfo.quantize_colors = (boolean)FALSE; | ||
28 | dinfo.out_color_space = JCS_RGB; | ||
29 | @@ -337,7 +337,7 @@ Fl_JPEG_Image::Fl_JPEG_Image(const char *name, const unsigned char *data) | ||
30 | |||
31 | jpeg_create_decompress(&dinfo); | ||
32 | jpeg_mem_src(&dinfo, data); | ||
33 | - jpeg_read_header(&dinfo, 1); | ||
34 | + jpeg_read_header(&dinfo, TRUE); | ||
35 | |||
36 | dinfo.quantize_colors = (boolean)FALSE; | ||
37 | dinfo.out_color_space = JCS_RGB; | ||
38 | -- | ||
39 | 1.7.9.5 | ||
40 | |||
diff --git a/meta-oe/recipes-support/fltk/fltk/fltk-no-freetype-config.patch b/meta-oe/recipes-support/fltk/fltk/fltk-no-freetype-config.patch index 4d13ffc5d7..2a9915bea7 100644 --- a/meta-oe/recipes-support/fltk/fltk/fltk-no-freetype-config.patch +++ b/meta-oe/recipes-support/fltk/fltk/fltk-no-freetype-config.patch | |||
@@ -1,20 +1,40 @@ | |||
1 | --- a/configure.in.orig 2015-11-26 14:30:17.893426966 +0800 | 1 | From 699420d306cadbb5285942e09f4383d84b01985d Mon Sep 17 00:00:00 2001 |
2 | +++ b/configure.in 2015-11-26 14:33:00.285424099 +0800 | 2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com> |
3 | @@ -969,12 +969,12 @@ case $host_os_gui in | 3 | Date: Fri, 13 Jan 2017 13:21:23 +0100 |
4 | AC_ARG_ENABLE(xft, [ --enable-xft turn on Xft support [[default=yes]]]) | 4 | Subject: [PATCH] replace freetype-config by pkg-config |
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | |||
11 | Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> | ||
12 | --- | ||
13 | configure.ac | 10 +++++----- | ||
14 | 1 file changed, 5 insertions(+), 5 deletions(-) | ||
15 | |||
16 | diff --git a/configure.ac b/configure.ac | ||
17 | index f0efd48..3af5ecb 100644 | ||
18 | --- a/configure.ac | ||
19 | +++ b/configure.ac | ||
20 | @@ -1006,12 +1006,12 @@ case $host_os_gui in | ||
5 | 21 | ||
22 | xft_found=no | ||
6 | if test x$enable_xft != xno; then | 23 | if test x$enable_xft != xno; then |
7 | - AC_PATH_PROG(FTCONFIG,freetype-config) | 24 | - AC_PATH_PROG(FTCONFIG, freetype-config) |
8 | + AC_PATH_PROG(PKGCONFIG,pkg-config) | 25 | + AC_PATH_PROG(PKGCONFIG,pkg-config) |
9 | 26 | ||
10 | - if test "x$FTCONFIG" != x; then | 27 | - if test "x$FTCONFIG" != x; then |
11 | - CPPFLAGS="`$FTCONFIG --cflags` $CPPFLAGS" | 28 | - CPPFLAGS="`$FTCONFIG --cflags` $CPPFLAGS" |
12 | - CFLAGS="`$FTCONFIG --cflags` $CFLAGS" | 29 | - CFLAGS="`$FTCONFIG --cflags` $CFLAGS" |
13 | - CXXFLAGS="`$FTCONFIG --cflags` $CXXFLAGS" | 30 | - CXXFLAGS="`$FTCONFIG --cflags` $CXXFLAGS" |
14 | + if test "x$PKGCONFIG" != x; then | 31 | + if test "x$PKGCONFIG" != x; then |
15 | + CPPFLAGS="`$PKGCONFIG --cflags xft` $CPPFLAGS" | 32 | + CPPFLAGS="`$PKGCONFIG --cflags xft` $CPPFLAGS" |
16 | + CFLAGS="`$PKGCONFIG --cflags xft` $CFLAGS" | 33 | + CFLAGS="`$PKGCONFIG --cflags xft` $CFLAGS" |
17 | + CXXFLAGS="`$PKGCONFIG --cflags xft` $CXXFLAGS" | 34 | + CXXFLAGS="`$PKGCONFIG --cflags xft` $CXXFLAGS" |
18 | 35 | ||
19 | AC_CHECK_LIB(fontconfig, FcPatternCreate) | 36 | AC_CHECK_LIB(fontconfig, FcPatternCreate) |
20 | AC_CHECK_HEADER(X11/Xft/Xft.h, | 37 | AC_CHECK_HEADER(X11/Xft/Xft.h, |
38 | -- | ||
39 | 2.7.4 | ||
40 | |||
diff --git a/meta-oe/recipes-support/fltk/fltk_1.3.3.bb b/meta-oe/recipes-support/fltk/fltk_1.3.4-1.bb index efba3a9d2d..f08d547900 100644 --- a/meta-oe/recipes-support/fltk/fltk_1.3.3.bb +++ b/meta-oe/recipes-support/fltk/fltk_1.3.4-1.bb | |||
@@ -6,17 +6,19 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=f6b26344a24a941a01a5b0826e80b5ca" | |||
6 | 6 | ||
7 | DEPENDS = "alsa-lib zlib jpeg libpng libxext libxft" | 7 | DEPENDS = "alsa-lib zlib jpeg libpng libxext libxft" |
8 | 8 | ||
9 | SRC_URI = "http://fltk.org/pub/fltk/${PV}/${BP}-source.tar.gz \ | 9 | SRC_URI = " \ |
10 | file://disable_test.patch \ | 10 | http://fltk.org/pub/fltk/1.3.4/${BP}-source.tar.gz \ |
11 | file://fltk-no-freetype-config.patch \ | 11 | file://disable_test.patch \ |
12 | file://fix-boolean-issue-with-jpeg9.patch \ | 12 | file://fltk-no-freetype-config.patch \ |
13 | " | 13 | " |
14 | 14 | ||
15 | SRC_URI[md5sum] = "9ccdb0d19dc104b87179bd9fd10822e3" | 15 | SRC_URI[md5sum] = "d7fcd27ab928648e1a1366dd2e273970" |
16 | SRC_URI[sha256sum] = "f8398d98d7221d40e77bc7b19e761adaf2f1ef8bb0c30eceb7beb4f2273d0d97" | 16 | SRC_URI[sha256sum] = "7fb2c8882433ce694e6900c94fda505e8f4ed3fa9c7e597007098a33b85c53f4" |
17 | 17 | ||
18 | inherit autotools-brokensep binconfig pkgconfig lib_package | 18 | inherit autotools-brokensep binconfig pkgconfig lib_package |
19 | 19 | ||
20 | EXTRA_AUTORECONF = "--exclude=autopoint,autoheader" | ||
21 | |||
20 | TARGET_CC_ARCH += "${LDFLAGS} -DXFT_MAJOR=2" | 22 | TARGET_CC_ARCH += "${LDFLAGS} -DXFT_MAJOR=2" |
21 | 23 | ||
22 | EXTRA_OECONF = "--enable-shared \ | 24 | EXTRA_OECONF = "--enable-shared \ |
@@ -32,10 +34,6 @@ PACKAGECONFIG[xinerama] = "--enable-xinerama,--disable-xinerama,libxinerama" | |||
32 | PACKAGECONFIG[xfixes] = "--enable-xfixes,--disable-xfixes,libxfixes" | 34 | PACKAGECONFIG[xfixes] = "--enable-xfixes,--disable-xfixes,libxfixes" |
33 | PACKAGECONFIG[xcursor] = "--enable-xcursor,--disable-xcursor,libxcursor" | 35 | PACKAGECONFIG[xcursor] = "--enable-xcursor,--disable-xcursor,libxcursor" |
34 | 36 | ||
35 | do_configure() { | ||
36 | oe_runconf | ||
37 | } | ||
38 | |||
39 | do_install_append_class-target() { | 37 | do_install_append_class-target() { |
40 | sed -i -e 's,${STAGING_DIR_HOST},,g' ${D}${bindir}/fltk-config | 38 | sed -i -e 's,${STAGING_DIR_HOST},,g' ${D}${bindir}/fltk-config |
41 | } | 39 | } |