Commit graph

129 commits

Author SHA1 Message Date
nia
12234093cf imlib2: Update to 1.7.1
***
*** Version 1.7.1 ***
***

Daniel Kolesa (1):
      Fix big endian build

Kim Woelders (6):
      rend.c: Fix __imlib_generic_render() when jump != 0
      grab.c: Support 30bpp display in __imlib_GrabXImageToRGBA()
      WEBP loader: Add initial signature check
      XPM loader: Get transparency right when doing header-only loading
      Silence a couple of sign-compare warnings
      1.7.1
2021-01-24 15:15:46 +00:00
gutteridge
d92a1df8cd imlib2: fix big-endian builds 2020-08-17 02:52:52 +00:00
nia
973ad8682a imlib2: Update to 1.7.0
***
*** Version 1.7.0 ***
***

Alexander Volkov (3):
      GIF loader: Don't close file descriptor twice
      Introduce imlib_load_image_from_fd()
      Don't rescan loaders

Kim Woelders (49):
      XPM loader: Major speedup for cpp > 2
      imlib2_load: Properly check non-full loads (load data too)
      imlib2_load: Use getopt()
      imlib2_load: Add repeated load option
      Simplify __imlib_FileExtension()
      Refactor many __imlib_File...() functions to use common __imlib_FileStat()
      Drop the __imlib_IsRealFile() file check in __imlib_File...() functions
      image.c: Add some space for readability
      image.c: Remove some unnecessary clearing of calloc'ed structs
      image.c: Rework some obscure file name stuff in __imlib_SaveImage()
      image.c: Don't strdup() real_name when not necessary in __imlib_LoadImage()
      image.c: Use real_file to get file time
      image.c: Introduce __imlib_ErrorFromErrno()
      image.c: Use loader return value, not im->w to determine load success
      Loader cleanups
      Saver cleanups
      image.c/h: Cleanups
      image.c: Move image tag functions to separate file
      image.c: Move loader functions to separate file
      image.c: Enable non-dirty pixmap cache cleaning
      image.c: Minor refactoring of pixmap cache cleaners
      image.c: Move data_memory_func assignment to better place
      imlib2_view: Various tweaks
      Fix loader cleanup breakage (gif)
      image.c: Remove redundant pixmap unref
      image.c: Add infrastructure to simplify progress handling
      Loaders: Simplify/fix progress handling
      Savers: Simplify progress handling
      Introduce __imlib_LoadEmbedded()
      Introduce __imlib_LoaderSetFormats()
      Make ImlibLoader struct opaque
      autogen.sh: Add -n as alternative to NOCONFIGURE
      Fix enum conversion warnings (gcc10)
      JPG, PNG loaders: Avoid clobber warnings
      Add a couple of consts
      TIFF loader: Minor speedup
      ID3 loader: Some mostly cosmetic rearrangements
      GZ, BZ2 loaders: Accept more file names
      __imlib_FileExtension: Use basename if there are no dots
      Revert "JPG, PNG loaders: Avoid clobber warnings"
      JPG, PNG loaders: Avoid clobber warnings - Take N+1
      Add infrastructure for new loader entry - load2()
      Move loaders to load2()
      Reduce number of stat() calls during load
      configure.ac: Drop initial config.cache removal
      imlib2_load: Optionally use imlib_load_image_fd()
      Fix build without X11
      Remove a couple of unused includes
      1.7.0

Tobias Stoeckmann (2):
      ICO loader: Do not crash on invalid files
      ICO loader: Handle malloc failures
2020-08-09 15:44:44 +00:00
jperkin
38fe454b9c *: Apply revbump for graphics/giflib API change. 2020-06-05 12:48:58 +00:00
rillig
32fff82029 graphics/imlib2: only define SUBST block if necessary 2020-04-25 17:23:44 +00:00
nia
a71155b430 imlib2: Update to 1.6.1
***
*** Version 1.6.1 ***
***

