summaryrefslogtreecommitdiff
path: root/emulators/openmsx/Makefile
blob: 77f4f31b27ac2b969e5058a24f8c7882257a80f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# $NetBSD: Makefile,v 1.31 2012/08/12 01:15:00 marino Exp $
#

DISTNAME=		openmsx-0.6.2
PKGREVISION=		9
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

PKG_DESTDIR_SUPPORT=	user-destdir

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

MAKE_FILE=		GNUmakefile
CONFIGURE_ENV+=		OPENMSX_FLAVOUR=pkgsrc
MAKE_ENV+=		OPENMSX_FLAVOUR=pkgsrc

post-extract:
	${CP} ${FILESDIR}/platform-netbsd.mk ${WRKSRC}/build
	${LN} -s platform-netbsd.mk ${WRKSRC}/build/platform-dragonfly.mk
	${ECHO_MSG} "OPENMSX_STRIP:=true" > \
		${WRKSRC}/build/flavour-pkgsrc.mk

REPLACE_PYTHON+=	share/scripts/convert_hardwareconfig.py
REPLACE_PYTHON+=	share/scripts/convert_hardwareconfig2.py

SUBST_CLASSES+=		prefix
SUBST_STAGE.prefix=	post-patch
SUBST_FILES.prefix=	build/custom.mk
SUBST_SED.prefix=	-e "s,/opt/openMSX,${PREFIX}/openmsx,"
SUBST_MESSAGE.prefix=	Fixing installation directory.

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

INSTALLATION_DIRS+=	bin
INSTALL_MAKE_FLAGS+=	OPENMSX_INSTALL=${DESTDIR}${PREFIX}/openmsx
INSTALL_MAKE_FLAGS+=	SYMLINK_FOR_BINARY=false

post-install:
	${INSTALL_SCRIPT} ${WRKSRC}/openmsx.sh ${DESTDIR}${PREFIX}/bin/openmsx

.include "../../lang/python/application.mk"
.include "../../devel/SDL/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/SDL_image/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../lang/tcl/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"