freebsd-ports/graphics/jbig2dec/Makefile
Sunpoet Po-Chuan Hsieh da1e280779 Update USES=autoreconf
- Respect our own do-configure:

Suggested by:	tijl
2018-09-06 18:23:20 +00:00

47 lines
1.2 KiB
Makefile

# $FreeBSD$
PORTNAME= jbig2dec
PORTVERSION= 0.15
CATEGORIES= graphics devel
MASTER_SITES= LOCAL/sunpoet:tests
MAINTAINER= sunpoet@FreeBSD.org
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
CONFIGURE_ENV= ac_cv_func_getopt_long=yes
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
USES= autoreconf:build libtool
GH_ACCOUNT= ArtifexSoftware
USE_GITHUB= yes
SHEBANG_FILES= test_jbig2dec.py
python_CMD= ${PYTHON_CMD}
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
.include <bsd.port.mk>