summaryrefslogtreecommitdiff
path: root/x11/py-qwt-qt5/Makefile
blob: 56f160ab7b9c05c4c47b1f4af08b018765623850 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# $NetBSD: Makefile,v 1.11 2022/12/02 15:53:28 wiz Exp $

DISTNAME=	pyqt-qwt-1.02.02
PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/pyqt-qwt/qwt-qt5/}
PKGREVISION=	2
CATEGORIES=	x11
MASTER_SITES=	${MASTER_SITE_GITHUB:=GauiStori/}
GITHUB_PROJECT=	PyQt-Qwt
GITHUB_TAG=	v${PKGVERSION_NOREV}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://github.com/GauiStori/PyQt-Qwt
COMMENT=	Python PyQt wrapper for Qwt6
LICENSE=	gnu-lgpl-v2.1 # with exception (Qwt License)

TOOL_DEPENDS+=	${PYPKGPREFIX}-sip6-[0-9]*:../../x11/py-sip6
TOOL_DEPENDS+=	${PYPKGPREFIX}-qt-builder-[0-9]*:../../x11/py-qt-builder
DEPENDS+=	${PYPKGPREFIX}-qt5-[0-9]*:../../x11/py-qt5
# TODO: check if this is correct or should this be a full DEPENDS
BUILD_DEPENDS+=	qt5-qtbase-[0-9]*:../../x11/qt5-qtbase

PYTHON_VERSIONS_INCOMPATIBLE=	27

WHEEL_NAME=	PyQt_Qwt-${PKGVERSION_NOREV}

USE_LANGUAGES=	c++

pre-configure:
	${LN} -sf ${QTDIR}/bin/qmake ${BUILDLINK_DIR}/bin/

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "Darwin"
# clang: error: invalid argument '-bundle' not allowed with '-dynamiclib'
BUILDLINK_TRANSFORM+=	rm:-bundle
post-install:
	install_name_tool -id ${PREFIX}/${PYSITELIB}/PyQt5/Qwt.so	\
	  ${DESTDIR}${PREFIX}/${PYSITELIB}/PyQt5/Qwt.so
.endif

.include "../../lang/python/wheel.mk"
.include "../../x11/qwt6-qt5/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"