openbsd-ports/graphics/jbig2dec/Makefile
sthen 0a07765649 import jbig2dec
jbig2dec is a decoder library and example utility implementing the JBIG2
bi-level image compression spec. Also known as ITU T.88 and ISO IEC
14492, and now included by reference in Adobe's PDF 1.4.
2009-10-11 09:59:16 +00:00

42 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2009/10/11 09:59:16 sthen Exp $
COMMENT= decoder for JBIG2 monochrome hi-res image compression format
DISTNAME= jbig2dec-0.10
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
jb2streams.zip:0
CATEGORIES= graphics
HOMEPAGE= http://jbig2dec.sourceforge.net/
# GPLv2+
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://ghostscript.com/~giles/jbig2/jbig2dec/
MASTER_SITES0= http://jbig2dec.sourceforge.net/ubc/
WANTLIB += c m z
LIB_DEPENDS= png::graphics/png
SEPARATE_BUILD= concurrent
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --with-libpng=${LOCALBASE}
CFLAGS+= -I${LOCALBASE}/include/libpng
CONFIGURE_ENV= LDFLAGS="`pkg-config --libs libpng`"
MODULES= lang/python
MODPY_RUNDEP= No
REGRESS_DEPENDS= ${BUILD_DEPENDS}
pre-regress:
${SUBST_CMD} -c ${WRKSRC}/test_jbig2dec.py ${WRKBUILD}/test_jbig2dec.py
${INSTALL_DATA_DIR} ${WRKBUILD}/ubc/
mv ${WRKDIR}/*bmp ${WRKDIR}/*jb2 ${WRKBUILD}/ubc/
.include <bsd.port.mk>