Makefile 951 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # $OpenBSD: Makefile,v 1.23 2015/09/19 09:05:52 benoit Exp $
  2. COMMENT = Python interface to sendmail milter API
  3. MODPY_EGG_VERSION = 1.0
  4. DISTNAME = pymilter-${MODPY_EGG_VERSION}
  5. PKGNAME = ${DISTNAME:S/py/py-/}
  6. CATEGORIES = mail
  7. HOMEPAGE = http://www.bmsi.com/python/milter.html
  8. # GPLv2
  9. PERMIT_PACKAGE_CDROM = Yes
  10. WANTLIB = milter ${MODPY_WANTLIB} pthread
  11. MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=pymilter/}
  12. MODULES = lang/python
  13. CFLAGS += -I${LOCALBASE}/include
  14. LIB_DEPENDS = mail/sendmail,-libmilter
  15. TEST_DEPENDS = ${RUN_DEPENDS} \
  16. net/py-dns
  17. post-install:
  18. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-milter
  19. ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/py-milter
  20. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-milter
  21. ${INSTALL_DATA} ${WRKSRC}/sample.py ${PREFIX}/share/examples/py-milter
  22. do-test: fake
  23. @cd ${WRKSRC} && ${MAKE_ENV} \
  24. PYTHONPATH=${WRKINST}${MODPY_SITEPKG} ${MODPY_BIN} ./test.py
  25. .include <bsd.port.mk>