Makefile 599 B

12345678910111213141516171819202122232425262728293031323334
  1. # $OpenBSD: Makefile,v 1.16 2017/04/10 11:45:24 sthen Exp $
  2. COMMENT = ODBC bindings for Python
  3. MODPY_EGG_VERSION=3.0.10
  4. DISTNAME = pyodbc-${MODPY_EGG_VERSION}
  5. PKGNAME = ${DISTNAME:S/py/py-/}
  6. REVISION = 0
  7. CATEGORIES = databases
  8. HOMEPAGE = https://github.com/mkleehammer/pyodbc
  9. # MIT
  10. PERMIT_PACKAGE_CDROM = Yes
  11. WANTLIB += ${MODPY_WANTLIB}
  12. WANTLIB += iodbc m pthread ${LIBCXX}
  13. MODPY_PI = Yes
  14. MODPY_SETUPTOOLS = Yes
  15. MODULES = lang/python
  16. LIB_DEPENDS = databases/iodbc
  17. CFLAGS += -fPIC -I${LOCALBASE}/include -L${LOCALBASE}/lib
  18. NO_TEST = Yes
  19. FLAVORS = python3
  20. FLAVOR ?=
  21. .include <bsd.port.mk>