freebsd-ports/graphics/jbigkit/Makefile
Sunpoet Po-Chuan Hsieh d0aa795c15 Update MASTER_SITES and WWW
Approved by:	portmgr (blanket)
2019-02-15 23:53:32 +00:00

47 lines
1.3 KiB
Makefile

# Created by: mi
# $FreeBSD$
PORTNAME= jbigkit
PORTVERSION= 2.1
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= https://www.cl.cam.ac.uk/~mgk25/download/
MAINTAINER= mi@aldan.algebra.com
COMMENT= Lossless compression for bi-level images such as scanned pages, faxes
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
USE_LDCONFIG= yes
MANS= jbgtopbm.1 pbmtojbg.1
BINS= jbgtopbm pbmtojbg jbgtopbm85 pbmtojbg85
LIBA= libjbig.a libjbig85.a
LIBS= libjbig.so.2 libjbig85.so.1
DOCSDIR?= ${PREFIX}/share/doc/jbig
OPTIONS_DEFINE= DOCS
do-install:
${INSTALL_PROGRAM} \
${BINS:S|^|${WRKSRC}/pbmtools/|} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} \
${MANS:S|^|${WRKSRC}/pbmtools/|} ${STAGEDIR}${MANPREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/libjbig/*.h ${STAGEDIR}${PREFIX}/include
${INSTALL_DATA} \
${LIBA:S|^|${WRKSRC}/libjbig/|} ${STAGEDIR}${PREFIX}/lib
${INSTALL_LIB} \
${LIBS:S|^|${WRKSRC}/libjbig/|} ${STAGEDIR}${PREFIX}/lib
${LN} -sf libjbig.so.2 ${STAGEDIR}${PREFIX}/lib/libjbig.so
${LN} -sf libjbig85.so.1 ${STAGEDIR}${PREFIX}/lib/libjbig85.so
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/libjbig/jbig.txt ${STAGEDIR}${DOCSDIR}
regression-test test:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} LD_LIBRARY_PATH=${WRKSRC}/libjbig ${MAKE} test
.include <bsd.port.mk>