Index: head/graphics/libbpg/Makefile =================================================================== --- head/graphics/libbpg/Makefile (revision 512618) +++ head/graphics/libbpg/Makefile (revision 512619) @@ -1,51 +1,54 @@ # Created by: Matthieu Volat # $FreeBSD$ PORTNAME= libbpg PORTVERSION= 0.9.7 PORTREVISION= 9 CATEGORIES= graphics MASTER_SITES= http://bellard.org/bpg/ MAINTAINER= mazhe@alkumuna.eu COMMENT= BPG (Better Portable Graphics) is a new image format LICENSE= BSD2CLAUSE LGPL21 LICENSE_COMB= multi LIB_DEPENDS= libpng.so:graphics/png +USES= compiler:c++11-lib gmake jpeg localbase:ldflags +USE_LDCONFIG= yes + +CFLAGS+= -fPIC +MAKE_ARGS+= X265_LIBS=${X265_LIBS} + OPTIONS_DEFINE= SDL JCTVC X265 OPTIONS_DEFAULT=SDL X265 OPTIONS_SUB= yes -USE_LDCONFIG= yes +JCTVC_DESC= Enable JCTVC (best quality but slow) for the encoder +JCTVCHI_DESC= Use bit depths > 12 with JCTVC (experimental) + +SDL_USES= sdl SDL_USE= SDL=image + X265_LIB_DEPENDS= libx265.so:multimedia/x265 X265_VARS= x265_libs=${PREFIX}/lib/libx265.so - -JCTVC_DESC= Enable JCTVC (best quality but slow) for the encoder -JCTVCHI_DESC= Use bit depths > 12 with JCTVC (experimental) -USES= compiler:c++11-lib gmake jpeg -CFLAGS+= -fPIC -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -MAKE_ARGS+= X265_LIBS=${X265_LIBS} do-configure-JCTVC-off: ${REINPLACE_CMD} -e 's/^USE_JCTVC=y$$/#USE_JCTVC=/' ${WRKSRC}/Makefile do-configure-SDL-off: ${REINPLACE_CMD} -e 's/^USE_BPGVIEW=y$$/#USE_BPGVIEW=/' ${WRKSRC}/Makefile do-configure-X265-off: ${REINPLACE_CMD} -e 's/^USE_X265=y$$/#USE_X265=/' ${WRKSRC}/Makefile post-install: ${INSTALL_DATA} ${WRKSRC}/libbpg.h ${STAGEDIR}${PREFIX}/include ${INSTALL_DATA} ${WRKSRC}/libbpg.a ${STAGEDIR}${PREFIX}/lib ${INSTALL_LIB} ${WRKSRC}/libbpg.so ${STAGEDIR}${PREFIX}/lib post-install-SDL-on: ${INSTALL_PROGRAM} ${WRKSRC}/bpgview ${STAGEDIR}${PREFIX}/bin .include Index: head/graphics/libbpg/pkg-descr =================================================================== --- head/graphics/libbpg/pkg-descr (revision 512618) +++ head/graphics/libbpg/pkg-descr (revision 512619) @@ -1,17 +1,17 @@ BPG (Better Portable Graphics) is a new image format. Its purpose is to replace the JPEG image format when quality or file size is an issue. Its main advantages are: - High compression ratio. Files are much smaller than JPEG for similar quality. - Supported by most Web browsers with a small Javascript decoder (gzipped size: 56 KB). - Based on a subset of the HEVC open video compression standard. - Supports the same chroma formats as JPEG (grayscale, YCbCr 4:2:0, 4:2:2, 4:4:4) to reduce the losses during the conversion. An alpha channel is supported. The RGB, YCgCo and CMYK color spaces are also supported. - Native support of 8 to 14 bits per channel for a higher dynamic range. - Lossless compression is supported. - Various metadata (such as EXIF, ICC profile, XMP) can be included. - Animation support. -WWW: http://bellard.org/bpg/ +WWW: https://bellard.org/bpg/