summaryrefslogtreecommitdiff
path: root/emulators/fuse/Makefile
blob: e83bdfcc43b8b6ddd1d4c1df805fd4ff07562d30 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
# New ports collection makefile for:	fuse
# Date created:			2003-10-28
# Whom:				Alexey V. Antipovsky <kemm@in-line.ru>
#
# $FreeBSD$
#

PORTNAME=	fuse
PORTVERSION=	1.0.0.1
PORTREVISION=	1
CATEGORIES=	emulators
MASTER_SITES=	SF/${PORTNAME}-emulator/${PORTNAME}/${PORTVERSION}

MAINTAINER=	yuri.pankov@gmail.com
COMMENT=	Free Unix (Sinclair ZX-)Spectrum Emulator

LIB_DEPENDS=	spectrum.8:${PORTSDIR}/emulators/libspectrum \
		gcrypt.18:${PORTSDIR}/security/libgcrypt

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

GNU_CONFIGURE=	yes
USE_GNOME=	libxml2 glib20 gtk20

CONFIGURE_ARGS+=--without-alsa --without-joystick
CONFIGURE_ENV=	LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
CPPFLAGS+=	-I${LOCALBASE}/include ${PTHREAD_CFLAGS}

MAN1=		fuse.1

OPTIONS=	AO "Use libao for audio output" off \
		SAMPLERATE "Support for better beeper sound quality" on

.include <bsd.port.pre.mk>

.if defined(WITH_AO)
CONFIGURE_ARGS+=--with-libao
LIB_DEPENDS+=	ao.4:${PORTSDIR}/audio/libao
.endif

.if !defined(WITHOUT_SAMPLERATE)
LIB_DEPENDS+=	samplerate.1:${PORTSDIR}/audio/libsamplerate
.else
CONFIGURE_ARGS+=--without-libsamplerate
.endif

.if !defined(NOPORTDOCS)
post-install:
	@${MKDIR} ${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} AUTHORS ChangeLog README THANKS \
		${DOCSDIR}
.endif

.include <bsd.port.post.mk>