[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / x11 / py-qwt-qt5

File: [cvs.NetBSD.org] / pkgsrc / x11 / py-qwt-qt5 / Makefile (download)

Revision 1.8, Wed Nov 23 16:21:27 2022 UTC (2 months, 2 weeks ago) by adam
Branch: MAIN
Changes since 1.7: +2 -1 lines

massive revision bump after textproc/icu update

# $NetBSD: Makefile,v 1.8 2022/11/23 16:21:27 adam Exp $

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

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)

BUILD_DEPENDS+=	qt5-qtbase-[0-9]*:../../x11/qt5-qtbase

CONFIGURE_ENV+=	QT_SELECT=qt5
MAKE_ENV+=	PATH=${PATH:Q}:${PREFIX}/qt5/bin
INSTALL_ENV+=	INSTALL_ROOT=${DESTDIR}
ALL_ENV+=	LFLAGS=${COMPILER_RPATH_FLAG}${PREFIX}/${BUILDLINK_LIBDIRS.qwt6-qt5}
USE_LANGUAGES=	c++

PY_PATCHPLIST=	yes

do-configure:
	set -e; cd ${WRKSRC};						\
	  ${PKGSRC_SETENV} ${CONFIGURE_ENV}				\
	  ${PYTHONBIN} configure.py					\
	  --qwt-incdir=${PREFIX}/${BUILDLINK_INCDIRS.qwt6-qt5}		\
	  --qwt-libdir=${PREFIX}/${BUILDLINK_LIBDIRS.qwt6-qt5}		\
	  --qwt-lib=qwt							\
	  --sip=${PREFIX}/bin/sip${PYVERSSUFFIX}			\
	  --qmake=${PREFIX}/qt5/bin/qmake				\
	  --pyqt-sipdir=${PREFIX}/share/sip${PYVERSSUFFIX}/PyQt5	\
	  --no-qwt-api --verbose

.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/extension.mk"
.include "../../x11/py-qt5/buildlink3.mk"
.include "../../x11/py-sip/buildlink3.mk"
.include "../../x11/qwt6-qt5/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"