summaryrefslogtreecommitdiff
path: root/emulators/Cygne-SDL/Makefile
blob: a86e0e1528fbcbb05c3680a6746fca508915706d (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
# $NetBSD: Makefile,v 1.17 2012/04/14 03:47:37 dholland Exp $
#

DISTNAME=		Cygne-SDL-0.1-src
PKGNAME=		${DISTNAME:S/-src//}
PKGREVISION=		5
CATEGORIES=		emulators
MASTER_SITES=		http://sdlemu.ngemu.com/OpenProjects/

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://icculus.org/Cygne-SDL/
COMMENT=		Bandai Wonderswan Color handheld emulator

BUILD_DEPENDS+=		nasm>=0.98:../../devel/nasm

PKG_DESTDIR_SUPPORT=	user-destdir

WRKSRC=			${WRKDIR}/Cygne-SDL-0.1
MAKE_FILE=		Makefiles/Makefile.unix
NO_CONFIGURE=		yes
BUILD_DIRS=		src
USE_LANGUAGES=		c c++
USE_TOOLS+=		zip

# Uses i386 assembly code
ONLY_FOR_PLATFORM=	*-*-i386

INSTALLATION_DIRS=	bin

post-build:
	cd ${WRKSRC}/WonderSnake && \
		${TOOLS_PATH.zip} Wondersnake.zip Wondersnake.wsc

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/cygne ${DESTDIR}${PREFIX}/bin/Cygne-SDL
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/Cygne-SDL
	${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/Cygne-SDL
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/Cygne-SDL
	${INSTALL_DATA} ${WRKSRC}/WonderSnake/Wondersnake.txt \
		${DESTDIR}${PREFIX}/share/Cygne-SDL
	${INSTALL_DATA} ${WRKSRC}/WonderSnake/Wondersnake.zip \
		${DESTDIR}${PREFIX}/share/Cygne-SDL

.include "../../devel/SDL/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"