aboutsummaryrefslogtreecommitdiff
path: root/converters/ta2as/Makefile
blob: 3bf0cd680847f1a6f66cd9373489b3c4a67f6c39 (plain) (blame)
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
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $FreeBSD$

PORTNAME=	ta2as
PORTVERSION=	0.8.2
CATEGORIES=	converters devel

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

LICENSE=	TA2AS
LICENSE_NAME=	TA2AS license
LICENSE_FILE=	${WRKSRC}/legal.txt
LICENSE_PERMS=	dist-mirror pkg-mirror auto-accept

WRKSRC_SUBDIR=	ta2as

USE_GITHUB=	yes
GH_ACCOUNT=	mefistotelis
GH_TAGNAME=	3f4825a

PORTDOCS=	*
PLIST_FILES=	bin/${PORTNAME}

OPTIONS_DEFINE=	DOCS

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

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

do-build:
	cd ${WRKSRC} && ${CC} ${CFLAGS} main.c strtolower.c ${PORTNAME}.c \
		-o ${PORTNAME}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/*.txt ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>