summaryrefslogtreecommitdiffstats
path: root/emulators/libspectrum/Makefile
blob: 6736fec9665b5ae316d6c8370e8ccf30ee41891e (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
# Created by: Alexey V. Antipovsky <kemm@in-line.ru>
# $FreeBSD$

PORTNAME=	libspectrum
PORTVERSION=	1.0.0
PORTREVISION=	2
CATEGORIES=	emulators devel
MASTER_SITES=	SF/fuse-emulator/${PORTNAME}/${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Handling of ZX-Spectrum emulator files formats

LICENSE=	GPLv2

LIB_DEPENDS=	gcrypt:${PORTSDIR}/security/libgcrypt

GNU_CONFIGURE=	yes
USE_GMAKE=	yes
USE_GNOME=	glib20
USE_LDCONFIG=	yes

MAN3=		libspectrum.3

OPTIONS_DEFINE=	AUDIOFILE
AUDIOFILE_DESC=	Support loading from .wav files

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MAUDIOFILE}
LIB_DEPENDS+=	audiofile.0:${PORTSDIR}/audio/libaudiofile
.else
CONFIGURE_ARGS+=--without-libaudiofile
.endif

.if ${PORT_OPTIONS:MDOCS}
post-install:
	@${MKDIR} ${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} \
		AUTHORS ChangeLog README THANKS doc/libspectrum.txt ${DOCSDIR}
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud