devel/libsigrokdecode: fix build with python3.9+

- Fix python detection and allow build with python3.9+
- Fix license, add LICENSE_FILE

Approved by:	portmgr blanket
This commit is contained in:
Dmitry Marakasov 2022-03-22 16:58:16 +03:00
parent b98f948045
commit 99f34a6ee6

View file

@ -8,7 +8,8 @@ MASTER_SITES= http://sigrok.org/download/source/libsigrokdecode/
MAINTAINER= bsam@FreeBSD.org MAINTAINER= bsam@FreeBSD.org
COMMENT= Framework for hardware logic analyzers, protocol decoders library COMMENT= Framework for hardware logic analyzers, protocol decoders library
LICENSE= GPLv3 LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
USES= gnome libtool pathfix pkgconfig python:3.4+ USES= gnome libtool pathfix pkgconfig python:3.4+
@ -16,5 +17,10 @@ USE_GNOME= glib20
MAKE_JOBS_UNSAFE= yes MAKE_JOBS_UNSAFE= yes
USE_LDCONFIG= yes USE_LDCONFIG= yes
INSTALL_TARGET= install-strip INSTALL_TARGET= install-strip
CONFIGURE_ENV= PYTHON3="${PYTHON_CMD}"
post-patch:
@${REINPLACE_CMD} -Ee '/python-/ s|3\.[0-9]+|${PYTHON_VER}|g' \
${WRKSRC}/configure
.include <bsd.port.mk> .include <bsd.port.mk>