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

58 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.17 2021/02/23 19:39:23 sthen Exp $
COMMENT = visual novel engine
V = 7.3.5
MODPY_EGG_VERSION = ${V}.606
DISTNAME = renpy-${V}-source
PKGNAME = renpy-${V}
CATEGORIES = games
HOMEPAGE = https://www.renpy.org/
# mostly MIT, some files LGPLv2.1+
PERMIT_PACKAGE = Yes
WANTLIB += GLEW SDL2 avcodec avformat avresample avutil freetype
WANTLIB += m png pthread swresample swscale z ${MODPY_WANTLIB}
MASTER_SITES = https://www.renpy.org/dl/${V}/
EXTRACT_SUFX = .tar.bz2
MODULES = lang/python
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_2}
BUILD_DEPENDS = devel/pygame \
games/pygame_sdl2 \
lang/cython,python3
RUN_DEPENDS = games/pygame_sdl2 \
x11/gnome/zenity
# XXX enable fribidi support
LIB_DEPENDS = graphics/ffmpeg \
graphics/glew
MAKE_ENV = RENPY_DEPS_INSTALL=/usr::${LOCALBASE}::${X11BASE}
CFLAGS += -I/usr/X11R6/include
NO_TEST = Yes
WRKSRC = ${WRKDIST}/module
# XXX not needed in newer releases
MODPY_ADJ_FILES = ../renpy.py
pre-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/renpy
cd ${WRKDIST} && \
cp -r launcher renpy the_question tutorial LICENSE.txt \
${PREFIX}/share/renpy
${INSTALL_SCRIPT} ${WRKDIST}/renpy.py ${PREFIX}/share/renpy
${SUBST_PROGRAM} ${FILESDIR}/renpy ${PREFIX}/bin/renpy
${SUBST_PROGRAM} ${FILESDIR}/renpyify ${PREFIX}/bin/renpyify
.include <bsd.port.mk>