Skip to content

Commit

Permalink
games/adonthell: Remove outdated PYTHON_REL check after lang/python37…
Browse files Browse the repository at this point in the history
… removal
  • Loading branch information
sunpoet committed Jun 30, 2023
1 parent 665f909 commit ad88180
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions games/adonthell/Makefile
Expand Up @@ -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
Expand All @@ -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>

0 comments on commit ad88180

Please sign in to comment.