Update to 0.19

Changes:	https://github.com/ArtifexSoftware/jbig2dec/blob/master/CHANGES
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2020-09-19 15:35:06 +00:00
parent dab5856b4a
commit 84f27a6d7f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=549000
2 changed files with 7 additions and 24 deletions

View File

@ -1,10 +1,9 @@
# $FreeBSD$
PORTNAME= jbig2dec
PORTVERSION= 0.18
PORTVERSION= 0.19
CATEGORIES= graphics devel
MASTER_SITES= https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs951/ \
LOCAL/sunpoet:tests
MASTER_SITES= https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs9531/
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Decoder implementation of the JBIG2 image compression format
@ -12,10 +11,6 @@ COMMENT= Decoder implementation of the JBIG2 image compression format
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
OPTIONS_DEFINE= PNG TESTS
OPTIONS_DEFAULT=PNG
TESTS_DESC= Download and use test-images for post-build testing
USES= autoreconf libtool
CONFIGURE_ENV= ac_cv_func_getopt_long=yes
@ -23,30 +18,18 @@ GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
SHEBANG_FILES= test_jbig2dec.py
python_CMD= ${PYTHON_CMD}
OPTIONS_DEFINE= PNG
OPTIONS_DEFAULT=PNG
PNG_CONFIGURE_OFF= --without-libpng
PNG_CONFIGURE_ON= --with-libpng=${LOCALBASE}
PNG_LIB_DEPENDS= libpng.so:graphics/png
TESTS_DISTFILES= jb2streams${EXTRACT_SUFX}:tests
TESTS_TEST_TARGET= check-TESTS
TESTS_USES= python:build shebangfix
post-patch:
@${RM} ${WRKSRC}/getopt* ${WRKSRC}/sha1.h
@${REINPLACE_CMD} -E 's|SHA1_Final\( *([^,]+), *([^\)]+)\)|SHA1_Final(\2, \1)|' ${WRKSRC}/jbig2dec.c ${WRKSRC}/sha1.c
post-patch-TESTS-off:
@${REINPLACE_CMD} -e '/^TESTS = / s| test_jbig2dec.py||' ${WRKSRC}/Makefile.am
pre-configure:
@cd ${WRKSRC}/ && ${SH} autogen.sh
# maintainer section:
.if defined(MAINTAINER_MODE)
DISTFILES+= jb2streams${EXTRACT_SUFX}:tests
.endif
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1598175210
SHA256 (jbig2dec-0.18.tar.gz) = 9e19775237350e299c422b7b91b0c045e90ffa4ba66abf28c8fb5eb005772f5e
SIZE (jbig2dec-0.18.tar.gz) = 441543
TIMESTAMP = 1600177152
SHA256 (jbig2dec-0.19.tar.gz) = 279476695b38f04939aa59d041be56f6bade3422003a406a85e9792c27118a37
SIZE (jbig2dec-0.19.tar.gz) = 572889