openbsd-ports/math/lpsolve/python/Makefile
2013-03-11 11:20:26 +00:00

26 lines
633 B
Makefile

# $OpenBSD: Makefile,v 1.3 2013/03/11 11:23:55 espie Exp $
COMMENT = Python bindings for lpsolve
DISTNAME = lp_solve_${V}_Python_source
# interface version differs from pkg version
MODPY_EGG_VERSION = 5.5.0.9
PKGNAME = py-lpsolve-${V}
LIB_DEPENDS += math/lpsolve/core
BUILD_DEPENDS += math/py-numpy
RUN_DEPENDS += math/py-numpy
MODULES = lang/python
WRKDIST = ${WRKDIR}/lp_solve_${V_MAJOR}/extra/Python
WANTLIB += lpsolve55 ${MODPY_WANTLIB}
NUMPY_PATH = ${MODPY_LIBDIR}/site-packages/numpy/core/include
SUBST_VARS += NUMPY_PATH
pre-configure:
${SUBST_CMD} ${WRKBUILD}/setup.py
NO_TEST = Yes
.include <bsd.port.mk>