Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jun 2023 07:23:16 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: ad8818050521 - main - games/adonthell: Remove outdated PYTHON_REL check after lang/python37 removal
Message-ID:  <202306300723.35U7NGr6085155@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ad8818050521a27eed4f1b04f0545da5d0f5f9a1

commit ad8818050521a27eed4f1b04f0545da5d0f5f9a1
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-06-30 07:08:35 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-06-30 07:08:35 +0000

    games/adonthell: Remove outdated PYTHON_REL check after lang/python37 removal
---
 games/adonthell/Makefile | 14 ++------------
 1 file changed, 2 insertions(+), 12 deletions(-)

diff --git a/games/adonthell/Makefile b/games/adonthell/Makefile
index e6d007c63ec6..fae7d1d4238f 100644
--- a/games/adonthell/Makefile
+++ b/games/adonthell/Makefile
@@ -21,7 +21,7 @@ USE_SDL=	mixer2 ttf2
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--disable-py-debug \
 		--disable-pyc \
-		--with-py-libs="$$(${PYTHON_CMD}-config --ldflags ${_PY_EMBED})" \
+		--with-py-libs="$$(${PYTHON_CMD}-config --ldflags --embed)" \
 		--with-python=${PYTHON_CMD}
 
 PLIST_DIRS=	${DATADIR}/games
@@ -30,17 +30,7 @@ PLIST_FILES=	bin/adonthell \
 		${DATADIR}/modules/adonthell.py \
 		${DATADIR}/modules/dialogue.py
 
-.include <bsd.port.pre.mk>
-
-# The "--embed" flag was introduced with Python 3.8 and is required because
-# C extensions are no longer linked to libpython since Python 3.8 and onwards.
-#
-# See also https://bugs.python.org/issue36721 for reference.
-.if ${PYTHON_REL} >= 30800
-_PY_EMBED=	--embed
-.endif
-
 post-patch:
 	@${REINPLACE_CMD} 's,adonthell-0.3,adonthell,g' ${WRKSRC}/src/Makefile.in
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306300723.35U7NGr6085155>