forked from Lainports/freebsd-ports
31 lines
781 B
Makefile
31 lines
781 B
Makefile
PORTNAME= jbig2dec
|
|
PORTVERSION= 0.19
|
|
CATEGORIES= graphics devel
|
|
MASTER_SITES= https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs9531/
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Decoder implementation of the JBIG2 image compression format
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
USES= cpe libtool
|
|
|
|
CONFIGURE_ENV= ac_cv_func_getopt_long=yes
|
|
GNU_CONFIGURE= yes
|
|
INSTALL_TARGET= install-strip
|
|
USE_LDCONFIG= yes
|
|
|
|
CPE_VENDOR= artifex
|
|
|
|
OPTIONS_DEFINE= PNG
|
|
OPTIONS_DEFAULT=PNG
|
|
|
|
PNG_CONFIGURE_WITH= libpng=${LOCALBASE}
|
|
PNG_LIB_DEPENDS= libpng.so:graphics/png
|
|
|
|
post-patch:
|
|
@${RM} ${WRKSRC}/getopt* ${WRKSRC}/sha1.h
|
|
@${REINPLACE_CMD} -E 's|SHA1_Final\( *([^,]+), *([^\)]+)\)|SHA1_Final(\2, \1)|' ${WRKSRC}/jbig2dec.c ${WRKSRC}/sha1.c
|
|
|
|
.include <bsd.port.mk>
|