Makefile 653 B

123456789101112131415161718192021222324252627282930
  1. # $OpenBSD: Makefile,v 1.3 2017/05/31 04:27:51 rpointel Exp $
  2. COMMENT = Python extension that gives access to YARA
  3. GH_PROJECT = yara-python
  4. MODPY_EGG_VERSION = ${VERSION}
  5. PKGNAME = py-yara-${VERSION}
  6. WANTLIB += pthread ${MODPY_WANTLIB} yara
  7. MODULES = lang/python
  8. MODPY_SETUPTOOLS = Yes
  9. MODPY_DISTUTILS_BUILDARGS = --dynamic-linking
  10. MAKE_FLAG += CPPFLAGS="-I${LOCALBASE}/include/yara/"
  11. pre-configure:
  12. ${SUBST_CMD} ${WRKSRC}/setup.py
  13. BUILD_DEPENDS = security/yara/main=${VERSION}
  14. RUN_DEPENDS = security/yara/main=${VERSION}
  15. TEST_DEPENDS = security/yara/python
  16. do-test:
  17. cd ${WRKSRC} && ${MODPY_BIN} ./tests.py
  18. .include <bsd.port.mk>