Files
bsdports/graph/libjbig2dec/Makefile
2019-12-26 07:26:06 +00:00

50 lines
1.3 KiB
Makefile

#
# $Id$
#
PORTNAME= jbig2dec
PORTVERSION= 0.13
CATEGORIES= graphics devel
MASTER_SITES= http://downloads.ghostscript.com/public/${PORTNAME}/ LOCAL/sunpoet:tests
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
PKGNAMEPREFIX= lib
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Decoder implementation of the JBIG2 image compression format
CONFIGURE_ENV= ac_cv_func_getopt_long=yes
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
LDFLAGS= -lmd
#USES= autoreconf libtool
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
# ${TOUCH} ${WRKSRC}/configure
cd ${WRKSRC} && aclocal
cd ${WRKSRC} && libtoolize
cd ${WRKSRC} && automake
cd ${WRKSRC} && autoconf
cd ${WRKSRC} && autoconf
#post-patch-PNG-on:
# ${REINPLACE_CMD} 's|png_check_sig|png_sig_cmp|g' ${WRKSRC}/configure
#post-patch-TESTS-off:
# ${REINPLACE_CMD} -e '/^TESTS = / s| test_jbig2dec.py||' ${WRKSRC}/Makefile.in
.include <bsd.port.mk>
#EOF