This adds "-fpermissive" to the CFLAGS for sparc64 to quiet an errors about a cast losing precision. ok edd@ (maintainer)
56 lines
1.2 KiB
Makefile
56 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.34 2020/02/13 15:57:00 kmos Exp $
|
|
|
|
BROKEN-alpha = error: invalid 'asm': invalid %xn code
|
|
|
|
COMMENT = modern Amiga emulator
|
|
V = 2.4.0
|
|
MODPY_EGG_VERSION = ${V}
|
|
DISTNAME = fs-uae-$V
|
|
CATEGORIES = emulators
|
|
REVISION = 11
|
|
|
|
HOMEPAGE = https://fs-uae.net/
|
|
MAINTAINER = Edd Barrett <edd@openbsd.org>
|
|
|
|
# GPLv2, LGPLv2.1
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB += GL GLU SDL X11 c freetype glib-2.0 gthread-2.0 intl m
|
|
WANTLIB += openal png pthread ${COMPILER_LIBCXX} z
|
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
MASTER_SITES = ${HOMEPAGE}stable/$V/
|
|
|
|
BUILD_DEPENDS = devel/gettext,-tools
|
|
LIB_DEPENDS = devel/sdl \
|
|
graphics/png \
|
|
audio/openal \
|
|
devel/glib2
|
|
RUN_DEPENDS = devel/desktop-file-utils \
|
|
x11/gtk+3,-guic
|
|
|
|
USE_GMAKE = Yes
|
|
|
|
.include <bsd.port.arch.mk>
|
|
.if ${PROPERTIES:Mclang}
|
|
CXXFLAGS = -std=c++03
|
|
.endif
|
|
|
|
.if ${MACHINE} == "sparc64"
|
|
CXXFLAGS += -fpermissive
|
|
.endif
|
|
|
|
MAKE_FLAGS += prefix=${PREFIX} CXXFLAGS="${CXXFLAGS}"
|
|
MAKE_FLAGS += CFLAGS="${CFLAGS}" CXX="${CXX}"
|
|
|
|
NO_TEST = Yes
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/fs-uae
|
|
mv ${PREFIX}/share/doc/fs-uae/example.conf \
|
|
${PREFIX}/share/examples/fs-uae/fs-uae.conf
|
|
${SUBST_CMD} ${PREFIX}/share/examples/fs-uae/fs-uae.conf
|
|
|
|
.include <bsd.port.mk>
|