summaryrefslogtreecommitdiff
path: root/emulators/arnold/Makefile
blob: 0f7a6e3691cdebac4b8af069cf2ab58fc8aa7e6a (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
# $NetBSD: Makefile,v 1.14 2006/02/05 23:09:00 joerg Exp $
#

DISTNAME=		arnsrc27012002
PKGNAME=		arnold-20020127
PKGREVISION=		4
CATEGORIES=		emulators
MASTER_SITES=		http://arnold.emuunlim.com/download/
EXTRACT_SUFX=		.zip

MAINTAINER=		dillo@NetBSD.org
HOMEPAGE=		http://arnold.emuunlim.com/
COMMENT=		Amstrad CPC, Amstrad CPC+ and KC Compact emulator

# we want case sensitive file names.
EXTRACT_OPTS_ZIP=	-aqo

WRKSRC=			${WRKDIR}/arnold
GNU_CONFIGURE=		yes
CONFIGURE_DIRS=		src
BUILD_DIRS=		${CONFIGURE_DIRS}
BUILD_TARGET=		arnold

SHAREDIR=		${PREFIX}/share/arnold
DOCDIR=			${PREFIX}/share/doc/arnold
MAKE_ENV+=		SHAREDIR=${SHAREDIR:Q}
INSTALLATION_DIRS=	bin

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/arnold ${PREFIX}/bin
	${INSTALL_DATA_DIR} ${SHAREDIR}
	${INSTALL_DATA_DIR} ${SHAREDIR}/roms
	for dir in amsdose cpc464e cpc6128e cpc664e cpcplus kcc; \
	do \
		${INSTALL_DATA_DIR} ${SHAREDIR}/roms/$$dir; \
		for f in ${WRKSRC}/roms/$$dir/*; \
		do \
			${INSTALL_DATA} $$f ${SHAREDIR}/roms/$$dir; \
		done \
	done
	${INSTALL_DATA_DIR} ${DOCDIR}
	${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCDIR}
	${INSTALL_DATA} ${WRKSRC}/readme.linux ${DOCDIR}

.include "../../mk/ossaudio.buildlink3.mk"
.include "../../devel/SDL/buildlink3.mk"
.include "../../x11/gtk/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"