aboutsummaryrefslogtreecommitdiff
path: root/emulators/xcpc/Makefile
blob: 9c61e3b6589195c42d3db0ba04a40ded5f189cf2 (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
61
62
63
# New ports collection makefile for:	cpmtools
# Date created:		31 January 2008
# Whom:			joerg
#
# $FreeBSD$
#

PORTNAME=	xcpc
PORTVERSION=	20070122
PORTREVISION=	5
CATEGORIES=	emulators
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER=	pixel@hugbox.org
COMMENT=	A portable Amstrad 464&/664/6128 emulator

HAS_CONFIGURE=	yes
CONFIGURE_ENV+=	CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS+=--prefix=${PREFIX}

USE_XORG=	ice
USE_GNOME=	pkgconfig glib20
USE_ICONV=	yes
USE_GETTEXT=	yes

LIB_DEPENDS+=	icui18n:${PORTSDIR}/devel/icu \
		pcre.0:${PORTSDIR}/devel/pcre \
		dsk.5:${PORTSDIR}/emulators/libdsk

OPTIONS=	MOTIF "With Motif widget set" on \
		ATHENA "With Athen widget set" off \
		XSHM "With XShm support" on \
		DEBUG "Turn debugging on" off

.include <bsd.port.pre.mk>

.if defined(WITH_DEBUG)
CONFIGURE_ARGS+=--enable-debug
.else
CONFIGURE_ARGS+=--disable-debug
.endif

.if defined(WITH_XSHM)
CONFIGURE_ARGS+=--enable-xshm
.else
CONFIGURE_ARGS+=--disable-xshm
.endif

.if defined(WITH_MOTIF)
USE_MOTIF=yes
CONFIGURE_ARGS+=--with-motif1
.else
CONFIGURE_ARGS+=--without-motif1
.endif

.if defined(WITH_ATHENA)
LIB_DEPENDS+=	Xaw.8:${PORTSDIR}/x11-toolkits/libXaw
CONFIGURE_ARGS+=--with-athena
.else
CONFIGURE_ARGS+=--without-athena
.endif

.include <bsd.port.post.mk>