1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/graphics/jbig2dec/Makefile
Sunpoet Po-Chuan Hsieh 76bfabb776 - Update to 0.12
- Add LICENSE_FILE
- Convert to new options helper
- Convert to new options target helper
- Convert to new test framework
- Remove EXTRACT_AFTER_ARGS
- Sort USES
- Use USES=shebangfix
- Repack test tarball
- Cosmetic change
- Split and rename patch files
- Regenerate patch files with makepatch:
- Update WWW
- Add git repository to WWW
- Take maintainership

Changes:	http://git.ghostscript.com/?p=jbig2dec.git;a=blob;f=CHANGES;hb=HEAD
2015-12-04 12:32:58 +00:00

47 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= jbig2dec
PORTVERSION= 0.12
CATEGORIES= graphics devel
MASTER_SITES= http://downloads.ghostscript.com/public/${PORTNAME}/ \
LOCAL/sunpoet:tests
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
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 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:${PORTSDIR}/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-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>