diff --git a/community/freeimage/PKGBUILD b/community/freeimage/PKGBUILD index 38c293be1..061644984 100644 --- a/community/freeimage/PKGBUILD +++ b/community/freeimage/PKGBUILD @@ -9,7 +9,7 @@ pkgname=freeimage pkgver=3.17.0 -pkgrel=5 +pkgrel=6 pkgdesc="Library project for developers who would like to support popular graphics image formats" arch=('x86_64') license=('GPL' 'custom:FIPL') @@ -19,7 +19,7 @@ makedepends=('mesa' 'glu') source=("https://downloads.sourceforge.net/project/freeimage/Source%20Distribution/${pkgver}/FreeImage${pkgver//./}.zip" freeimage-unbundle.patch CVE-2015-0852.patch CVE-2016-5684.patch) md5sums=('459e15f0ec75d6efa3c7bd63277ead86' - 'b8d190316d4a3e3dd330a2af95dfd2da' + 'c336ba01a7fab92bff97f78140f190e9' 'b21385e2da5dcdf4aa4e98d11150115d' '2efbe4123d832930778b7c146d4f60f1') diff --git a/community/freeimage/freeimage-unbundle.patch b/community/freeimage/freeimage-unbundle.patch index a8d63fc12..4818d680a 100644 --- a/community/freeimage/freeimage-unbundle.patch +++ b/community/freeimage/freeimage-unbundle.patch @@ -88,7 +88,7 @@ diff -rupN FreeImage/Makefile.gnu FreeImage-new/Makefile.gnu -# LibJXR -CXXFLAGS += -D__ANSI__ -CXXFLAGS += $(INCLUDE) -+override CFLAGS += $(INCLUDE) -D__ANSI__ -I/usr/include/libjxr $(shell pkg-config --cflags OpenEXR libopenjp2 libraw libpng libtiff-4 libwebp libwebpmux zlib) ++override CFLAGS += $(INCLUDE) -D__ANSI__ -I/usr/include/jxrlib $(shell pkg-config --cflags OpenEXR libopenjp2 libraw libpng libtiff-4 libwebp libwebpmux zlib) +override LDFLAGS += -ljpeg -ljpegxr -ljxrglue $(shell pkg-config --libs OpenEXR libopenjp2 libraw libpng libtiff-4 libwebp libwebpmux zlib) ifeq ($(shell sh -c 'uname -m 2>/dev/null || echo not'),x86_64)