summaryrefslogtreecommitdiffstats
path: root/devel/xa65/Makefile
blob: 34beeda05289a035a3328553f8fd188f0e8c6de3 (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
56
57
58
59
60
# Created by: Uffe Jakobsen <uffe@uffe.org>
# $FreeBSD$

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

MAINTAINER=	uffe@uffe.org
COMMENT=	MOS-6502 two-pass cross-assembler for MOS 6502 and compatible CPUs

OPTIONS_DEFINE=	DOCS EXAMPLES

USES=	gmake

MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LD="${CC}" LDFLAGS="${LDFLAGS}"

MAN1=	file65.1 ldo65.1 printcbm.1 reloc65.1 uncpk.1 xa.1
MLINKS=	xa.1 xa65.1

PORTDOCS=	*
PORTEXAMPLES=	*

PLIST_FILES=	bin/xa65 \
		bin/file65 \
		bin/ldo65 \
		bin/reloc65 \
		bin/printcbm \
		bin/uncpk

NO_STAGE=	yes

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/xa ${PREFIX}/bin/xa65
.for file in file65 ldo65 reloc65 printcbm uncpk
	${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin
.endfor

.for man in ${MAN1}
	${INSTALL_MAN} ${WRKSRC}/man/${man} ${MAN1PREFIX}/man/man1
.endfor

.include <bsd.port.options.mk>

post-install:
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${DOCSDIR}
.for doc in COPYING ChangeLog README.1st TODO
	${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
	${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
.endif

.if ${PORT_OPTIONS:MEXAMPLES}
	@${MKDIR} ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif

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