2010-11-17 03:05:12 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.35 2010/11/17 08:05:14 espie Exp $
|
1999-05-08 15:17:39 -04:00
|
|
|
|
2007-09-15 16:09:40 -04:00
|
|
|
COMMENT= lossless image compression library
|
2001-04-13 19:46:11 -04:00
|
|
|
|
2005-12-26 13:00:15 -05:00
|
|
|
DISTNAME= jbigkit-1.6
|
2010-11-17 03:05:12 -05:00
|
|
|
REVISION = 2
|
2005-12-26 13:00:15 -05:00
|
|
|
SHARED_LIBS= jbig 2.0
|
1999-05-08 15:17:39 -04:00
|
|
|
CATEGORIES= graphics
|
2004-02-25 15:31:00 -05:00
|
|
|
MASTER_SITES= http://www.cl.cam.ac.uk/~mgk25/download/
|
2000-03-06 17:09:41 -05:00
|
|
|
|
2004-01-11 03:20:06 -05:00
|
|
|
# GPL
|
2000-03-06 17:09:41 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-11-29 20:06:33 -05:00
|
|
|
WANTLIB= c
|
2000-03-06 17:09:41 -05:00
|
|
|
|
2010-10-18 14:13:12 -04:00
|
|
|
USE_GROFF = Yes
|
2004-01-11 03:20:06 -05:00
|
|
|
MAKE_ENV= LD_LIBRARY_PATH="${WRKSRC}/libjbig"
|
2005-12-26 10:49:48 -05:00
|
|
|
MAKE_FLAGS= CC="${CC}" CCFLAGS="${CFLAGS} -Wall" \
|
|
|
|
VERSION="${LIBjbig_VERSION}"
|
2000-03-23 01:51:58 -05:00
|
|
|
|
2000-02-10 19:37:15 -05:00
|
|
|
WRKDIST= ${WRKDIR}/jbigkit
|
1999-05-08 15:17:39 -04:00
|
|
|
|
2004-02-25 15:31:00 -05:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM_DIR} ${PREFIX}/bin
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/include
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib
|
|
|
|
${INSTALL_MAN_DIR} ${PREFIX}/man/man1
|
2000-02-09 10:59:25 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/jbig
|
2004-02-25 15:31:00 -05:00
|
|
|
cd ${WRKSRC}/pbmtools && ${INSTALL_PROGRAM} jbgtopbm pbmtojbg ${PREFIX}/bin && \
|
|
|
|
${INSTALL_MAN} jbgtopbm.1 pbmtojbg.1 ${PREFIX}/man/man1
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/libjbig/jbig.h ${PREFIX}/include
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/libjbig/libjbig.a ${PREFIX}/lib
|
2005-12-26 10:49:48 -05:00
|
|
|
@if [ -f ${WRKSRC}/libjbig/libjbig.so.${LIBjbig_VERSION} ]; then \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/libjbig/libjbig.so.${LIBjbig_VERSION} ${PREFIX}/lib; \
|
2004-02-25 15:31:00 -05:00
|
|
|
fi
|
1999-05-08 15:17:39 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/libjbig/jbig.doc ${PREFIX}/share/doc/jbig
|
1999-12-27 01:12:08 -05:00
|
|
|
|
1999-05-08 15:17:39 -04:00
|
|
|
.include <bsd.port.mk>
|
|
|
|
|
2000-09-23 22:38:01 -04:00
|
|
|
.if defined(NO_SHARED_LIBS) && ${NO_SHARED_LIBS:L} == "yes"
|
2001-04-21 10:59:31 -04:00
|
|
|
MAKE_ENV+= NO_SHARED_LIBS=Yes
|
1999-05-08 15:17:39 -04:00
|
|
|
.endif
|