aboutsummaryrefslogtreecommitdiff
path: root/emulators/xcpc/Makefile
blob: c8f0a0c1eb9bbbcd068d93dce1adf2c018e904fd (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
PORTNAME=	xcpc
PORTVERSION=	20070122
PORTREVISION=	15
CATEGORIES=	emulators
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER=	pixel@hugbox.org
COMMENT=	Portable Amstrad 464&/664/6128 emulator
WWW=		http://xcpc.sourceforge.net/

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

USE_XORG=	ice
USE_GNOME=	glib20
USES=		gettext gnome iconv pkgconfig xorg

LIB_DEPENDS+=	libpcre.so:devel/pcre \
		libdsk.so:emulators/libdsk

OPTIONS_DEFINE=	MOTIF ATHENA XSHM DEBUG
OPTIONS_DEFAULT=	MOTIF XSHM
MOTIF_DESC=	With Motif widget set
ATHENA_DESC=	With Athen widget set
XSHM_DESC=	With XShm support

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+=--enable-debug
.else
CONFIGURE_ARGS+=--disable-debug
.endif

.if ${PORT_OPTIONS:MXSHM}
CONFIGURE_ARGS+=--enable-xshm
.else
CONFIGURE_ARGS+=--disable-xshm
.endif

.if ${PORT_OPTIONS:MMOTIF}
USES+=	motif
CONFIGURE_ARGS+=--with-motif1
.else
CONFIGURE_ARGS+=--without-motif1
.endif

.if ${PORT_OPTIONS:MATHENA}
LIB_DEPENDS+=	libXaw.so:x11-toolkits/libXaw
CONFIGURE_ARGS+=--with-athena
.else
CONFIGURE_ARGS+=--without-athena
.endif

.include <bsd.port.mk>