Kim Woelders (11):
      gz loader: Use FILE, not fd
      gz, bz2 loaders: Fix recent breakage when file name has more than two dots
      Quit on 'q' or 'esc' key press in all imlib2_... test utilities
      Rename imlib2_test_load to imlib2_load
      imlib2_load: Optionally write to stderr instead of stdout
      imlib2_view: Add progress debug options
      Enable specifying loader/filter paths with environment variables
      BMP loader: Remove some bogus conditions
      XPM loader: Minor optimization for cpp > 2
      LBM loader: Fix header-only loading
      1.6.1

Luiz Carlos Ramos (1):
      BMP loader: Fix size calculation when saving files


***
*** Version 1.6.0 ***
***

Alexander Volkov (1):
      Allow to use custom memory management functions for loaded images

Kim Woelders (64):
      Add __imlib_LoadImageWrapper() handling all load() calls
      imlib2_conv: Report error on save failure
      Autofoo cosmetics
      Trivial cleanups in imlib2_... test programs
      Add imlib2_test_load program
      Cleanups in load() functions
      Centralize handling of im->format
      Sort loaders in Makefile.am
      Remove obsolete dmalloc stuff
      Move SWAP.. macro definitions to common.h
      Use common PIXEL_ARGB() macro to compose pixels
      Add new ICO loader
      Spec file simlifications and cleanups
      Fix memory leak in imlib_list_fonts()
      XPM loader: Refactor exit cleanup handling
      XPM loader: Fix potentially uninitialized pixel data
      XPM loader: Fixup after "Refactor exit cleanup handling"
      Revert "XPM loader: Fix potentially uninitialized pixel data"
      XPM loader: Cosmetics (reduce indent level)
      XPM loader: Fix several colormap issues
      XPM loader: Simplify pixel value handling
      XPM loader: Add missing pixels (malformed xpm)
      XPM loader: More simplifications
      JPG loader: Refactor
      JPG loader: Do proper CMYK conversion
      Add new WebP loader
      Remove pointless im->data checks in loaders
      WepP loader: Fix memory leak in error path
      JPG loader: Fix memory leaks in error paths
      Fix ABI break
      ICO loader: Add binary flag to fopen()
      JPG loader: Refactor error handling
      Rename/add byte swap macros
      BMP loader: Major makeover - numerous bug fixes and feature enhancements
      Miscellaneous imlib_test_load tweaks
      GZIP loader: Check filename before uncompress
      imlib2_test_load: Fixup after recent change
      Re-indent everything using indent-2.2.12
      TGA loader: Refactor
      Eliminate WRITE_RGBA()
      Simplify autogen.sh
      Simplify pixel color handling in api.c
      Use pixel instead of r,b,g,a in __imlib_render_str()
      Use macro for pixel color access in savers
      Eliminate READ_RGBA()
      XPM loader: Accept signature not at the very start of the file
      Simplify loader lookup functions
      imlib2_view: Enable selecting next/prev using keys too
      imlib2_view: Fix event processing bug
      imlib2_test_load: Fixup recent breakage for real
      imlib2_test_load: Check progress conditionally
      imlib2_view: Add verbose option, quit on Escape too
      TGA loader - Mostly cosmetic refactoring
      TGA loader: More mostly cosmetic changes
      TGA loader: Support horiontal flip
      TGA loader: Add simple 16 bpp handling
      TGA loader: Tweak error handling
      ICO loader: Fix non-immediate loading
      Remove __imlib_AllocateData() w,h args
      imlib2_view: Fix next/prev selection if last/first image is bad
      ICO loader: Fix memory leak in error path
      XPM loader: Correct signature check (avoid accessing unset data)
      gz, bz2 loaders: Simplify, eliminate unnecessary strdups, cosmetics
      1.6.0.
2020-02-20 15:14:56 +00:00
leot
b01a543f54 imlib2: Update graphics/imlib to 1.5.1
pkgsrc changes:
- Remove lround patches: lround is no longer used
- Remove #ifndef blocks to rip out XShm support.  Unfortunately
  the logic is much more convoluted now and #ifndef parts of the code
  no longer scale.
  Please note that this can break support on Interix!

