Commit graph

16 commits

Author SHA1 Message Date
Peter Korsgaard d5eeda4958 libfreeimage: correct 0005-Manage-powf64-with-glibc.patch line endings
Fixes:
http://autobuild.buildroot.net/results/131/131f97d2c3525794163e5c7863bb8b8523fb05ba/

The libfreeimage source code uses DOS line endings, which gets stripped by
patchwork so the patch no longer applies.  Fix it by converting line endings
of the patch hunks to DOS (but not the patch meta data).

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2018-05-06 22:51:35 +02:00
Fabrice Fontaine e321d955fa libfreeimage: fix build with glibc
Add patch to rename powf64 into powf_64 as powf64 is already defined in
glibc

Fixes:
 - http://autobuild.buildroot.net/results/9b1e6d63db9eae46a92487713b0d72bd039deaba

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2018-05-03 21:51:01 +02:00
Fabrice Fontaine 6fbe5ea7b1 libfreeimage: add hash for license files
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2018-04-29 23:03:41 +02:00
Thomas Petazzoni 7a03caaa13 package: remove Blackfin related code
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2018-04-15 22:05:30 +02:00
Maxime Hadjinlian 514291f39e packages: use new $($PKG)_DL_DIR) variable
Instead of DL_DIR, the package should now use $(PKG)_DL_DIR to ease the
transition into a new directory structure for DL_DIR.

This commit has been generated with the following scripts:

for i in $(find . -iname "*.mk"); do
	if ! grep -q "\$(DL_DIR)" ${i}; then
		continue
	fi
	pkg_name="$(basename $(dirname ${i}))"
	[ "${pkg_name}" = "package" ] && continue
	raw_pkg_name=$(echo ${pkg_name} | tr [a-z] [A-Z] | tr '-' '_')
	pkg_dl_dir="${raw_pkg_name}_DL_DIR"
	sed -i "s/\$(DL_DIR)/\$($pkg_dl_dir)/" ${i}
done

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2018-04-02 15:53:53 +02:00
Ricardo Martincoski 9576defc4b package: remove empty line at end of file
Occurrences were searched using [1]:
check-package --include-only EmptyLastLine $(find * -type f)
and manually removed.

[1] http://patchwork.ozlabs.org/patch/729666/

Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2017-04-06 22:40:07 +02:00
Rahul Bedarkar 337aa51f3f boot, package: use SPDX short identifier for GPLv3/GPLv3+
We want to use SPDX identifier for license string as much as possible.
SPDX short identifier for GPLv3/GPLv3+ is GPL-3.0/GPL-3.0+.

This change is done using following command.
find . -name "*.mk" | xargs sed -ri '/LICENSE( )?[\+:]?=/s/\<GPLv3\>/GPL-3.0/g'

Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2017-04-01 15:17:59 +02:00
Rahul Bedarkar af31c309e7 boot, linux, package: use SPDX short identifier for GPLv2/GPLv2+
We want to use SPDX identifier for license strings as much as possible.
SPDX short identifier for GPLv2/GPLv2+ is GPL-2.0/GPL-2.0+.

This change is done by using following command.
find . -name "*.mk" | xargs sed -ri '/LICENSE( )?[\+:]?=/s/\<GPLv2\>/GPL-2.0/g'

Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2017-04-01 15:16:38 +02:00
Gustavo Zacarias 0c5e57f973 libfreeimage: use $(TARGET_MAKE_ENV) when calling $(MAKE)
Signed-off-by: Gustavo Zacarias <gustavo.zacarias@free-electrons.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-10-15 14:17:37 +02:00
Yann E. MORIN 70dbe298f4 package/libfreeimage: fix C++11 compliance with gcc-6
Like in cbe01f6, 38249d5, 97fe953, fix C++11 compliance regarding
narrowing types.

Fixes:
    http://autobuild.buildroot.org/results/081/0811531872f69f9febbdc482dfbdd7fb5c35d1c8/
    http://autobuild.buildroot.org/results/90c/90c9cb4ffe705b8c91f4fb602e33e2ba9bcdee77/
    and a few others...

