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

PORTNAME=	acme
PORTVERSION=	091
CATEGORIES=	devel
MASTER_SITES=	http://www.esw-heim.tu-clausthal.de/~marco/smorbrod/acme/current/
DISTNAME=	${PORTNAME}${PORTVERSION}src

MAINTAINER=	uffe@uffe.org
COMMENT=	Crossassembler for 6502, 65c02 and 65816 processors

LICENSE=	GPLv2

OPTIONS_DEFINE=	DOCS EXAMPLES

USE_BZIP2=	yes
USES=	gmake

BUILD_WRKSRC=	${WRKSRC}/src
MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS}"
WRKSRC=	${WRKDIR}/${PORTNAME}${PORTVERSION}
PORTDOCS=	*
PORTEXAMPLES=	*

PLIST_FILES=	bin/acme \
		%%DATADIR%%/6502/Help.txt \
		%%DATADIR%%/6502/std.a \
		%%DATADIR%%/65816/Help.txt \
		%%DATADIR%%/65816/std.a \
		%%DATADIR%%/Own/Help.txt
PLIST_DIRSTRY=	%%DATADIR%%/6502 \
		%%DATADIR%%/65816 \
		%%DATADIR%%/Own \
		%%DATADIR%%

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/acme ${STAGEDIR}${PREFIX}/bin
.for dir in 6502 65816 Own
	@${MKDIR} ${STAGEDIR}${DATADIR}/${dir}
.endfor
	${INSTALL_DATA} ${WRKSRC}/ACME_Lib/6502/* ${STAGEDIR}${DATADIR}/6502
	${INSTALL_DATA} ${WRKSRC}/ACME_Lib/65816/* ${STAGEDIR}${DATADIR}/65816
	${INSTALL_DATA} ${WRKSRC}/ACME_Lib/Own/* ${STAGEDIR}${DATADIR}/Own
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/ReadMe.txt ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/me
	${INSTALL_DATA} ${WRKSRC}/examples/*.a ${STAGEDIR}${EXAMPLESDIR}/
	${INSTALL_DATA} ${WRKSRC}/examples/me/*.a ${STAGEDIR}${EXAMPLESDIR}/me/

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