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

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

MAINTAINER= rene@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
USES=       pkgconfig

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:${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>