Changes:
1.5.1
*****
Kim Woelders (13):
 - Fix build without HAVE_X11_SHM_FD (T6752)
 - XPM loader: Fix potential use of uninitialized value (T6746)
 - BMP loader: Fix infinite loop with invalid bmp images (T6749)
 - PNM loader: Simplify (fixing ASCII format parsing issues T6751)
 - BMP loader: Fix warnings found with -O3
 - Maximum image dimension should be 32767, not 32766
 - PNG loader: Correct various error handling cases
 - Add missing const to imlib_apply_filter() script argument
 - Warning fixes in imlib2_... programs
 - imlib2_view: Limit window dimensions to 32767
 - grab.c: Fix gcc8 warning
 - imlib2_conv.c: Fix gcc8 warning
 - 1.5.1.

1.5.0
*****
Alexander Volkov (3):
 - put a check for shared memory inside __imlib_ShmGetXImage()
 - introduce __imlib_ShmDestroyXImage() instead of __imlib_ShmDetach()
 - Add support for MIT-SHM FD-passing

Kim Woelders (19):
 - XPM loader: Fix incorrect image invalidation.
 - Make some more functions static.
 - Introduce __imlib_LoadImageData()
 - Remove redundant CAST_IMAGE()
 - imlib2_grab: Always use imlib_create_scaled_image_from_drawable() to grab image
 - imlib_create_scaled_image_from_drawable(): speed up 1:1 case
 - imlib_create_scaled_image_from_drawable(): Drop shape handling if unshaped
 - Indent
 - Autofoo cosmetics
 - Strip trailing whitespace, cosmetics
 - Fix potential OOB memory access if border elements are negative
 - Fix potential OOB memory access if border sizes exceed image dimensions
 - Introduce IMLIB2_SHM_OPT to enable overriding/testing SHM modes
 - Add IMLIB2_XIMAGE_CACHE_COUNT to enable testing the ximage cache
 - Refactor the XImage cache
 - Add imlib_get_cache_used()
 - Expose XImage cache control functions
 - Drop -Waggregate-return
 - 1.5.0.
2018-11-29 13:58:58 +00:00
jperkin
5393242c73 *: Move SUBST_STAGE from post-patch to pre-configure
Performing substitutions during post-patch breaks tools such as mkpatches,
making it very difficult to regenerate correct patches after making changes,
and often leading to substituted string replacements being committed.
2018-07-04 13:40:07 +00:00
leot
ab025781ce imlib2: Update graphics/imlib2 to imlib2-1.4.10
Changes:
1.4.10
------
Kim Woelders (2):
 - PNM loader: Fix reading PNM bitmaps.
 - Fix missing break.

Tobias Stoeckmann (3):
 - Avoid out of boundary operations while parsing xpm
 - Properly release resources on error path
 - Prevent OOB read with large file support on 32 bit

From Vicente Chaves via PR pkg/52950.
2018-01-25 20:13:08 +00:00
wiz
a1e4174a9c Follow some http redirects. 2017-08-16 20:21:03 +00:00
leot
c91721eedf Update graphics/imlib2 to 1.4.9.
Changes:
***
*** Version 1.4.9 ***
***
Alexander Smirnov (1):
      Fix cross-endianness for masks (1-bit depth images)
Bernhard Übelacker (1):
      gif: fix oob reads w/bad colormaps
Kim Woelders (16):
      Fix "assuming signed overflow does not occur" warning.
      Fix some "variable set but not used" warnings.
      Fix some "variable might be clobbered" warnings.
      Fix off-by-one OOB read in __imlib_MergeUpdate().
      Revert "gif: fix oob reads w/bad colormaps"
      GIF loader: Fix out-of-bound reads from colormap.
      GIF loader: Remove check made redundant by previous commit.
      GIF loader: Reduce progress checks from per-pixel to per-row.
      GIF loader: Indent.
      Fix potential divide-by-zero in imlib_image_draw_ellipse().
      Make a number of functions static.
      Eliminate pImlibExternalFilter type.
      Trivial file function cleanups.
      Move __imlib_ItemInList() to file.c.
      Fix various potential OOM crashes.
      1.4.9.
