diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2005-12-22 17:19:16 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2005-12-22 17:19:16 +0000 |
commit | 9605ff64f825e522a5fd46b2d13cbf043573609f (patch) | |
tree | a1a8e94899515b382cb7ffcb05a91d6aabf67214 /converters/ta2as/Makefile | |
parent | d407f0f5607bc3785801f71e2ea384590889aa66 (diff) | |
download | ports-9605ff64f825e522a5fd46b2d13cbf043573609f.tar.gz ports-9605ff64f825e522a5fd46b2d13cbf043573609f.zip |
Notes
Diffstat (limited to 'converters/ta2as/Makefile')
-rw-r--r-- | converters/ta2as/Makefile | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/converters/ta2as/Makefile b/converters/ta2as/Makefile new file mode 100644 index 000000000000..e24f6d55dbf9 --- /dev/null +++ b/converters/ta2as/Makefile @@ -0,0 +1,54 @@ +# 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= lioux@FreeBSD.org +COMMENT= TASM to AT&T asm syntax converter (GNU AS) + +USE_ZIP= yes +USE_REINPLACE= 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> |