Makefile 793 B

123456789101112131415161718192021222324252627282930313233343536
  1. # $OpenBSD: Makefile,v 1.18 2016/01/27 09:45:07 benoit Exp $
  2. COMMENT = Pyrex generated python interface to PROJ.4 library
  3. MODPY_EGG_VERSION = 1.9.5.1
  4. DISTNAME = pyproj-${MODPY_EGG_VERSION}
  5. PKGNAME = ${DISTNAME:S/py/py-/}
  6. CATEGORIES = geo
  7. HOMEPAGE = https://github.com/jswhit/pyproj
  8. MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
  9. # MIT
  10. PERMIT_PACKAGE_CDROM = Yes
  11. WANTLIB += ${MODPY_WANTLIB} pthread
  12. MODULES = lang/python
  13. MODPY_PI = Yes
  14. MODPY_SETUPTOOLS = Yes
  15. BUILD_DEPENDS += ${RUN_DEPENDS}
  16. RUN_DEPENDS += devel/proj \
  17. math/py-numpy
  18. do-test: fake
  19. cd ${WRKSRC}/test && ${MAKE_ENV} \
  20. PYTHONPATH=${WRKINST}${MODPY_SITEPKG} ${MODPY_BIN} ./test.py
  21. cd ${WRKSRC}/test && ${MAKE_ENV} \
  22. PYTHONPATH=${WRKINST}${MODPY_SITEPKG} ${MODPY_BIN} ./test2.py
  23. .include <bsd.port.mk>