summaryrefslogtreecommitdiffstats
path: root/devel/dxa65/Makefile
blob: 0d8838dba9f48a2fc6af725c93fe85e8379c452f (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
# Created by: Uffe Jakobsen <uffe@uffe.org>
# $FreeBSD$

PORTNAME=	dxa
PORTVERSION=	0.1.3
CATEGORIES=	devel
MASTER_SITES=	http://www.floodgap.com/retrotech/xa/dists/
PKGNAMESUFFIX=	65

MAINTAINER=	uffe@uffe.org
COMMENT=	Disassembler for MOS 6502 and compatible CPUs

OPTIONS_DEFINE=	DOCS

USES=	gmake

MAN1=	dxa.1
MLINKS=	dxa.1 dxa65.1

PLIST_FILES=	bin/dxa65
PORTDOCS=	INSTALL

.include <bsd.port.options.mk>

post-patch-script:
	@${REINPLACE_CMD} 's|CC = |CC ?= |g' ${WRKSRC}/Makefile
	@${REINPLACE_CMD} 's|CFLAGS = |CFLAGS ?= |g' ${WRKSRC}/Makefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/dxa ${PREFIX}/bin/dxa65
	${INSTALL_MAN} ${WRKSRC}/dxa.1 ${MAN1PREFIX}/man/man1

.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR}
.endif

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