Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # $OpenBSD: Makefile,v 1.28 2016/04/25 18:59:11 jca Exp $
  2. COMMENT= C library to produce PDF files
  3. DISTNAME= pdflib-4.0.3
  4. REVISION = 5
  5. CATEGORIES= print
  6. SHARED_LIBS= pdf 2.3
  7. HOMEPAGE= http://www.pdflib.com/pdflib/
  8. PERMIT_PACKAGE_CDROM= No
  9. PERMIT_PACKAGE_FTP= Yes
  10. MASTER_SITES= http://www.pdflib.com/pdflib/download/
  11. WANTLIB= m z jpeg png>=2 tiff>=35
  12. LIB_DEPENDS= graphics/png \
  13. graphics/tiff
  14. # XXX !shared archs don't inherit libraries
  15. LIB_DEPENDS += graphics/jpeg
  16. CONFIGURE_STYLE= autoconf dest
  17. AUTOCONF_VERSION= 2.13
  18. MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/config
  19. CONFIGURE_ARGS= --with-tifflib \
  20. --with-pnglib \
  21. --with-zlib \
  22. --without-perl \
  23. --without-java \
  24. --without-py \
  25. --without-tcl
  26. CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \
  27. CPPFLAGS="-I${LOCALBASE}/include" \
  28. LIBS="-lm"
  29. MAKE_ENV= ${CONFIGURE_ENV}
  30. TEST_TARGET= test
  31. post-install:
  32. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pdflib
  33. ${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/pdflib
  34. .include <bsd.port.mk>