pkgsrc/graphics/imlib2/Makefile

53 lines
1.3 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.81 2021/01/24 15:15:46 nia Exp $
DISTNAME= imlib2-1.7.1
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=enlightenment/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
2017-08-16 22:21:03 +02:00
HOMEPAGE= https://docs.enlightenment.org/api/imlib2/html/
COMMENT= Image manipulation library
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 22:06:59 +01:00
LICENSE= mit # with some modifications
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config
GNU_CONFIGURE= yes
PKGCONFIG_OVERRIDE= imlib2.pc.in
LIBS.SunOS+= -lm
2004-02-04 01:00:53 +01:00
.include "../../mk/bsd.prefs.mk"
.if ${OBJECT_FMT} == "SOM"
SHLIB_SUFFIX= sl
.else
SHLIB_SUFFIX= so
.endif
.if ${SHLIB_SUFFIX} != so
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 16:14:56 +01:00
SUBST_CLASSES+= shlib
SUBST_STAGE.shlib= pre-configure
SUBST_MESSAGE.shlib= Replacing shared library suffix
SUBST_FILES.shlib+= src/lib/image.c
SUBST_SED.shlib+= -e 's,"\.so",".${SHLIB_SUFFIX}",'
.endif
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 16:14:56 +01:00
SUBST_CLASSES+= rpath
SUBST_STAGE.rpath= pre-configure
SUBST_MESSAGE.rpath= Replacing COMPILER_RPATH_FLAG
SUBST_FILES.rpath= imlib2-config.in
SUBST_VARS.rpath= COMPILER_RPATH_FLAG
2005-05-31 23:35:13 +02:00
.include "options.mk"
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/giflib/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"