summaryrefslogtreecommitdiff
path: root/emulators/yaze-ag/Makefile
blob: 3ace3558505e39124afa25cdbd4cb334c7576710 (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
PORTNAME=	yaze-ag
DISTVERSION=	2.51.0
CATEGORIES=	emulators
MASTER_SITES=	http://www.mathematik.uni-ulm.de/users/ag/yaze-ag/devel/

MAINTAINER=	se@FreeBSD.org
COMMENT=	Z80 and CP/M-80 emulator

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libreadline.so:devel/readline

USES=		compiler:c11

MAKEFILE=	Makefile_freebsd
MAKE_ENV=	BINDIR=${PREFIX}/bin \
		DESTDIR="${STAGEDIR}" \
		DOCDIR=${DOCSDIR} \
		DOCHTMLDIR=${DOCSDIR}/html \
		DSKDIR=${DATADIR}/disks \
		LIBDIR=${DATADIR} \
		LIBEXECDIR=${PREFIX}/libexec \
		MANDIR=${MAN1PREFIX}/man/man1 \
		OPTIMIZE="${CFLAGS}"

OPTIONS_DEFINE=	DOCS

post-build:
		${REINPLACE_CMD} -e 's:%%DATADIR%%:${DATADIR}:' \
				 -e 's:%%DOCSDIR%%:${DOCSDIR}:' \
				 -e 's:%%LIBEXECDIR%%:${PREFIX}/libexec:' \
							${WRKSRC}/yaze.sh

.include <bsd.port.mk>