aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/libspectrum/Makefile
blob: 830e96d7aec86b66dac42bded3ae300a2e1d986d (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
# New ports collection makefile for:    libspectrum
# Date created:         2003-10-27
# Whom:             Alexey V. Antipovsky <kemm@in-line.ru>
#
# $FreeBSD$
#

PORTNAME=   libspectrum
PORTVERSION=    0.3.0.1
CATEGORIES= emulators devel
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= fuse-emulator

MAINTAINER= kemm@in-line.ru
COMMENT=    Handling of ZX-Spectrum emulator files formats

USE_AUTOTOOLS=  libtool:15
USE_PERL5_BUILD=    yes
WANT_GNOME= yes
GNU_CONFIGURE=  yes
USE_LDCONFIG=   yes
MAN3=       libspectrum.3

OPTIONS=    GLIB "Use GLib" on \
        GCRYPT "Use libgcrypt" off

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_GLIB)
USE_GNOME=  glib20
.else
CONFIGURE_ARGS+=    --without-glib
.endif

.if defined(WITH_GCRYPT) || exists(${LOCALBASE}/include/gcrypt.h)
LIB_DEPENDS+=   gcrypt.13:${PORTSDIR}/security/libgcrypt
.endif

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

.include <bsd.port.post.mk>