Yuriy M. Kaminskiy (3):
      Fix integer overflow resulting in insufficient heap allocation
      loader_xpm: remove nonsense/impossible/broken condition
      Harden API and internals against overly large images

***
*** Version 1.4.8 ***
***
Chloe Kudryavtsev (1):
      add time.h include to common.h for time_t
FRIGN (1):
      Add a Farbfeld loader
Kim Woelders (4):
      Remove redundant config.h.
      Add compile to MAINTAINERCLEANFILES.
      Indent.
      1.4.8.
Quentin Rameau (2):
      Fix bz2 loader filename check
      Fix zlib loader filename check
2016-05-01 20:58:41 +00:00
leot
98ebcd7fab Update graphics/imlib2 to 1.4.7.
pkgsrc changes:
 o Add LICENSE
 o Remove no more needed patches and while here add a comment to all patches

Changes:
Fabian Keil (14):
      Prevent division-by-zero crashes
      imlib_conv: Use proper buffer size to prevent invalid write of size one
      loader_gif: Don't read uninitilized memory in case of invalid input
      loader_gif(): Abort gif parsing if DGifGetLine() fails
      Fix segfault when opening input/queue/id:000007,src:000000,op:flip1,pos:51 with feh
      Make IMAGE_DIMENSIONS_OK() more restrictive
      load_pnm: Deal with fread() errors consistently
      __imlib_LoadImage(): Additionally check loader_ret to detect loader failures
      loader_tga: Abort file loading if the file obviously isn't large enough
      imlib_save_image(): Check loader return code for errors
      loader_tga.c: Properly signal if decoding uncompressed BGRA data failed
      loader_tga.c: Properly signal if decoding RLE compressed data failed
      imlib_save_image_with_error_return(): Check loader return code to prevent use of unitialized memor
      load_gif: Make sure rows isn't used partly unitialized

Heiko Becker (1):
      GIF loader: Fix for libgif version 5.1

Kim Woelders (20):
      GIF loader: Fix for libgif version 5.
      Remove OS/2 support.
      Remove empty format.c/h.
      Header file cleanups.
      GIF loader: Simplify error handling.
      GIF loader: Fix segv on images without colormap.
      Revert "__imlib_LoadImage(): Additionally check loader_ret to detect loader failures"
      Revert "loader_gif(): Abort gif parsing if DGifGetLine() fails"
      JPEG loader: Fix load() return code when only reading header.
      BMP loader: Simplify pixel fetch.
      Autofoo update (AC_PROG_LIBTOOL -> LT_INIT).
      Autofoo macro cleanups (ac_->ec_).
      Change a number of internal function names.
      Indent.
      Don't include Imlib2.h indirectly via image.h.
      Remove __hidden.
      Enable visibility hiding by default.
      Indent the remaining unindented files.
      Generate a ChangeLog using git shortlog between existing tags.

Michał Górny (1):
      fix -I flags to support building out-of-source

Mike Frysinger (5):
      simplify --enable-visibility-hiding handling
      imlib2-config: delete old reference to @my_libs@
      check return value of fread/write funcs
      fix X_DISPLAY_MISSING redefined warnings when X is disabled
      do not link with X libs when X is disabled
2016-01-22 21:06:59 +00:00
agc
7f810a359f Add SHA512 digests for distfiles for graphics category
Problems found with existing digests:
	Package fotoxx distfile fotoxx-14.03.1.tar.gz
	ac2033f87de2c23941261f7c50160cddf872c110 [recorded]
	118e98a8cc0414676b3c4d37b8df407c28a1407c [calculated]
	Package ploticus-examples distfile ploticus-2.00/plnode200.tar.gz
	34274a03d0c41fae5690633663e3d4114b9d7a6d [recorded]
	da39a3ee5e6b4b0d3255bfef95601890afd80709 [calculated]

