2013-09-20 20:35:44 +02:00
|
|
|
# Created by: mi
|
1999-08-25 08:16:32 +02:00
|
|
|
# $FreeBSD$
|
1996-12-23 08:12:29 +01:00
|
|
|
|
2000-04-14 12:48:02 +02:00
|
|
|
PORTNAME= jbigkit
|
2014-06-21 23:44:45 +02:00
|
|
|
PORTVERSION= 2.1
|
2014-06-22 01:43:16 +02:00
|
|
|
PORTREVISION= 1
|
1996-12-23 08:12:29 +01:00
|
|
|
CATEGORIES= graphics
|
2002-02-10 19:24:05 +01:00
|
|
|
MASTER_SITES= http://www.cl.cam.ac.uk/~mgk25/download/
|
1996-12-23 08:12:29 +01:00
|
|
|
|
1999-10-26 23:18:42 +02:00
|
|
|
MAINTAINER= mi@aldan.algebra.com
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Lossless compression for bi-level images such as scanned pages, faxes
|
1996-12-23 08:12:29 +01:00
|
|
|
|
2007-01-30 11:25:34 +01:00
|
|
|
USE_LDCONFIG= yes
|
2014-06-22 01:15:26 +02:00
|
|
|
MANS= jbgtopbm.1 pbmtojbg.1
|
|
|
|
BINS= jbgtopbm pbmtojbg jbgtopbm85 pbmtojbg85
|
|
|
|
LIBA= libjbig.a libjbig85.a
|
|
|
|
LIBS= libjbig.so.2 libjbig85.so.1
|
2008-05-16 16:14:05 +02:00
|
|
|
DOCSDIR?= ${PREFIX}/share/doc/jbig
|
|
|
|
|
2014-06-22 01:15:26 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2014-06-21 23:44:45 +02:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} \
|
|
|
|
${BINS:S|^|${WRKSRC}/pbmtools/|} ${STAGEDIR}${PREFIX}/bin
|
|
|
|
|
|
|
|
${INSTALL_MAN} \
|
2014-06-22 01:15:26 +02:00
|
|
|
${MANS:S|^|${WRKSRC}/pbmtools/|} ${STAGEDIR}${MANPREFIX}/man/man1
|
2014-06-21 23:44:45 +02:00
|
|
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/libjbig/*.h ${STAGEDIR}${PREFIX}/include
|
|
|
|
|
|
|
|
${INSTALL_DATA} \
|
2014-06-22 01:15:26 +02:00
|
|
|
${LIBA:S|^|${WRKSRC}/libjbig/|} ${STAGEDIR}${PREFIX}/lib
|
|
|
|
${INSTALL_LIB} \
|
2014-06-21 23:44:45 +02:00
|
|
|
${LIBS:S|^|${WRKSRC}/libjbig/|} ${STAGEDIR}${PREFIX}/lib
|
2014-06-22 01:43:16 +02:00
|
|
|
${LN} -sf libjbig.so.2 ${STAGEDIR}${PREFIX}/lib/libjbig.so
|
2014-06-21 23:44:45 +02:00
|
|
|
${LN} -sf libjbig85.so.1 ${STAGEDIR}${PREFIX}/lib/libjbig85.so
|
|
|
|
|
2014-02-01 11:54:33 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2014-06-21 23:44:45 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/libjbig/jbig.txt ${STAGEDIR}${DOCSDIR}
|
1996-12-23 08:12:29 +01:00
|
|
|
|
2014-06-21 23:44:45 +02:00
|
|
|
regression-test test:
|
2011-03-14 00:49:20 +01:00
|
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} LD_LIBRARY_PATH=${WRKSRC}/libjbig ${MAKE} test
|
1999-12-27 01:47:24 +01:00
|
|
|
|
1996-12-23 08:12:29 +01:00
|
|
|
.include <bsd.port.mk>
|