aboutsummaryrefslogtreecommitdiff
path: root/converters/ta2as/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'converters/ta2as/Makefile')
-rw-r--r--converters/ta2as/Makefile54
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>