Problems found locating distfiles:
	Package AfterShotPro: missing distfile AfterShotPro-1.1.0.30/AfterShotPro_i386.deb
	Package pgraf: missing distfile pgraf-20010131.tar.gz
	Package qvplay: missing distfile qvplay-0.95.tar.gz

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
2015-11-03 21:33:50 +00:00
wiz
c26f5ca940 libungif is not relevant any longer since the GIF relevant patents
expired (about 10 years ago).

Unconditionally switch to libgif.

As discussed on tech-pkg without dissent.

Bump PKGREVISION.
2014-05-31 15:56:26 +00:00
adam
163b962b8b Remove @my_libs@ from imlib2-config 2014-05-20 16:18:38 +00:00
adam
af5916ee54 Version 1.4.6
- TGA loader: Fix for corrupt RLE format.
- Fix drawing of closed polygons in certain situations (ticket 2309).
- Set warning options when using gcc.
- Silence compiler warnings.
- Don't set -std=gnu99.
- XPM loader: Simplify and fix certain case of cpp > 2.
2014-05-17 09:25:01 +00:00
obache
f2bb23c4d5 fixes build with giflib>=5.1 2014-05-16 10:19:11 +00:00
wiz
d33dfdeb7c Reset maintainer for resigned developers. 2013-12-23 11:57:02 +00:00
drochner
262537ef34 don't propagate dependency on image format libs, hopefully avoids
unnecessary revbumps in the future
2013-07-17 13:00:05 +00:00
ryoon
f6ca72a5d3 Fix build with giflib 5.0, PR pkg/48021. 2013-07-06 05:58:03 +00:00
ryoon
2193923ba6 Recursive revbump from graphics/giflib update to 5.0.4. 2013-07-05 13:29:28 +00:00
tron
a36fb86593 Try to fix the fallout caused by the fix for PR pkg/47882. Part 3:
Recursively bump package revisions again after the "freetype2" and
"fontconfig" handling was fixed.
2013-06-04 22:15:37 +00:00
wiz
c83ffb8583 Bump freetype2 and fontconfig dependencies to current pkgsrc versions,
to address issues with NetBSD-6(and earlier)'s fontconfig not being
new enough for pango.

While doing that, also bump freetype2 dependency to current pkgsrc
version.

Suggested by tron in PR 47882
2013-06-03 10:04:30 +00:00
joerg
f2b8e46d9a Provide rpath in imlib2-config --libs output. 2013-03-02 18:07:14 +00:00
wiz
0602d449ce Recursive bump for png-1.6. 2013-02-16 11:17:56 +00:00
adam
f4c3b89da7 Revbump after graphics/jpeg and textproc/icu 2013-01-26 21:36:13 +00:00
wiz
2c72a9f0b9 Remove xextproto/buildlink3.mk in most cases where it occurs with
libXext/buildlink3.mk, now that it is included there.
Leave the places where its API version is set or variables from it
are used directly (about 3 packages).
2012-10-23 10:24:02 +00:00
asau
08f35c7155 Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. 2012-10-06 14:10:39 +00:00
joerg
72972c3e32 Drop .extern, it is ignored by GNU as and not supported by LLVM. 2012-06-15 18:52:26 +00:00
wiz
833922aab2 Revbump for
a) tiff update to 4.0 (shlib major change)
b) glib2 update 2.30.2 (adds libffi dependency to buildlink3.mk)

Enjoy.
2012-02-06 12:39:49 +00:00
drochner
49b65739f6 update to 1.4.5
changes:
-bugfixes
-cleanup, spelling fixes
2011-11-07 12:14:15 +00:00
sbd
04daa2f1b8 Recursive bump for graphics/freetype2 buildlink addition. 2011-11-01 06:00:33 +00:00
drochner
07001889d3 update to 1.4.4
changes: misc bugfixes and cleanup

