Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # $OpenBSD: Makefile,v 1.35 2015/02/16 22:57:09 naddy Exp $
  2. COMMENT= generate a cross-referenced HTML mail archive
  3. VERSION= 2.1.8
  4. DISTNAME= hypermail-${VERSION}
  5. REVISION = 1
  6. CATEGORIES= mail www
  7. HOMEPAGE= http://www.hypermail-project.org/
  8. MASTER_SITES= http://www.linklevel.net/distfiles/
  9. LIB_DEPENDS+= devel/pcre
  10. # GPL
  11. PERMIT_PACKAGE_CDROM= Yes
  12. WANTLIB= c m pcre
  13. CONFIGURE_STYLE= gnu
  14. MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/src/pcre
  15. CONFIGURE_ARGS= --with-htmldir=${PREFIX}/share/doc/hypermail
  16. CONFIGURE_ENV= CFLAGS="${CFLAGS} -DHAVE_VFSCANF" \
  17. INCLUDES="-I${LOCALBASE}/include" \
  18. LDFLAGS="-L${LOCALBASE}/lib"
  19. ALL_TARGET= hypermail
  20. MAKE_FLAGS= WARNINGS=''
  21. FLAVORS= gdbm
  22. FLAVOR?=
  23. .if ${FLAVOR} == "gdbm"
  24. CONFIGURE_ARGS +=--with-gdbm=${LOCALBASE}
  25. LIB_DEPENDS += databases/gdbm
  26. WANTLIB += gdbm
  27. .else
  28. CONFIGURE_ARGS +=--without-gdbm
  29. .endif
  30. NO_TEST= Yes
  31. DOCS= *.html *.png attachments.txt
  32. do-install:
  33. ${INSTALL_PROGRAM} ${WRKBUILD}/src/hypermail ${PREFIX}/bin
  34. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/hypermail
  35. .for f in ${DOCS}
  36. ${INSTALL_DATA} ${WRKSRC}/docs/${f} ${PREFIX}/share/doc/hypermail
  37. .endfor
  38. ${INSTALL_MAN} ${WRKSRC}/docs/hypermail.1 ${PREFIX}/man/man1
  39. ${INSTALL_MAN} ${WRKSRC}/docs/hmrc.4 ${PREFIX}/man/man5/hmrc.5
  40. .include <bsd.port.mk>