[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / emulators / openmsx

File: [cvs.NetBSD.org] / pkgsrc / emulators / openmsx / Makefile (download)

Revision 1.55, Mon Jun 17 15:23:34 2019 UTC (7 months, 1 week ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2019Q2-base, pkgsrc-2019Q2
Changes since 1.54: +1 -4 lines

openmsx: Remove buildlink libraries which are no longer used.

# $NetBSD: Makefile,v 1.55 2019/06/17 15:23:34 nia Exp $

DISTNAME=		openmsx-0.15.0
CATEGORIES=		emulators
MASTER_SITES=		${MASTER_SITE_GITHUB:=openMSX/}
GITHUB_PROJECT=		openMSX
GITHUB_RELEASE=		RELEASE_0_15_0

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		https://openmsx.org/
COMMENT=		MSX emulator that aims for perfection
LICENSE=		gnu-gpl-v2

USE_TOOLS+=		gmake
USE_LANGUAGES=		c c++14
HAS_CONFIGURE=		yes

MAKE_FILE=		GNUmakefile
MAKE_ENV+=		OPENMSX_FLAVOUR=opt
CONFIGURE_ENV+= 	OPENMSX_FLAVOUR=opt
CONFIGURE_ENV+= 	LOCALBASE=${PREFIX}
INSTALLATION_DIRS+=	bin
INSTALL_MAKE_FLAGS+=	SYMLINK_FOR_BINARY=false
INSTALL_MAKE_FLAGS+=	INSTALL_BASE=${PREFIX}/openmsx
MAKE_ENV+=		OPENMSX_INSTALL=${PREFIX}/openmsx

PYTHON_VERSIONS_INCOMPATIBLE=	36 37 # not yet ported as of 0.9.0

SUBST_CLASSES+=			bswap
SUBST_STAGE.bswap=		pre-configure
SUBST_MESSAGE.bswap=		Do not conflict bswap functions.
SUBST_FILES.bswap=		src/utils/endian.hh
SUBST_FILES.bswap+=		src/utils/sha1.cc
SUBST_FILES.bswap+=		src/utils/tiger.cc
SUBST_SED.bswap=		-e 's, bswap, openmsx_bswap,g'
SUBST_SED.bswap+=		-e 's,::bswap,::openmsx_bswap,g'

# c++14
GCC_REQD+=	5

.include "../../mk/bsd.prefs.mk"

do-configure:
.if !empty(PKGSRC_COMPILER:Mclang)
	cd ${WRKSRC} && ${CONFIGURE_ENV} CXX=clang++ \
	    ${GMAKE} -f build/main.mk probe
.elif !empty(PKGSRC_COMPILER:Mgcc)
	cd ${WRKSRC} && ${CONFIGURE_ENV} CXX=g++ \
	    ${GMAKE} -f build/main.mk probe
.else
	cd ${WRKSRC} && ${CONFIGURE_ENV} \
	    ${GMAKE} -f build/main.mk probe
.endif

post-extract:
	${CP} ${WRKSRC}/build/platform-freebsd.mk \
	      ${WRKSRC}/build/platform-dragonfly.mk

post-build:
	(							\
	${ECHO} "#!${SH}";					\
	${ECHO} 'exec ${PREFIX}/openmsx/bin/openmsx $$@'	\
	) > ${WRKSRC}/openmsx.sh

post-install:
	${INSTALL_SCRIPT} ${WRKSRC}/openmsx.sh ${DESTDIR}${PREFIX}/bin/openmsx
	@${ECHO_MSG} "======================================================================"
	@${ECHO_MSG} "  Don't forget to have sound driver loaded before running openMSX."
	@${ECHO_MSG} "  Otherwise, aRts will throw an exception when launching OpenMSX or"
	@${ECHO_MSG} "  fail to create a directory called '.mcoprc' in the home directory."
	@${ECHO_MSG} "  However, you may execute OpenMSX without sound support like this:"
	@${ECHO_MSG} "  # env SDL_AUDIODRIVER=dummy openmsx <args>"
	@${ECHO_MSG} "======================================================================"

.include "../../devel/SDL/buildlink3.mk"
.include "../../devel/SDL_ttf/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/glew/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../lang/tcl/buildlink3.mk"
.include "../../multimedia/libogg/buildlink3.mk"
.include "../../multimedia/libtheora/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"