Makefile 892 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # $OpenBSD: Makefile,v 1.22 2016/03/01 05:18:57 mmcc Exp $
  2. COMMENT= remote IMAP filtering utility
  3. V= 2.6.6
  4. DISTNAME= imapfilter-${V}
  5. GH_TAGNAME= v${V}
  6. GH_ACCOUNT= lefcha
  7. GH_PROJECT= imapfilter
  8. CATEGORIES= mail
  9. MAINTAINER= Michael McConville <mmcco@mykolab.com>
  10. # MIT/X
  11. PERMIT_PACKAGE_CDROM= Yes
  12. WANTLIB += c crypto m ssl pcre ${MODLUA_WANTLIB}
  13. MODULES= lang/lua
  14. MODLUA_SA= Yes
  15. LIB_DEPENDS= devel/pcre \
  16. ${MODLUA_LIB_DEPENDS}
  17. MAKE_FLAGS= CC="${CC}" \
  18. PREFIX="${TRUEPREFIX}" \
  19. LIBLUA="${MODLUA_LIB}" \
  20. MYCFLAGS="${CFLAGS} -I${LOCALBASE}/include -I${MODLUA_INCL_DIR}" \
  21. MYLDFLAGS="-L${LOCALBASE}/lib"
  22. NO_TEST= Yes
  23. pre-configure:
  24. perl -pi -e 's,-ldl,,' ${WRKSRC}/src/Makefile
  25. post-install:
  26. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/imapfilter
  27. ${INSTALL_DATA} ${WRKSRC}/samples/*.lua \
  28. ${PREFIX}/share/examples/imapfilter/
  29. .include <bsd.port.mk>