Commit Graph

50 Commits

Author SHA1 Message Date
Mark Linimon
05948ae4d9 Add patch forgotten in previous commit. Some code for big-endian
architectures is obsolete.

PR:		232381
Submitted by:	Piotr Kubaj
2018-11-24 09:19:35 +00:00
Mark Linimon
92ef57ed47 Fix build on GCC-based architectures.
PR:		232381
Submitted by:	Piotr Kubaj
2018-10-28 11:26:05 +00:00
Tobias Kortkamp
12b47f0d2d graphics/freeimage: Amend patch introduced in r479150
While there is an additional check on 'handle' in psdParser::Save()
later it should be done earlier as intended and not just commented
out because of Clang/libc++ regressions.
2018-09-07 17:14:41 +00:00
Steve Wills
63c489d2ad graphics/freeimage: Upgrade to 3.18.0
PR:		231165
Submitted by:	Nathan <ndowens@yahoo.com>
2018-09-06 19:39:45 +00:00
Gerald Pfeifer
09f9633cb6 Bump PORTREVISION for ports depending on the canonical version of GCC
in the ports tree (via Mk/bsd.default-versions.mk and lang/gcc) which
has now moved from GCC 6 to GCC 7 by default.

This includes ports
 - featuring USE_GCC=yes or USE_GCC=any,
 - featuring USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and those
 - with USES=compiler specifying one of openmp, nestedfct, c11, c++0x,
   c++11-lib, c++11-lang, c++14-lang, c++17-lang, or gcc-c++11-lib.

PR:		222542
2018-07-29 22:18:44 +00:00
Mark Linimon
c7df1277c6 Mark these ports broken on mips64 and/or mips.
While here, pet portlint.

Approved by:	portmgr (tier-2 blanket)
2018-07-01 09:17:45 +00:00
Jan Beich
1c4eec3721 graphics/freeimage: unbreak consumers on arm* with NEON
$ echo 'int main() {}' | cc -xc - -o /dev/null -L/usr/local/lib -lfreeimage -lm
/usr/local/lib/libfreeimage.so: undefined reference to `png_init_filter_functions_neon'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
2018-04-16 00:37:31 +00:00
Jan Beich
7a15de1168 graphics/freeimage: unbreak on armv7
/usr/bin/ld: ./Source/FreeImage/BitmapAccess.o(.text+0x2d0): unresolvable R_ARM_MOVW_ABS_NC relocation against symbol `_ZSt7nothrow'
/usr/bin/ld: final link failed: Nonrepresentable section on output
cc: error: linker command failed with exit code 1 (use -v to see invocation)
2018-04-15 23:57:59 +00:00
Jan Beich
1ce36a57d2 graphics/freeimage: unbreak build with Clang 6 (C++14 by default)
Source/LibRawLite/./internal/dcraw_common.cpp:2042:17: error: constant expression evaluates to -2 which cannot be narrowed to type 'char' [-Wc++11-narrowing]
    1,0, 2,2, 2,-2,
                ^~
Source/LibRawLite/./internal/dcraw_common.cpp:2042:17: note: insert an explicit cast to silence this issue
    1,0, 2,2, 2,-2,
                ^~
                static_cast<char>( )
[...]

Reported by:	pkg-fallout (armv6, armv7, aarch64)
2018-04-15 23:57:45 +00:00
Sunpoet Po-Chuan Hsieh
51ebd65b05 Fix CVE-2016-5684
- Bump PORTREVISION for package change

Obtained from:	https://sourceforge.net/p/freeimage/svn/1735/
		https://sourceforge.net/p/freeimage/svn/1740/
Security:	5b1631dc-eafd-11e6-9ac1-a4badb2f4699
MFH:		2018Q2
2018-04-15 19:12:19 +00:00
Jan Beich
9c1afe1f60 graphics/freeimage: unbreak build with Clang 6 (C++14 by default)
Source/LibRawLite/./internal/dcraw_common.cpp:3786:19: error: constant expression evaluates to 128 which cannot be narrowed to type 'signed char' [-Wc++11-narrowing]
    -1,-2,-1,+0,0,0x80, -1,-2,+0,-1,0,0x01, -1,-2,+1,-1,0,0x01,
                  ^~~~
Source/LibRawLite/./internal/dcraw_common.cpp:3786:19: note: insert an explicit cast to silence this issue
    -1,-2,-1,+0,0,0x80, -1,-2,+0,-1,0,0x01, -1,-2,+1,-1,0,0x01,
                  ^~~~
                  static_cast<signed char>( )
