1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/graphics/imlib2-jxl/Makefile
Jan Beich e033cbdc91 graphics/libjxl: force rebuild consumers after 4c1f4b3f46
$ ffmpeg
ld-elf.so.1: Shared object "libjxl.so.0.9" not found, required by "libavcodec.so.60"

Reported by:	vvd
2024-02-22 20:33:46 +01:00

43 lines
1.0 KiB
Makefile

PORTNAME= imlib2-jxl
DISTVERSIONPREFIX= v
DISTVERSION= 0.2.0
PORTREVISION= 1
CATEGORIES= graphics
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES+= de2b38f5f34f.patch:-p1 # libjxl 0.9
MAINTAINER= jbeich@FreeBSD.org
COMMENT= JPEG XL loader for imlib2
WWW= https://github.com/alistair7/imlib2-jxl
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE-BSD-ab
LIB_DEPENDS= libImlib2.so:graphics/imlib2 \
libjxl.so:graphics/libjxl
USES= gmake pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= alistair7
MAKE_ENV= RELEASE_CFLAGS="${CFLAGS}"
ALL_TARGET= # empty
PLIST_FILES= lib/imlib2/loaders/jxl.so
OPTIONS_DEFINE= LCMS2
OPTIONS_DEFAULT=LCMS2
LCMS2_LIB_DEPENDS= liblcms2.so:graphics/lcms2
post-patch-LCMS2-off:
@${REINPLACE_CMD} -e '/-DIMLIB2JXL_USE_LCMS/d' \
-e 's/`pkg-config[^`]*lcms[^`]*`//' \
${WRKSRC}/Makefile
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/${PLIST_FILES:M*.so:H}
${INSTALL_LIB} ${WRKSRC}/${PLIST_FILES:M*.so:T} \
${STAGEDIR}${PREFIX}/${PLIST_FILES:M*.so:H}
.include <bsd.port.mk>