sthen 3cbe1c2f30 Reverse the polarity of MODPY_VERSION; default is now 3.x,
if a port needs 2.x then set MODPY_VERSION=${MODPY_DEFAULT_VERSION_2}.

This commit doesn't change any versions currently used; it may be that
some ports have MODPY_DEFAULT_VERSION_2 but don't require it, those
should be cleaned up in the course of updating ports where possible.

Python module ports providing py3-* packages should still use
FLAVOR=python3 so that we don't have a mixture of dependencies some
using ${MODPY_FLAVOR} and others not.
2021-02-23 19:39:08 +00:00

37 lines
831 B
Makefile

# $OpenBSD: Makefile,v 1.21 2021/02/23 19:39:10 sthen Exp $
COMMENT= tool to programme a wide range of amateur radios
MODPY_EGG_VERSION= 20201128
REVISION= 0
DISTNAME= chirp-daily-${MODPY_EGG_VERSION}
PKGNAME= chirp-${MODPY_EGG_VERSION}
CATEGORIES= comms hamradio
HOMEPAGE= https://chirp.danplanet.com/
# GPLv3+
PERMIT_PACKAGE= Yes
MASTER_SITES= https://trac.chirp.danplanet.com/chirp_daily/daily-${MODPY_EGG_VERSION}/
MODULES= lang/python
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_2}
COMMON_DEPS= devel/py-serial
BUILD_DEPENDS= ${COMMON_DEPS}
RUN_DEPENDS= ${COMMON_DEPS} \
devel/desktop-file-utils \
devel/py-future \
devel/py-suds \
x11/py-gtk2
NO_TEST= Yes
post-extract:
sed -i 's,/usr/share,${PREFIX}/share,' \
${WRKSRC}/chirp/ui/mainapp.py
rm ${WRKSRC}/chirp/drivers/generic_xml*
.include <bsd.port.mk>