switch to the py3 version of sphinx; if i'm not mistaken this avoids the need to build both python 2 and 3 before building cmake. (this is on the path to building about a third of the ports tree). tests done on aarch64 i386 amd64, and some deps, ports-gcc, USE_LLD=no tested on amd64.
47 lines
1007 B
Makefile
47 lines
1007 B
Makefile
# $OpenBSD: Makefile,v 1.14 2021/01/14 22:42:10 sthen Exp $
|
|
|
|
COMMENT = multi-platform library for asynchronous I/O
|
|
|
|
VER = 1.40.0
|
|
DISTNAME = libuv-v${VER}
|
|
PKGNAME = libuv-${VER}
|
|
CATEGORIES = devel
|
|
|
|
SHARED_LIBS = uv 3.0 # 1.0
|
|
|
|
HOMEPAGE = https://libuv.org/
|
|
|
|
MASTER_SITES = https://dist.libuv.org/dist/v${VER}/
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB += pthread
|
|
|
|
# module used to grab MODPY_BIN_SUFFIX/MODPY_FLAVOR for py3 sphinx-build
|
|
MODULES = lang/python
|
|
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_3}
|
|
MODPY_BUILDDEP = No
|
|
MODPY_RUNDEP = No
|
|
BUILD_DEPENDS = textproc/py-sphinx${MODPY_FLAVOR}
|
|
|
|
DEBUG_PACKAGES = ${BUILD_PACKAGES}
|
|
|
|
USE_GMAKE = Yes
|
|
|
|
CONFIGURE_STYLE = autoreconf
|
|
CONFIGURE_ENV = cc_cv_cflags__g=no
|
|
|
|
AUTOCONF_VERSION = 2.69
|
|
AUTOMAKE_VERSION = 1.16
|
|
AUTORECONF = sh autogen.sh
|
|
|
|
post-build:
|
|
cd ${WRKSRC} && ${MAKE_ENV} ${MAKE_PROGRAM} man -C docs \
|
|
SPHINXBUILD=sphinx-build${MODPY_BIN_SUFFIX}
|
|
|
|
post-install:
|
|
${INSTALL_MAN} ${WRKSRC}/docs/build/man/libuv.1 ${PREFIX}/man/man1/
|
|
|
|
.include <bsd.port.mk>
|