Source/LibRawLite/./internal/dcraw_common.cpp:3787:39: error: constant expression evaluates to 136 which cannot be narrowed to type 'signed char' [-Wc++11-narrowing]
    -1,-2,+1,+0,1,0x01, -1,-1,-1,+1,0,0x88, -1,-1,+1,-2,0,0x40,
                                      ^~~~
Source/LibRawLite/./internal/dcraw_common.cpp:3787:39: note: insert an explicit cast to silence this issue
    -1,-2,+1,+0,1,0x01, -1,-1,-1,+1,0,0x88, -1,-1,+1,-2,0,0x40,
                                      ^~~~
                                      static_cast<signed char>( )
Source/LibRawLite/./internal/dcraw_common.cpp:3794:19: error: constant expression evaluates to 128 which cannot be narrowed to type 'signed char' [-Wc++11-narrowing]
    +0,-2,+0,+0,1,0x80, +0,-1,+0,+1,1,0x88, +0,-1,+1,-2,0,0x40,
                  ^~~~
Source/LibRawLite/./internal/dcraw_common.cpp:3794:19: note: insert an explicit cast to silence this issue
    +0,-2,+0,+0,1,0x80, +0,-1,+0,+1,1,0x88, +0,-1,+1,-2,0,0x40,
                  ^~~~
                  static_cast<signed char>( )
Source/LibRawLite/./internal/dcraw_common.cpp:3794:39: error: constant expression evaluates to 136 which cannot be narrowed to type 'signed char' [-Wc++11-narrowing]
    +0,-2,+0,+0,1,0x80, +0,-1,+0,+1,1,0x88, +0,-1,+1,-2,0,0x40,
                                      ^~~~
Source/LibRawLite/./internal/dcraw_common.cpp:3794:39: note: insert an explicit cast to silence this issue
    +0,-2,+0,+0,1,0x80, +0,-1,+0,+1,1,0x88, +0,-1,+1,-2,0,0x40,
                                      ^~~~
                                      static_cast<signed char>( )
Source/LibRawLite/./internal/dcraw_common.cpp:3800:59: error: constant expression evaluates to 128 which cannot be narrowed to type 'signed char' [-Wc++11-narrowing]
    +0,+1,+2,+1,0,0x20, +0,+1,+2,+2,0,0x10, +1,-2,+1,+0,0,0x80,
                                                          ^~~~
Source/LibRawLite/./internal/dcraw_common.cpp:3800:59: note: insert an explicit cast to silence this issue
    +0,+1,+2,+1,0,0x20, +0,+1,+2,+2,0,0x10, +1,-2,+1,+0,0,0x80,
                                                          ^~~~
                                                          static_cast<signed char>( )
Source/LibRawLite/./internal/dcraw_common.cpp:3801:19: error: constant expression evaluates to 136 which cannot be narrowed to type 'signed char' [-Wc++11-narrowing]
    +1,-1,+1,+1,0,0x88, +1,+0,+1,+2,0,0x08, +1,+0,+2,-1,0,0x40,
                  ^~~~
Source/LibRawLite/./internal/dcraw_common.cpp:3801:19: note: insert an explicit cast to silence this issue
    +1,-1,+1,+1,0,0x88, +1,+0,+1,+2,0,0x08, +1,+0,+2,-1,0,0x40,
                  ^~~~
                  static_cast<signed char>( )
