sthen 3cbe1c2f30 Reverse the polarity of MODPY_VERSION; default is now 3.x,
if a port needs 2.x then set MODPY_VERSION=${MODPY_DEFAULT_VERSION_2}.

This commit doesn't change any versions currently used; it may be that
some ports have MODPY_DEFAULT_VERSION_2 but don't require it, those
should be cleaned up in the course of updating ports where possible.

Python module ports providing py3-* packages should still use
FLAVOR=python3 so that we don't have a mixture of dependencies some
using ${MODPY_FLAVOR} and others not.
2021-02-23 19:39:08 +00:00

53 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.15 2021/02/23 19:39:26 sthen Exp $
COMMENT = color management library
EPOCH = 0
GH_ACCOUNT = AcademySoftwareFoundation
GH_PROJECT = OpenColorIO
GH_TAGNAME = v1.1.1
REVISION = 0
PKGNAME = ${DISTNAME:L}
SHARED_LIBS += OpenColorIO 1.1 # 1.1.1
CATEGORIES = graphics
HOMEPAGE = http://opencolorio.org/index.html
MAINTAINER = Pascal Stumpf <pascal@stumpf.co>
# several BSD-like
PERMIT_PACKAGE = Yes
WANTLIB += m pthread ${COMPILER_LIBCXX} tinyxml yaml-cpp
COMPILER = base-clang ports-gcc
MODULES = devel/cmake \
lang/python
BUILD_DEPENDS = devel/boost
LIB_DEPENDS = textproc/tinyxml \
devel/yaml-cpp
CONFIGURE_ARGS += -DPYTHON="${MODPY_BIN}" \
-DUSE_EXTERNAL_TINYXML=ON \
-DUSE_EXTERNAL_YAML=ON \
-DOCIO_USE_SSE=OFF \
-DOCIO_BUILD_STATIC=OFF \
-DOCIO_BUILD_APPS=OFF \
-DCMAKE_SHARED_LINKER_FLAGS="-L${LOCALBASE}/lib" \
-DCMAKE_EXE_LINKER_FLAGS="-L${LOCALBASE}/lib" \
-DCMAKE_MODULE_LINKER_FLAGS="-L${LOCALBASE}/lib"
NO_TEST = Yes
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/cmake/OpenColorIO
mv ${PREFIX}/cmake/*.cmake ${PREFIX}/OpenColorIO*.cmake \
${PREFIX}/lib/cmake/OpenColorIO
rm -rf ${PREFIX}/cmake
.include <bsd.port.mk>