Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # $OpenBSD: Makefile,v 1.44 2016/03/10 21:58:51 naddy Exp $
  2. COMMENT = lossless image compression library, with lightweight version
  3. DISTNAME = jbigkit-2.1
  4. SHARED_LIBS += jbig 3.0 # 2.0
  5. SHARED_LIBS += jbig85 3.0 # 2.0
  6. CATEGORIES = graphics
  7. HOMEPAGE = http://www.cl.cam.ac.uk/~mgk25/jbigkit/
  8. # GPLv2+
  9. PERMIT_PACKAGE_CDROM = Yes
  10. WANTLIB += c
  11. MASTER_SITES = http://www.cl.cam.ac.uk/~mgk25/download/
  12. MAKE_FLAGS = CC="${CC}" CFLAGS="${CFLAGS} -Wall" \
  13. VERSION="${LIBjbig_VERSION}"
  14. MAKE_ENV = LD_LIBRARY_PATH="${WRKSRC}/libjbig"
  15. do-install:
  16. ${INSTALL_MAN_DIR} ${PREFIX}/man/man1
  17. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/jbigkit
  18. cd ${WRKSRC}/pbmtools && \
  19. ${INSTALL_PROGRAM} jbgtopbm pbmtojbg ${PREFIX}/bin && \
  20. ${INSTALL_MAN} jbgtopbm.1 pbmtojbg.1 ${PREFIX}/man/man1
  21. ${INSTALL_DATA} ${WRKSRC}/libjbig/jbig{,_ar,85}.h ${PREFIX}/include
  22. ${INSTALL_DATA} ${WRKSRC}/libjbig/libjbig{,85}.a ${PREFIX}/lib
  23. if [ -e ${WRKSRC}/libjbig/libjbig.so.${LIBjbig_VERSION} ]; then \
  24. ${INSTALL_DATA} ${WRKSRC}/libjbig/libjbig{,85}.so.${LIBjbig_VERSION} ${PREFIX}/lib; fi
  25. ${INSTALL_DATA} ${WRKSRC}/libjbig/jbig{,85}.txt ${PREFIX}/share/doc/jbigkit
  26. .include <bsd.port.mk>