freebsd-ports/devel/shiboken2/Makefile
Rene Ladan 3d9a815d9c all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.

Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.

finance/quickfix: mark BROKEN with PYTHON

libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++ -DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable -Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi -Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings -Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x -MT _quickfix_la-QuickfixPython.lo -MD -MP -MF .deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp  -fPIC -DPIC -o .libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
          ^~~~~~~~~~
1 warning and 1 error generated.

Reviewed by:	portmgr, vishwin, yuri
Differential Revision:	<https://reviews.freebsd.org/D40568>
2023-06-27 21:34:34 +02:00

51 lines
1.7 KiB
Makefile

PORTNAME= shiboken2
DISTVERSION= 5.15.2
PORTREVISION= 5
CATEGORIES= devel
MASTER_SITES= QT/official_releases/QtForPython/shiboken2/PySide2-${DISTVERSION}-src
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= pyside-setup-opensource-src-${DISTVERSION}
MAINTAINER= kde@FreeBSD.org
COMMENT= Python binding generator for C++ libraries
WWW= https://wiki.qt.io/PySide2
LICENSE= GPLv2 LGPL21 LGPL3
LICENSE_COMB= multi
BROKEN_riscv64= fails to compile: __threading_support:135:3: Unsupported architecture
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR} \
git>0:devel/git
LIB_DEPENDS= libxslt.so:textproc/libxslt
USES= cmake compiler:c++11-lang gnome llvm:lib python:3.8-3.9 qt:5 shebangfix tar:xz
USE_GNOME= libxml2
USE_LDCONFIG= yes
USE_PYTHON= flavors
USE_QT= buildtools:build core gui network qmake:build testlib \
xml xmlpatterns
#SHEBANG_FILES= shiboken_tool.py
CMAKE_ARGS+= "-DCMAKE_CXX_FLAGS=-lexecinfo" \
"-DCMAKE_STANDARD_LIBRARIES=-lexecinfo" \
"-DCMAKE_CXX_STANDARD_LIBRARIES=-lexecinfo" \
"-DUSE_PYTHON_VERSION=${PYTHON_VER}" \
"-DLLVM_CONFIG=${LLVM_CONFIG}"
PLIST_SUB+= DISTVERSION=${DISTVERSION}
PLIST_SUB+= PYVERSTR=.cpython-${PYTHON_SUFFIX}${PYTHON_ABIVER}
WRKSRC= ${WRKDIR}/pyside-setup-opensource-src-${DISTVERSION:C/^([0-9].[0-9]+.[0-9])(.[0-9])?/\1/}/sources/shiboken2
post-install:
${RM} ${STAGEDIR}${PREFIX}/bin/shiboken_tool.py
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
-f -d ${PYTHONPREFIX_SITELIBDIR} \
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
-f -d ${PYTHONPREFIX_SITELIBDIR} \
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
.include <bsd.port.mk>