[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.33, Sun Aug 26 09:07:21 2012 UTC (7 years, 3 months ago) by marino
Branch: MAIN
Changes since 1.32: +41 -24 lines

emulators/openmsx: Upgrade from version 0.6.2 to 0.9.0

By request of the upstream developers, openMSX has been upgraded to the
12 Aug 2012 release (0.9.0).  The current version in pkgsrc is 0.6.2 was
released over 5 years ago on 15 April 2007.  The openMSX project has
added extensive features through eight newer releases since then, so the
project was "embarrassed" about the currency of the pkgsrc version.  The
changes of each release are way to long to list, so here are the links:

http://sourceforge.net/projects/openmsx/files/openmsx/0.9.0/README_release-notes.txt/view
http://sourceforge.net/projects/openmsx/files/openmsx/0.8.2/README_release-notes.txt/view
http://sourceforge.net/projects/openmsx/files/openmsx/0.8.1/README_release-notes.txt/view
http://sourceforge.net/projects/openmsx/files/openmsx/0.8.0/release-notes.txt/view
Consecutive release notes 0.7.2/0.7.1, 0.7.0, 0.6.3:
http://sourceforge.net/project/shownotes.php?group_id=38274&release_id=693184

Tested Zombie Incident on DragonFly.  It works nicely!

# $NetBSD: Makefile,v 1.33 2012/08/26 09:07:21 marino Exp $
#

DISTNAME=		openmsx-0.9.0
CATEGORIES=		emulators
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=openmsx/}

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

PKG_DESTDIR_SUPPORT=	user-destdir

USE_TOOLS+=		gmake
USE_LANGUAGES+=		c++
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

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

.if "${PKGSRC_COMPILER}" == "clang"
# As a result of predefining CXX, .wrapper/bin/clang++ is automatically
# hardlinked to c++, g++, which is exactly what we what!
CXX_OVERRIDE=clang++
.elif "${PKGSRC_COMPILER}" == "gcc"
CXX_OVERRIDE=g++
.else
CXX_OVERRIDE=${CXX}
.endif
CXX=${CXX_OVERRIDE}

post-extract:
	${CP} ${WRKSRC}/build/platform-freebsd.mk \
	      ${WRKSRC}/build/platform-dragonfly.mk
	# Fix permission problem specific to release 0.9.0 and below
	${CHMOD} 644 ${WRKSRC}/share/extensions/debugdevice/hardwareconfig.xml
	${CHMOD} 644 ${WRKSRC}/share/extensions/gfx9000/hardwareconfig.xml

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 "../../audio/libao/buildlink3.mk"
.include "../../devel/SDL/buildlink3.mk"
.include "../../devel/SDL_ttf/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/glew/buildlink3.mk"
.include "../../graphics/SDL_image/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 "../../textproc/libxml2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"