Source/LibRawLite/./internal/dcraw_common.cpp:7384:23: error: constant expression evaluates to 65535 which cannot be narrowed to type 'short' [-Wc++11-narrowing]
    { "Red One", 704, 0xffff,           /* DJC */
                      ^~~~~~
Source/LibRawLite/./internal/dcraw_common.cpp:7384:23: note: insert an explicit cast to silence this issue
    { "Red One", 704, 0xffff,           /* DJC */
                      ^~~~~~
                      static_cast<short>( )
Source/LibRawLite/./internal/dcraw_common.cpp:7943:30: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
      is_raw += (i = get4()) && 1;
                             ^  ~
Source/LibRawLite/./internal/dcraw_common.cpp:7943:30: note: use '&' for a bitwise operation
      is_raw += (i = get4()) && 1;
                             ^~
                             &
Source/LibRawLite/./internal/dcraw_common.cpp:7943:30: note: remove constant to silence this warning
      is_raw += (i = get4()) && 1;
                            ~^~~~
Source/LibRawLite/./internal/dcraw_common.cpp:9239:30: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
  strcpy (th->soft, "dcraw v"DCRAW_VERSION);
                             ^

Reported by:	antoine (via bug 224669)
Obtained from:	upstream (LibRaw 0.17.0)
2018-01-06 02:14:57 +00:00
Gerald Pfeifer
e59c88cece Bump PORTREVISION for ports depending on the canonical version of GCC
(via Mk/bsd.default-versions.mk and lang/gcc) which has moved from
GCC 5.4 to GCC 6.4 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c++11-lib, c++11-lang,
   c++14-lang, c++0x, c11, or gcc-c++11-lib.

PR:		219275
2017-09-10 20:55:38 +00:00
Gerald Pfeifer
04d6f52202 Bump PORTREVISIONs for ports depending on the canonical version of GCC and
lang/gcc which have moved from GCC 4.9.4 to GCC 5.4 (at least under some
circumstances such as versions of FreeBSD or platforms).

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using using Mk/bsd.octave.mk which in turn has USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c++11-lib, c++14-lang,
   c++11-lang, c++0x, c11, or gcc-c++11-lib.

PR:		216707
2017-04-01 15:23:30 +00:00
Koop Mast
1efaab2644 Fix included dcraw vulnability.
Fix integer overflow in PluginPCX.cpp. [1]

Add dcraw files to dos2unix so patching is easier.

Obtained from:	Debian freeimage package (both patches)
Security:	33459061-a1d6-11e5-8794-bcaec565249c [1]
2015-12-13 20:26:24 +00:00
Alexey Dokuchaev
09e628a79a Unbreak the build on PowerPC by using modern compiler (GCC). The problem
was the same as fixed recently in r401989 since FreeImage bundles its own
copy of OpenEXR.
2015-11-21 17:25:56 +00:00
Alexey Dokuchaev
4cdb62cb77 Add a comment that version 3.17.0 is available, but does not build on i386. 2015-08-18 16:08:37 +00:00
Andrew Turner
605de447c0 Adds -fPIC to CFLAGS_aarch64 to a number of ports that already have it
in the amd64 CFLAGS and are failing to build.

Approved by:	bapt
Differential Revision:	https://reviews.freebsd.org/D3321
2015-08-09 22:24:04 +00:00
Pietro Cerutti
c020107379 - Reset maintainership of my ports 2014-12-10 22:29:14 +00:00
Antoine Brodin
c18e3316de Unbreak on 8amd64 and 9amd64, gcc from base fails to compile it 2014-06-17 17:45:14 +00:00
Alexey Dokuchaev
a666d7948a - Update to version 3.16.0
- Make use of CFLAGS_amd64 and thus simplify the Makefile
- Do not hardcode ${GMAKE}, correctly call it via ${MAKE_CMD}
- Sort USES values, sanitize port-build/install commands

Approved by:	gahr (maintainer)
2014-06-12 08:49:38 +00:00
Tijl Coosemans
f191d6b887 Quote ${CC} and similar variables in MAKE_ARGS.
Reported by:	Dominic Fandrey <kamikaze@bsdforen.de>
2014-05-20 19:32:39 +00:00
Baptiste Daroussin
665bec206d Convert g* to USES=zip 2014-03-10 14:49:26 +00:00
Pietro Cerutti
6226549f27 - Fix staging as non-root
PR:		186143
Submitted by:	Stephen Montgomery-Smith <stephen@missouri.edu>
2014-01-27 09:13:02 +00:00
Pietro Cerutti
cf83bbbd15 - Fix installed symlink [1]
- STAGE-clean
- Convert to USES=dos2unix

Reported by:	antoine [1]
2013-12-20 12:55:36 +00:00
Baptiste Daroussin
eb08c5441c Add NO_STAGE all over the place in preparation for the staging support (cat: graphics) 2013-09-20 18:35:44 +00:00
Baptiste Daroussin
fdfa66bdb5 Fix build without gcc by making sure gmake is invoked with the proper make environnement during
post-build and post-install
2013-08-26 10:36:29 +00:00
Baptiste Daroussin
5b2b48cf64 Fix build without gcc 2013-08-01 06:35:28 +00:00
Pietro Cerutti
56c0db8402 - Fix shlib symlinks
- Bump PORTREVISION

PR:		180169
Submitted by:	Andrea Venturoli <ml@netfence.it>
2013-07-08 15:01:51 +00:00
Pietro Cerutti
d7d153bc58 - Install the C++ wrapper FreeImagePlus as well
- Fix COMMENT and pkg-descr
- Bump PORTREVISION

PR:		178450
Submitted by:	thierry
2013-05-09 16:46:32 +00:00
Pietro Cerutti
a7caa28d30 - Update to 3.15.4
See: http://freeimage.sourceforge.net/news.html

Notified by:	danfe
2013-01-30 14:13:20 +00:00
Pietro Cerutti
b58edf79eb - restore original CFLAGS to avoid symbols clash
PR:		164285
Submitted by:	Lee Thomas <lee_thomas@lthomas.net>
2012-02-06 11:44:40 +00:00
Alexey Dokuchaev
a505479dc9 Add missing comma before conjunction word.
Approved by:	maintainer
Feature safe:	yes
2011-11-23 17:56:44 +00:00
Alexey Dokuchaev
a0d9cf54a5 Update to release 3.15.1 which is a maintenance release that brings several
fixes for TIFF, JPEG, BMP, PCX, and CUT plugins.  The most significant fixes
concern the security against malicious images, so that an update is highly
recommended.

Approved by:	maintainer
Feature safe:	yes
2011-11-23 17:55:39 +00:00
Pietro Cerutti
b6c8e4e88d - Update to 3.15.0
Release 3.15.0 mainly add support for thumbnail loading / saving, as well as
  better support for JPEG, Exif, TIFF, TARGA, ICO, PSD, BMP formats.
  The library has been updated with the new libjpeg (8c), libtiff (3.9.4),
  libpng (1.4.5), OpenJPEG (1.4.0) and libraw (0.13-Beta3) libraries.

PR:		156303
Submitted by:	Pedro Giffuni <giffunip@tutopia.com>
2011-04-11 07:23:44 +00:00
Pietro Cerutti
f565761baf - Update to 3.14.1
- Makefile cleanup

PR:		153178
Submitted by:	Alexey Dokuchaev <danfe@regency.nsu.ru>
2010-12-20 09:00:38 +00:00
Dmitry Marakasov
6b5fb87219 - Switch SourceForge ports to the new File Release System: categories starting with G 2009-08-22 00:23:13 +00:00
Pietro Cerutti
b78286130c - Fix PLIST
Reported by:	QA Tindie
2009-07-02 06:39:02 +00:00
Pietro Cerutti
d7ec45064c - Update to 3.12.0 2009-07-01 20:24:50 +00:00
Pietro Cerutti
a5f3f72336 - Remove dependency on memalign
PR:		129388
Submitted by:	Jacob Atzen <jatzen@gmail.com>
2008-12-03 16:29:37 +00:00
Pietro Cerutti
c9530d16ae - Try to fix build on amd64
Reported by:	QA Tindie
2008-09-24 22:36:22 +00:00
Pietro Cerutti
aef10e4bd1 - Update to 3.11.0 2008-09-24 21:12:05 +00:00
Pietro Cerutti
37bcd0d237 - Additional fix-it patch 2008-06-13 14:20:57 +00:00
Pietro Cerutti
76b6ca5bf8 - Unbreak on amd64
- Fix on sparc64
- Move pkg-plist to PLIST_FILES
- Take maintainship
2008-06-13 14:04:39 +00:00
Pav Lucistnik
4abeb0f326 - Mark BROKEN on amd64:
error: no matching function for call to `MIN(int&, long int)
- While here, convert INSTALLS_SHLIB to USE_LDCONFIG
2008-04-01 22:11:32 +00:00
Munechika SUMIKAWA
86a19a3a0b Upgrade to 3.10.0. 2008-03-17 11:16:52 +00:00
Andrey Slusar
c505a741c9 Update to 3.9.3 2007-03-11 01:46:03 +00:00
Mark Linimon
2db91e4f1f Reset whitekid@gmail.com after timeouts and no response to email.
Hat:		portmgr
2006-12-13 12:56:01 +00:00
Cheng-Lung Sung
d751732a3a - update to 3.8.0
PR:		ports/97200
Submitted by:	Martin Wilke <freebsd_AT_unixfreunde dot de>
Approved by:	maintainer (Choe, Cheng-Dae)
2006-05-15 05:35:01 +00:00
Edwin Groothuis
c92c635b24 SHA256ify
Approved by: krion@
2006-01-22 12:42:24 +00:00
Pav Lucistnik
4d78a5a768 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. FreeImage is easy to use, fast,
multithreading safe, compatible with all 32-bit versions of Windows, and
cross-platform (works both with Linux and Mac OS X).

PR:		ports/85552
Submitted by:	"Choe, Cheng-Dae" <whitekid@gmail.com>
2005-09-04 22:25:41 +00:00