summaryrefslogtreecommitdiffstats
path: root/devel/jwasm/Makefile
blob: ccd09be52c9dca8886e2ce53a33a820b38d029f9 (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
# Created by: Pedro F. Giffuni
# $FreeBSD$

PORTNAME=	jwasm
PORTVERSION=	209
CATEGORIES=	devel
MASTER_SITES=	http://www.japheth.de/Download/JWasm/
DISTNAME=	JWasm${PORTVERSION}s

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Fork of OpenWatcom's x86 assembler with AMD64 support

OPTIONS_DEFINE=	DOCS

ONLY_FOR_ARCHS=	amd64 i386

NO_WRKSUBDIR=	yes

USE_ZIP=	yes
USE_DOS2UNIX=	yes
USE_GMAKE=	yes
MAKEFILE=	GccUnix.mak
MAKE_JOBS_SAFE=	yes

PORTDOCS=	*
PLIST_FILES=	bin/jwasm

.include <bsd.port.options.mk>

post-patch:
	@${REINPLACE_CMD} -e \
		'/^extra_c_flags/s|-O2|$$(CFLAGS)| ; \
		 /^CC/s| =| ?=| ; \
		 s|-s -o|-o|' ${WRKSRC}/GccUnix.mak

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/GccUnixR/jwasm ${PREFIX}/bin
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/*.txt ${DOCSDIR}
	@${GZIP_CMD} ${DOCSDIR}/*.txt
	@${MKDIR} ${DOCSDIR}/manual
	${INSTALL_DATA} ${WRKSRC}/Doc/*.txt ${DOCSDIR}/manual
	@${GZIP_CMD} ${DOCSDIR}/manual/*.txt
.endif

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