Makefile 996 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # $OpenBSD: Makefile,v 1.39 2017/04/18 20:16:33 benoit Exp $
  2. COMMENT = convert HTML pages to PDF/PS format
  3. V = 1.8.29
  4. DISTNAME = htmldoc-${V}
  5. CATEGORIES = print www
  6. REVISION = 0
  7. HOMEPAGE = http://www.msweet.org/projects.php?Z1
  8. MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
  9. # GPLv2
  10. PERMIT_PACKAGE_CDROM = Yes
  11. WANTLIB += c crypto m ssl z jpeg png ${LIBCXX}
  12. DISTFILES = ${DISTNAME}-source${EXTRACT_SUFX}
  13. MASTER_SITES = http://www.msweet.org/files/project1/ \
  14. ftp://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/htmldoc/${V}/
  15. LIB_DEPENDS = graphics/jpeg \
  16. graphics/png
  17. CONFIGURE_STYLE = gnu dest
  18. CONFIGURE_ARGS += --without-gui --disable-gnutls
  19. CONFIGURE_ENV = LDFLAGS="-L${LOCALBASE}/lib" \
  20. CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
  21. CPPFLAGS="-I${LOCALBASE}/include"
  22. PORTHOME = ${WRKDIR}
  23. post-extract:
  24. rm -r ${WRKSRC}/jpeg ${WRKSRC}/png ${WRKSRC}/zlib
  25. post-configure:
  26. @sed -i "s,\\${DESTDIR},," ${WRKSRC}/config.h
  27. NO_TEST = Yes
  28. .include <bsd.port.mk>