aboutsummaryrefslogtreecommitdiff
path: root/emulators/darcnes/Makefile
blob: aa376fc09f9298d54f6bf94620a90428e91b5db5 (plain) (blame)
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
60
# New ports collection makefile for:   darcnes
# Date created:        22 April 2001
# Whom:                Yukihiro Nakai <nakai@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	darcnes
PORTVERSION=	9b0401
PORTREVISION=	6
CATEGORIES=	emulators
MASTER_SITES=	http://www.dridus.com/~nyef/darcnes/download/
DISTNAME=	dn${PORTVERSION}
EXTRACT_SUFX=	.tgz

MAINTAINER=	ports@FreeBSD.org
COMMENT=	multi-system emulator

NO_CDROM=	Commercial use is restricted

WRKSRC=		${WRKDIR}/${PORTNAME}

WANT_GNOME=	yes
USE_GMAKE=	yes
MAKE_ARGS=	CC="${CC}" TARGET_CC="${CC}" CXX="${CXX}" TARGET_CXX="${CXX}" \
		AS="${AS}" TARGET_AS="${CC}" LD="${LD}" TARGET_LD="${CC}"

.include <bsd.port.pre.mk>

.if ${ARCH} != "i386" || defined(WITHOUT_X86_ASM)
MAKE_ARGS+=	C_ONLY=-DC_ONLY
.else
MAKE_ARGS+=	MACH_TYPES=-DMACH_TYPES=\\\"types-i386.h\\\"
.endif

.if ${HAVE_GNOME:Mgtk12}!=""
USE_GNOME=	gtk12
MAKE_ARGS+=	TARGET=Linux_GTK
PKGNAMESUFFIX=	-gtk
.else
.if defined(WITH_SVGALIB)
LIB_DEPENDS+=	vga:${PORTSDIR}/graphics/svgalib
MAKE_ARGS+=	TARGET=Linux_svgalib
PKGNAMESUFFIX=	-svgalib
.else
USE_XORG=	x11 xaw xext xmu xt
.endif
.endif

post-patch:
	@${CP} ${FILESDIR}/endian.h ${WRKSRC}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/darcnes ${PREFIX}/bin
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/readme ${DOCSDIR}
.endif

.include <bsd.port.post.mk>