Skip to content

Commit

Permalink
devel/libsigrokdecode: fix build with python3.9+
Browse files Browse the repository at this point in the history
- Fix python detection and allow build with python3.9+
- Fix license, add LICENSE_FILE

Approved by:	portmgr blanket
  • Loading branch information
AMDmi3 committed Mar 22, 2022
1 parent b98f948 commit 99f34a6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion devel/libsigrokdecode/Makefile
Expand Up @@ -8,13 +8,19 @@ MASTER_SITES= http://sigrok.org/download/source/libsigrokdecode/
MAINTAINER= bsam@FreeBSD.org
COMMENT= Framework for hardware logic analyzers, protocol decoders library

LICENSE= GPLv3
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING

GNU_CONFIGURE= yes
USES= gnome libtool pathfix pkgconfig python:3.4+
USE_GNOME= glib20
MAKE_JOBS_UNSAFE= yes
USE_LDCONFIG= yes
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>

0 comments on commit 99f34a6

Please sign in to comment.