summaryrefslogtreecommitdiff
path: root/emulators/sms_sdl/Makefile
blob: 822293beb9381bad837746b07b532a900ce2702b (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.15 2015/04/25 14:20:47 tnn Exp $
#

DISTNAME=		sms_sdl-0.9.4a-r7.1-src
PKGNAME=		sms_sdl-0.9.4a.7.1
PKGREVISION=		4
CATEGORIES=		emulators
MASTER_SITES=		http://membres.multimania.fr/cyxdown/smssdl/
EXTRACT_SUFX=		.zip

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://membres.multimania.fr/cyxdown/smssdl/
COMMENT=		SMS Plus emulator port to SDL

WRKSRC=			${WRKDIR}/sms_sdl-0.9.4a-r7.1
BUILD_DIRS=		sdl

INSTALLATION_DIRS=	bin

LDFLAGS.DragonFly=	-lm
LDFLAGS.SunOS+=		-lm

.include "../../mk/endian.mk"

.if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "i386"
CFLAGS+=	-DX86_ASM
.endif

.if ${MACHINE_ENDIAN} == "little"
CFLAGS+=	-DLSB_FIRST
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/sdl/sms_sdl ${DESTDIR}${PREFIX}/bin
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/sms_sdl
	${INSTALL_DATA} ${WRKSRC}/sdl/README.TXT \
		${DESTDIR}${PREFIX}/share/doc/sms_sdl
	${INSTALL_DATA} ${WRKSRC}/license ${DESTDIR}${PREFIX}/share/doc/sms_sdl
	${INSTALL_DATA} ${WRKSRC}/README.TXT \
		${DESTDIR}${PREFIX}/share/doc/sms_sdl/README-CORE.TXT
	${INSTALL_DATA} ${WRKSRC}/SOURCE.TXT \
		${DESTDIR}${PREFIX}/share/doc/sms_sdl

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