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.
52 lines
1.0 KiB
Makefile
52 lines
1.0 KiB
Makefile
# $OpenBSD: Makefile,v 1.21 2021/02/23 19:39:22 sthen Exp $
|
|
|
|
ONLY_FOR_ARCHS = i386 amd64 powerpc powerpc64 arm
|
|
|
|
COMMENT = Atari ST/STE/TT/Falcon emulator
|
|
|
|
V = 2.3.1
|
|
DISTNAME = hatari-${V}
|
|
EXTRACT_SUFX = .tar.bz2
|
|
|
|
CATEGORIES = emulators
|
|
|
|
HOMEPAGE = https://hatari.tuxfamily.org/
|
|
|
|
# GPLv2+
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB += ICE SDL2 SM X11 Xext c m png pthread readline z
|
|
|
|
MASTER_SITES = https://download.tuxfamily.org/hatari/$V/
|
|
|
|
RUN_DEPENDS = devel/desktop-file-utils \
|
|
misc/shared-mime-info \
|
|
sysutils/mtools \
|
|
x11/gtk+3,-guic
|
|
|
|
LIB_DEPENDS = devel/sdl2 \
|
|
graphics/png
|
|
|
|
MODULES = devel/cmake \
|
|
lang/python
|
|
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_2}
|
|
|
|
MODPY_ADJ_FILES = tools/debugger/*.py \
|
|
tools/hconsole/*.py \
|
|
tools/*.py
|
|
|
|
CONFIGURE_ARGS = -DMANDIR=${PREFIX}/man/man1
|
|
|
|
NO_TEST = Yes
|
|
|
|
pre-configure:
|
|
@sed -i 's,/usr/share,${PREFIX}/share,' \
|
|
${WRKSRC}/tools/hconsole/hconsole.1
|
|
|
|
post-install:
|
|
${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py \
|
|
${PREFIX}/share/hatari/hconsole/*.py
|
|
gunzip ${PREFIX}/man/man1/*.1.gz
|
|
|
|
.include <bsd.port.mk>
|