mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
77f8276a88
- Use the version tag instead of commit hash when they're the same. - Remove unnneeded variables. - Simplify go- ports when possible. - Various fixes. Sponsored by: Absolight
45 lines
938 B
Makefile
45 lines
938 B
Makefile
# 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
|
|
|
|
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>
|