summaryrefslogtreecommitdiffstats
path: root/converters/ta2as/Makefile
blob: 37ea7545bca48e59c7faf2f403c5b0cb452630de (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
# New ports collection makefile for:	TASM TO AT&T asm
# Date created:		Thu Dec 22 14:46:11 UTC 2005
# Whom:			Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	ta2as
PORTVERSION=	0.8
CATEGORIES=	converters devel
MASTER_SITES=	ftp://ftp.delorie.com/pub/djgpp/contrib/ \
		ftp://x2ftp.oulu.fi/pub/msdos/programming/convert/
DISTNAME=	ta2asv${PORTVERSION:S/.//}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	TASM to AT&T asm syntax converter (GNU AS)

USE_ZIP=	yes
NO_WRKSUBDIR=	yes

EXTRACT_BEFORE_ARGS=	-q -a -L

PLIST_FILES=	bin/${PORTNAME}

.ifndef(NOPORTDOCS)
PORTDOCS=	readme.doc
.endif

post-extract:
	@${CP} ${FILESDIR}/strtolower.c ${WRKSRC}

post-patch:
	@${REINPLACE_CMD} -E \
		-e 's|stricmp|strcasecmp|' \
		-e 's|strnicmp|strncasecmp|' \
		-e 's|strlwr|strtolower|' \
		${WRKSRC}/${PORTNAME}.c

do-build:
	@cd ${WRKSRC} && \
		${CC} ${CFLAGS} \
		-s meen.c strtolower.c ta2as.c \
		-o ${PORTNAME}

do-install:
.ifndef(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/readme.doc ${DOCSDIR}
.endif
	@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} \
		${PREFIX}/bin

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