The code structure around Xshm has changed -- someone please
check the Interix specific patches.
2011-05-18 10:04:26 +00:00
obache
d55c2fda79 exactly disable MMX/AMD64 optimization if pkg option is off.
part of PR#44931.
2011-05-04 02:00:02 +00:00
drochner
538974271a libungif/buildlink3.mk -> mk/giflib.buildlink3.mk
(uses giflib now per default)
bump PKGREV
2011-03-09 16:26:47 +00:00
wiz
381781d6d5 Remove obsolete patch (a very similar chunk is nowadays a few lines
higher, where the variables are defined).
2011-01-31 10:23:44 +00:00
wiz
874c6a8ee7 Add comments to patches. 2011-01-31 10:22:26 +00:00
wiz
01ee072450 Remove trailing line (pkglint--).. 2011-01-31 10:21:41 +00:00
wiz
6df031eff7 Fix build with png-1.5. From John Bowler. 2011-01-14 10:02:53 +00:00
wiz
af3596f984 png shlib name changed for png>=1.5.0, so bump PKGREVISIONs. 2011-01-13 13:36:05 +00:00
dsainty
1f40f3a084 Mechanically replace references to graphics/jpeg with the suitable
alternative from mk/jpeg.buildlink3.mk

This allows selection of an alternative jpeg library (namely the x86 MMX,
SSE, SSE2 accelerated libjpeg-turbo) via JPEG_DEFAULT=libjpeg-turbo, and
follows the current standard model for alternatives (fam, motif, fuse etc).

The mechanical edits were applied via the following script:

#!/bin/sh
for d in */*; do
  [ -d "$d" ] || continue
  for i in "$d/"Makefile* "$d/"*.mk; do
    case "$i" in *.orig|*"*"*) continue;; esac
    out="$d/x"
    sed -e 's;graphics/jpeg/buildlink3\.mk;mk/jpeg.buildlink3.mk;g' \
        -e 's;BUILDLINK_PREFIX\.jpeg;JPEGBASE;g' \
        < "$i" > "$out"
    if cmp -s "$i" "$out"; then
      rm -f "$out"
    else
      echo "Edited $i"
      mv -f "$i" "$i.orig" && mv "$out" "$i"
    fi
  done
done
2010-12-23 11:44:24 +00:00
wiz
e8d8834f6a Bump PKGREVISION for libpng shlib name change.
Also add some patches to remove use of deprecated symbols and fix other
problems when looking for or compiling against libpng-1.4.x.
2010-06-13 22:43:46 +00:00
wiz
22877cbbbc Include bsd.fast.prefs.mk before using ${PKG_INFO}. 2010-06-08 15:13:01 +00:00
wiz
91871f449e Second try at jpeg-8 recursive PKGREVISION bump. 2010-01-18 09:58:37 +00:00
drochner
d84984a5b8 remove stale libltdl dependency 2009-12-15 23:55:26 +00:00
joerg
c35b4c99f9 Recursive bump for libltdl 2009-12-15 21:41:00 +00:00
sno
6f7368d4db bump revision because of graphics/jpeg update 2009-08-26 19:56:37 +00:00
joerg
3a3c07bc30 Remove @dirrm entries from PLISTs 2009-06-14 17:59:04 +00:00
joerg
2d1ba244e9 Simply and speed up buildlink3.mk files and processing.
This changes the buildlink3.mk files to use an include guard for the
recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS,
BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new
variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of
enter/exit marker, which can be used to reconstruct the tree and
to determine first level includes. Avoiding := for large variables
(BUILDLINK_ORDER) speeds up parse time as += has linear complexity.
The include guard reduces system time by avoiding reading files over and
over again. For complex packages this reduces both %user and %sys time to
half of the former time.
2009-03-20 19:23:50 +00:00
tron
3c76c93224 Add Debian patch to fix a buffer overflow in the XPM file loader.
Bump package revision.
2008-11-23 18:41:16 +00:00