[Peter: use signed char for src[], fix dos/unix new lines]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2016-08-29 12:25:35 +02:00
Peter Korsgaard c626998d47 libfreeimage: fix build issue with gcc 5.x
Fixes:
http://autobuild.buildroot.net/results/fe9/fe9c5ee9cdc52c48df5efe7560ccd5a0d3cde154/
http://autobuild.buildroot.net/results/358/3580d520da6f8d8f4ffeffcd2b969ebb0851ad37/
http://autobuild.buildroot.net/results/0cb/0cb2f0c69301c7a85a354c435da245cd904533fb/
http://autobuild.buildroot.net/results/52c/52c2967015aa79843db05e901a1563447a4029b2/

gcc 5.x gets confused by the string literals used in the inline assembly in
the files from the embedded libwebp library.  This issue is already fixed in
upstream libwebp, but that fix is not directly applicable to the tweaked version
embedded in libfreeimage.

I haven't been able to find a public VCS for libfreeimage, but the issue has
been discussed on the freeimage list:

http://sourceforge.net/p/freeimage/discussion/36110/thread/605ef8e4/

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2015-11-24 21:36:12 +01:00
Brendan Heading 5f893d0818 packages/libfreeimage: requires wchar
Fixes http://autobuild.buildroot.net/results/6e9/6e9f2bf02e0a165826e9fab194d6bad7901051a9/

Signed-off-by: Brendan Heading <brendanheading@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-07-29 13:01:51 +02:00
Thomas Petazzoni 6e55cd5d60 libfreeimage: disable on ARC and Blackfin
libfreeimage fails to build on ARC, due to compiler issues:

  Error: invalid register number `63'

This should probably be fixed at the compiler level.

It also fails to build on Blackfin, due to numerous libfreeimage
issues:

  1/ Missing LL suffixes in Source/OpenEXR/IlmImf/ImfFastHuf.cpp. This
     can be fixed by backporting upstream OpenEXR commit
     57ecf581d0.patch.

  2/ Invalid characters in libraw_x3f.cpp. This can be fixed by
     applying dos2unix on the file.

  3/ Usage of too long constants in an unsigned long in
     dcraw_common.cpp, in code like "id == 0x4434303430" where id is
     an "unsigned long" i.e 32 bits on 32 bits platform.

Due to (3) being apparently unsolved upstream, and causing a build
error on Blackfin, we disable libfreeimage on this
architecture. However, this code seems so broken that making
libfreeimage as entirely broken would maybe be a better option.

Fixes:

  http://autobuild.buildroot.org/results/b33/b3372581c82786cc0a87f8cc2e78f047cc079255/ (ARC issue)
  http://autobuild.buildroot.org/results/f3b/f3bd6be448cffed3caae7850233168e6d0f6a5bd/ (Blackfin issue)

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2015-05-03 19:33:52 +02:00
Thomas Petazzoni 21c656bc47 libfreeimage: add patch to fix x86 build problem
Add a patch to fix an x86 build problem caused by invalid register
usage when -fPIC is used.

Fixes:

  http://autobuild.buildroot.org/results/fe7/fe72243a84a91b68ef3138847294674b36f16c58/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2015-05-03 19:33:31 +02:00
Romain Naour db6cda67ac package/libfreeimage: needs C++ support
Fixes:
http://autobuild.buildroot.net/results/f52/f52dd2939984cd7a6926b8ad6d5be13dcf3afae8

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-04-16 07:49:05 +02:00
Rémi Rérolle cbb5177a18 libfreeimage: new package
FreeImage is an Open Source library project for developers who would like to
support popular graphics image formats like PNG, BMP, JPEG, TIFF and others as
needed by today's multimedia applications.

See: http://freeimage.sourceforge.net

[Thomas:
  - add hash file
  - add dependency on !BR2_STATIC_LIBS, since the build system of
    libfreeimage always tries to build a shared library.]

Signed-off-by: Rémi Rérolle <remi.rerolle@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-04-13 22:35:27 +02:00